The $12,000 2FA Bypass — So Simple, Yet So Critical!
The application enforced a rate limit on 2FA OTP attempts using a request parameter, but sending that parameter with an empty value bypassed the limit. An attacker could then brute force the 3-digit OTP and take over the victim's account.
medium.com
Published on medium.com
This is another one of my old discoveries, sharing it. Sometimes the most rewarding bugs are not the most complex ones.
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 rate-limiting logic trusted a client-supplied parameter to decide whether to enforce the limit, and an empty value caused the check to be skipped.
Impact
An attacker could brute force the 3-digit OTP and take over the victim's account.
What the attacker needed
Valid credentials for the victim account; ability to intercept and modify requests
How it was found
- Log in with valid credentials to receive an OTP.
- Capture the OTP request in a web proxy.
- Identify the POST request where the OTP is submitted.
- Locate the RAREPARA parameter in the request.
- Send multiple incorrect OTP attempts and observe the rate-limiting response.
- Modify the RAREPARA parameter to an empty value and resend the request.
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 logging in with a password, the site asked for a short 3-digit code sent to the user (two-factor authentication, or 2FA). The site was supposed to block someone from guessing that code too many times, but a single field in the request controlled that block. By sending that field empty, the block disappeared, so someone could keep guessing until they got 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.