$70,000 from a Simple 2FA Bypass: A Lesson in Observation Over Exploits
The application issued the same session token before and after completing two-factor authentication, so the session was never actually elevated. An attacker with valid credentials could reuse the pre-2FA token to access the account without completing the second factor.
Published on icecream23.medium.com
In bug bounty, we love talking about complex vulnerabilities, remote code execution, race conditions, deserialization chains, and zero-days that look cool in write-ups. But sometimes, the most valuable bugs come from doing something far less glamorous: paying attention.
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 server failed to replace or upgrade the session token after successful 2FA, leaving the pre-2FA token valid for authenticated access.
Impact
An attacker who already has valid credentials could bypass the second factor and access the account; the same flawed logic was reused in a second application owned by the same company.
What the attacker needed
Valid username and password; ability to intercept HTTP traffic
How it was found
- Submit valid username and password and observe the session token issued before 2FA.
- Complete or observe the token issued after 2FA and compare it with the earlier token.
- Intercept the response and reuse the pre-2FA token where the post-2FA token is expected.
- Access the account without completing the 2FA challenge.
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) is a second check, like a code from your phone, after your password. Normally the site gives you a limited session after the password and a full session only after the code. Here the site gave the same session both times, so the second check could be skipped.
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.