Skip to content
Account takeover Write-up Beginner

The $2,200 ATO Most Bug Hunters Overlooked by Closing Intruder To

The login system used a 6-digit OTP sent by email, and the server returned 401 Unauthorized after 20 wrong guesses, which looked like rate limiting. However, the server still accepted a correct OTP even after many failed attempts, so an attacker could brute-force the OTP and take over an account.

Mohsin Khan Follow

Published on mokhansec.medium.com

Bug hunting is a mix of technical skills, persistence, and curiosity. Sometimes, the simplest bugs are overlooked because of one thing — assumptions.

Mohsin khan, on mokhansec.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 returned an error status for invalid OTPs but did not actually enforce a limit on the number of attempts, so a correct OTP was still accepted after many failures.

Impact

An attacker could brute-force the OTP and obtain an access token, leading to account takeover; the 401 responses did not actually block the attack.

What the attacker needed

Victim's email address known; no real rate limit on OTP attempts; attacker can send many requests

How it was found

  1. Capture the OTP verification request in Burp Suite and send it to Intruder.
  2. Configure Intruder to try all 6-digit numeric combinations (000000 to 999999).
  3. Observe that after 20 attempts the server returns 401 Unauthorized for invalid OTPs.
  4. Continue the brute-force run despite the 401 responses.
  5. After about 200,000 requests, notice a 200 OK response containing an access token.

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 one-time password (OTP) is a short code sent to your email or phone that you type in to log in. If a website lets someone guess that code over and over without stopping them, the attacker can eventually guess correctly and get into the account. Here, the site seemed to block guessing after a few tries, but it actually kept accepting the right code even after many wrong ones.

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.

More by Mohsin Khan

View all

2 more disclosed reports, best first.

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.