How I Bypassed Mandatory 2FA Three Ways on a multi tenant SaaS Platform (~$1,125)
The platform's mandatory two-factor authentication (2FA) was not enforced on all authentication paths: a session was issued before OTP verification, password reset returned an authenticated session without OTP, and OAuth login bypassed 2FA entirely. An attacker with a leaked password, access to the victim's email, or a linked provider account could obtain an authenticated session without ever providing the second factor.
Published on medium.com
The platform enforced mandatory 2FA on every account, yet exposed at least three paths to an authenticated session that never verified the second factor. I reported all three separately roughly $375 each and all three trace back to the same underlying flaw.
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 2FA check was tied only to the password login handler, not to the session or authorization layer, so other session-creating paths (password reset, OAuth) never enforced it.
Impact
A leaked password, a compromised inbox, or a linked provider each yield account access without the second factor; the reset and OAuth bypasses affect every tenant via the shared flow, while the first is limited to the main tenant, and each bypass yields access only to the authenticating account, not cross-tenant isolation.
What the attacker needed
Leaked password or email access or linked provider; for reset: access to victim's inbox or token; for OAuth: account reachable via provider
The fix
The fix should treat MFA completion as a session property required by protected routes, route all login paths through a single check, require step-up for reset, and avoid linking OAuth accounts on unverified email.
How it was found
- Submit username and password to the login endpoint; the response sets a session cookie and indicates 2FA is required.
- Use that session cookie to request a protected API endpoint directly, skipping the OTP step.
- Observe that the endpoint returns authenticated account data and allows state-changing actions.
- For password reset: submit a valid reset token and new password; the response sets an authenticated session cookie without OTP.
- For OAuth: complete the OAuth flow with a linked provider; the callback sets an authenticated session cookie without OTP.
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.
Two-factor authentication (2FA) adds a second step, like a one-time code, after your password. Here, the system gave out a working session (a logged-in cookie) before that second step was checked, and other login methods like password reset or OAuth skipped the check entirely. So anyone with just the password, or access to the email, could get in without the extra code.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.