Skip to content

fix(user): rate limit internal reauthentication attempts - #36

Open
devinhadley wants to merge 2 commits into
mainfrom
33-user-from-request
Open

fix(user): rate limit internal reauthentication attempts#36
devinhadley wants to merge 2 commits into
mainfrom
33-user-from-request

Conversation

@devinhadley

Copy link
Copy Markdown
Owner

Password change and email reset requests re-verify the caller's current password but never rate limited or recorded those attempts, letting a hijacked session brute-force the account password. Add a shared reauthentication auth_action, enforce the same failed-attempt limit login uses, and route both flows through one verifyReauthentication helper so switching endpoints can't widen the guessing budget.

Claude-Session: https://claude.ai/code/session_01VSYkKjv6rTX4ys77muo5jQ

devinhadley and others added 2 commits August 30, 2026 17:53
Password change and email reset requests re-verify the caller's current
password but never rate limited or recorded those attempts, letting a
hijacked session brute-force the account password. Add a shared
reauthentication auth_action, enforce the same failed-attempt limit
login uses, and route both flows through one verifyReauthentication
helper so switching endpoints can't widen the guessing budget.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSYkKjv6rTX4ys77muo5jQ
…hash

Both call sites already had the User in scope; deriving email and
password hash inside the helper drops two redundant parameters.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSYkKjv6rTX4ys77muo5jQ
@devinhadley
devinhadley force-pushed the 33-user-from-request branch from 15e6dfe to be45505 Compare August 31, 2026 01:20
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