Highlights
- Changing a second factor needs the password. A stolen session can no longer remove or replace a user's second factors on its own.
Changed
- These routes now require a
passwordfield in the request body:DELETE /2fa/totpDELETE /2fa/emailDELETE /2fa/webauthn/{id}POST /2fa/webauthn/registerPOST /2fa/totp/confirm, when the user already has another factor enabled
- A missing or wrong password answers 403
{"error":"Password confirmation required."}, and a wrong one counts as a failed login in the user plugin's throttle, as on the recovery-code routes. Validation errors (422) still come first, so existing error bodies are unchanged. - New config key
golem15.mfa.factor_changes_require_password, defaulttrue. Set it tofalseto keep the old behaviour while a frontend is updated to send the password. - Requires sm-user-plugin v0.1.20, which gates activate-by-code.
Upgrading
Frontends that call the routes above must ask the user for their password and send it, or the application sets golem15.mfa.factor_changes_require_password: false until they do.