Skip to content
Account takeover Write-up Beginner

How I Discovered a Critical OTP Rate Limiting Vulnerability on a

The OTP verification endpoint had no rate limiting, so an attacker could repeatedly submit guesses for a six-digit code. With enough automated requests, an attacker who knows a victim's email could guess the code and take over the account.

lime Follow

Published on medium.com

Before diving into the technical details, let’s take a quick journey into the world of probability in mathematics.

Lime, 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 OTP verification endpoint accepted unlimited attempts because no rate limiting, lockout or CAPTCHA was enforced.

Impact

An attacker could brute-force the OTP at high speed and take over the account, needing only the victim's email address.

What the attacker needed

Victim's email address; no rate limiting on OTP check

The fix

The report says the issue was patched after disclosure; developers should also enforce rate limits, add lockouts or CAPTCHAs, and monitor unusual activity.

How it was found

  1. Send an OTP verification request with a guessed code value.
  2. Intercept the request and send it to Repeater to check for rate limiting.
  3. If repeated requests are not blocked or throttled, treat it as a vulnerability.
  4. Send the request to Intruder and configure it to try all six-digit codes.
  5. Start the attack and wait for the correct OTP to be found.

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 log in, a site may text or email you a short number called a one-time password (OTP) to prove it is you. If the site lets someone try that number over and over with no limit, a computer can simply guess until it gets the right one. That lets an attacker get into someone else's 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.

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.