Unlocking Success: My Journey to Bypassing 2FA and Winning My Fir
The two-factor authentication check after login had no rate limiting or account lockout, so an attacker could keep guessing one-time codes until the right one was found. With the correct code they could get past the second login step and into the account.
Hi, This is mihad0x1. This is my first write-up about how I bypassed a 2FA and got my First Bounty.
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 accepted an unlimited number of OTP guesses per account without rate limiting or lockout, and the attacker rotated source addresses to avoid any per-IP throttling.
Impact
An attacker could brute-force the correct OTP and gain unauthorised access to an account, though the author notes the attack relied on IP rotation to get past rate limiting.
What the attacker needed
Valid email and password for the account; ability to intercept requests; many source IP addresses
The fix
The 2FA check should enforce rate limiting and account lockout after a small number of failed OTP attempts; the text says the report was confirmed and a bounty awarded but does not describe the fix.
How it was found
- Log in with email and password to reach the 2FA verification page.
- Enter a wrong OTP and intercept the verification request in Burp Suite.
- Send the request to Intruder and mark the OTP parameter as the attack position.
- Set a numeric payload range covering the possible OTP values.
- Enable the IP Rotate extension so each request comes from a different address.
- Launch the attack and compare response lengths to spot the valid 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.
After you type your password, many sites ask for a short extra code, often sent to your phone, called a one-time password or OTP. This site let someone try thousands of different codes in a row without slowing them down or locking the account. Because the codes are short, guessing every possibility eventually finds the right one and lets the attacker 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.