Skip to content

fix(step-up): require proof to add a factor and count only earlier factors - #620

Merged
Bccorb merged 3 commits into
mainfrom
fix/step-up-earlier-factors
Nov 27, 2026
Merged

Bccorb merged 3 commits into
mainfrom
fix/step-up-earlier-factors

Conversation

@Bccorb

@Bccorb Bccorb commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Step-up and factor enrollment are stricter.

  • A step-up only accepts a passkey or TOTP enrolled before the session signed in, walking exchanged sessions back to the earliest in their lineage. A factor added during the session works from the next sign-in. /totp/verify-mfa answers 401 step_up_unavailable for a TOTP that is too new, and /step-up/webauthn/start leaves out passkeys that are too new.
  • Passkey and TOTP enrollment, phone registration and recovery code generation need a fresh step-up (403 step_up_required) when the account already has a passkey or TOTP. An account with neither needs a sign-in from the last five minutes, and otherwise gets 403 reauthentication_required. Recovery sessions are exempt.
  • DELETE /users/credentials needs a fresh step-up.

Clients that add a factor from an existing session should run a step-up on step_up_required and ask the user to sign in again on reauthentication_required. Released as a minor bump.

Refs #600

…ctors

Step-up now accepts only a passkey or TOTP enrolled before the session
signed in, walking exchanged sessions to the earliest in their lineage.
Adding a passkey, TOTP, phone or recovery code set needs a fresh step-up
when the account already has a factor, or a sign-in from the last ten
minutes when it has none. Recovery sessions are exempt.

DELETE /users/credentials needs a fresh step-up (L-API-1, #600).
@Bccorb
Bccorb merged commit b69feaf into main Nov 27, 2026
9 of 10 checks passed
@Bccorb
Bccorb deleted the fix/step-up-earlier-factors branch November 27, 2026 06:06
@Bccorb
Bccorb restored the fix/step-up-earlier-factors branch November 27, 2026 06:09
@Bccorb
Bccorb deleted the fix/step-up-earlier-factors branch November 27, 2026 06:10
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