Skip to content
Account takeover Write-up Intermediate

What Behind My First Critical Bug — ATO $X,XXX

The password reset flow used a 6-digit OTP, and the server only enforced CAPTCHA and rate limiting on the first few failed attempts, then disabled them. An attacker could brute-force the OTP and reset any user's password, leading to account takeover.

medium.com

Published on medium.com

Hi hackers, I’m Mahmoud Barkat (aka brbr0s) a bug hunter who’s always trying to learn more and get better at what he does.

brbr0s, on medium.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 server only applied CAPTCHA and rate limiting to the first batch of failed OTP attempts, then removed those protections, allowing unlimited guessing.

Impact

This flaw allows an attacker to reset any user’s password, leading to full account takeover across all connected company services.

What the attacker needed

Victim's email address; ability to solve CAPTCHA once; tool to send many requests

How it was found

  1. Try to log in with any user's email and choose 'Forgot password'.
  2. Enter a random 6-digit OTP and send the request while Burp Suite is intercepting.
  3. Send the request to Repeater and click Send repeatedly until a 429 status code appears.
  4. Return to the browser, enter another random OTP, and solve the CAPTCHA.
  5. Observe that the rate limit disappears and many requests can be sent.
  6. Use a tool like Turbo Intruder to brute-force the OTP until a 200 OK response with authenticated:false is received.

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.

A password reset often sends a short numeric code to your email. This site stopped checking for too many wrong guesses after a few tries, so someone could keep guessing until they found the right code and then set a new password for the victim.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.