Skip to content

Security: Fix user impersonation via custom bot token#28

Merged
intrip merged 1 commit into
mainfrom
fix-exploit-in-bot-auth
Sep 11, 2025
Merged

Security: Fix user impersonation via custom bot token#28
intrip merged 1 commit into
mainfrom
fix-exploit-in-bot-auth

Conversation

@intrip

@intrip intrip commented Sep 11, 2025

Copy link
Copy Markdown
Contributor

If bot_key has no right-hand side (ex: 1-), bot_token will be nil, and the query will match a User record if bot_id matches a valid ID. Fix it relying on active_bots instead.

If bot_key has no right-hand side (ex: 1-), bot_token will be nil, and the query will match a User record if bot_id matches a valid ID.
Fix it relying on `active_bots` instead.
@intrip intrip merged commit 3d0a10d into main Sep 11, 2025
11 checks passed
@monorkin monorkin deleted the fix-exploit-in-bot-auth branch September 18, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant