The MFA Bypass That Wasn’t an MFA Problem: A Lesson in Broken API Authorization
The backend did not enforce the MFA requirement that the frontend used to gate Pro features, so an account without MFA could call the same API endpoints and receive successful responses. An attacker with a standard account could therefore reach MFA-restricted functionality such as withdrawals and ticket creation.
cybersecuritywriteups.com
Published on cybersecuritywriteups.com
While exploring the application, I noticed several features were locked behind what the platform called a “Pro” activation process.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the backend endpoints lacked an authorization check for MFA status, relying on the frontend to hide features instead.
Impact
An account without MFA could perform actions that the platform presented as requiring MFA, including withdrawals and ticket creation, because the server processed the requests without an MFA challenge.
What the attacker needed
A standard account without MFA; ability to send API requests directly
The fix
The backend should verify MFA status on every sensitive endpoint, ideally through centralized authorization middleware, rather than relying on the frontend to hide features.
How it was found
- Use an account with MFA enabled to access a Pro feature and identify its API endpoint.
- Switch to an account with MFA disabled.
- Replay the same request from the non-MFA account.
- Observe that the server returns a success response instead of an authorization failure.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Multi-factor authentication (MFA) is an extra login step, such as a code from an app, on top of a password. Here the website's pages hid certain features until MFA was set up, but the server behind those pages never checked. Anyone who sent requests straight to the server, skipping the website, could use those features without MFA.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.