security: require password confirmation for sensitive account actions#347
Merged
Merged
Conversation
…#180) Sensitive account operations now require the user's current password before proceeding. This prevents session-to-credential escalation where a stolen session could be used to enroll attacker-controlled MFA devices or change the account email. Changes: - TOTP setup, passkey registration, and passkey deletion require current_password in the request body - Email and username changes require current_password when the value actually changes (non-sensitive fields like name do not) - Email change resets is_email_verified to false - Passkey-only users (no password set) skip the check gracefully - Account UI shows password prompt modal before these actions - New reusable PasswordPrompt component for the account UI Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
eugenioenko
added a commit
that referenced
this pull request
May 10, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
eugenioenko
added a commit
that referenced
this pull request
May 10, 2026
…otes (#345) * docs: complete v2.0 changelog with all breaking changes and release notes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * docs: add password confirmation feature (#347) to changelog Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #180
current_passwordin the request bodycurrent_passwordwhen the value actually changes (non-sensitive fields like name, phone, etc. do not)is_email_verifiedtofalse, so the next login forces re-verification whenRequireEmailVerificationis enabledPasswordPromptcomponentBreaking change for API consumers
The following account API endpoints now require a
current_passwordfield in the JSON request body:PUT /account/api/profilePOST /account/api/mfa/totp/setupPOST /account/api/passkeys/register/beginDELETE /account/api/passkeys/{id}Test plan
is_email_verified🤖 Generated with Claude Code