Disable MFA without TOTP #9623
Labels
bounty:$20
Bounty applies for fixing this issue (Parse Bounty Program)
type:bug
Impaired feature or lacking behavior that is likely assumed
New Issue Checklist
Issue Description
Originally posted by @SteffenKeller:
A logged-in user can disable MFA for their account without entering a valid verification code by simply calling the unlink function or saving null for the MFA auth data.
The TOTP auth adapter prevents setting a new secret without a valid code (AuthenticationAdapters.spec.js line 2413), but it does not prevent clearing the secret first and then setting a new one.
This may not be critical, but since the TOTP auth adapter was designed to require a valid code to disable mfa, I thought it was worth mentioning.
Steps to reproduce
JS SDK:
Environment
Server
FILL_THIS_OUT
The text was updated successfully, but these errors were encountered: