← All plugin changes

sm-mfa-plugin 0.2.0

v0.2.01 min readPlugins

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 password field in the request body:
    • DELETE /2fa/totp
    • DELETE /2fa/email
    • DELETE /2fa/webauthn/{id}
    • POST /2fa/webauthn/register
    • POST /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, default true. Set it to false to 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.

Subscribe via RSS