Skip to content
Account takeover Write-up Intermediate

Breaking the Gate: How We Bypassed Email Verification on a Major

The rate limit on OTP verification was tied to the JWT token rather than the email address, and guest JWT tokens were freely obtainable. An attacker could rotate tokens to bypass the limit and brute-force the OTP, thereby verifying an email address they did not own.

letchupkt Follow

Published on letchupkt.medium.com

It started like any other security assessment. Along with Balaji and Anisto, I was probing the authentication mechanisms of a major raffle-based web platform.

letchupkt, on letchupkt.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 rate limit was keyed to the JWT token instead of the email address, and guest tokens were freely available and long-lived.

Impact

An attacker could verify an email address they do not control, enabling impersonation and abuse of trusted verification status; the text does not mention any defence that blocked the attack.

What the attacker needed

Ability to obtain guest JWT tokens; victim's email address; no victim interaction needed

The fix

Rate limiting should be applied per email address (and combined with other signals) rather than per session token, and guest token issuance should be restricted.

How it was found

  1. Collect multiple guest JWT tokens by visiting the login page with arbitrary email addresses and extracting the tokens.
  2. Register an account using the victim's email address to trigger an OTP to that address.
  3. Use each token for up to 10 OTP guesses, rotating to a new token when blocked with HTTP 429.
  4. Continue until the correct OTP is found and the email is verified.

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, the site emails you a short numeric code to prove the email is yours. The site tried to stop people guessing that code by blocking them after ten wrong tries, but it counted tries per login session rather than per email address. Because anyone could get a fresh session for free, an attacker could keep starting over and guess the code until it was right.

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 letchupkt

View all

14 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.