Skip to content
Account takeover Write-up Beginner

How I get $ 1,000 and You Can Get it using Rate Limit on OTP

The email verification endpoint did not enforce rate limiting or any delay on failed attempts, so an attacker could repeatedly guess the verification code for any email address. The author claims that guessing the correct code would verify the account without authorisation, potentially leading to account takeover.

medium.com

Published on medium.com

As part of my security research on YesWeHack and HackerOne programs, I discovered a vulnerability in an API endpoint that handles email verification codes.

Y0s_0x_IBM, 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 verification endpoint lacked any rate limiting, delay, or CAPTCHA on failed code attempts.

Impact

An attacker could rapidly guess verification codes and, if successful, verify an account without authorisation, which the author says could lead to account takeover; the text does not show a defence blocking the attack.

What the attacker needed

A disposable email address; ability to intercept HTTP requests; victim's email address known

The fix

The endpoint should enforce rate limiting on verification attempts, add a CAPTCHA after several failures, and use longer codes with expiry; the text does not say it was fixed.

How it was found

  1. Go to the registration page and register with a temporary email address.
  2. Intercept the email verification request in Burp Suite.
  3. Send a request to the verification endpoint with an invalid verification code.
  4. Repeat requests with different verification code values in Burp Repeater.
  5. Observe that the server returns an incorrect-code message without any delay, block, or rate limit.
  6. Continue guessing until the response indicates success.

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 sign up, a website emails you a short code to prove the address is yours. This report says the site let someone try that code over and over with no waiting or lockout, so a computer could guess it. If the guess is right, the account gets verified without the real owner's permission.

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.