How I earned $$$ by bypassing 2FA
After logging in with a password, the site asked for a 2FA code on a dedicated page, but navigating directly to the dashboard URL skipped that check. An attacker who knew the password could reach the account without the second factor.
Published on medium.com
Hi, I would like to share how I was able to bypass 2FA. This is a private program on Hackerone, so we will call it example.com.
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 dashboard page did not check that the 2FA step had been completed before serving the authenticated content.
Impact
An attacker who already had the victim's password could log in without the second factor, so 2FA gave no protection.
What the attacker needed
Victim's password known; 2FA enabled on the account
How it was found
- Enable 2FA on the account and log out.
- Log in again with the password and reach the 2FA code page.
- Instead of entering the code, navigate directly to the dashboard URL.
- The dashboard loads and the account is accessible without the code.
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 proof of identity, such as a code from a phone, asked after the password. Here the site only showed the code page but did not actually require it before loading the dashboard. So anyone with the password could type the dashboard address and get in.
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.