Rate limit bypass lead to OTP bypass($600)
The email-change flow sent a six-digit PIN to the user's old address, and the verification endpoint's rate limit could be bypassed, allowing an attacker to brute-force the code. With the correct PIN an attacker could complete the email change and take over the account.
Published on bytesnull44.medium.com
I was checking some mechanisms of my target website to understand how their rate limit works. First, I tested changing the email.
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 OTP verification endpoint enforced its rate limit in a way that could be evaded, so repeated guesses were still accepted.
Impact
An attacker could brute-force the email-change PIN and complete the change, which could lead to account takeover.
What the attacker needed
Victim's email change initiated; attacker can reach OTP endpoint
The fix
The rate limit on OTP verification was fixed and the reporter confirmed the bypass no longer worked.
How it was found
- Send repeated OTP verification requests until the rate limit triggers.
- Apply a bypass method to keep submitting requests without being blocked.
- Iterate through all possible six-digit codes to find the valid one.
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.
When you change your email address, the site sends a short numeric code to your old email to confirm it is really you. The site tried to stop people guessing that code by blocking them after too many tries, but the block could be avoided, so a script could keep guessing until it found the right code. Guessing the code lets someone finish the email change and control the account.
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.