How Interesting 2FA Bypass Through Browser Feature Lead Me To Cri
The login flow allowed a user to skip the two-factor authentication step by pressing the browser's back button, leaving them with a lower-trust session. That lower-trust session could still create access tokens with full privileges, so an attacker with only a password could gain complete account access.
Published on medium.com
Hello Hackers! I’m Dishant Singh a 16-year-old bug bounty hunter from India.
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 application treated the back-button navigation as a completed login and issued a lower-trust session that was still allowed to create full-privilege access tokens.
Impact
An attacker who knows only the password could skip 2FA and, through the lower-trust session, create access tokens with full privileges, leading to full account takeover.
What the attacker needed
Valid username and password; victim uses a browser with a back button
The fix
The fix restricted access-token creation to fully authenticated sessions, so the back-button skip now only yields a minimal session.
How it was found
- Log in with username and password.
- The site asks for a 2FA code.
- Press the browser back button.
- The 2FA step is skipped.
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) asks for a second proof, such as a code from a phone, after your password. Here, pressing the browser's back button during login skipped that second step. The site then gave a limited session, but that limited session could still make powerful access tokens, so the protection was effectively useless.
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.