Skip to content
Account takeover Write-up Beginner

Hall of Fame Unlocked: Bypass Authentication

The signup endpoint accepted unlimited OTP guesses and returned a valid session token once the correct code was found. An attacker could brute-force the six-digit code within its ten-minute lifetime and then inject the resulting token into the browser to skip email verification.

medium.com

Published on medium.com

Balancing CSE coursework with late-night bug hunting always makes for an interesting schedule, but hitting a Hall of Fame makes the grind completely worth it! 🚀

Vanshrathore, 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 had no rate limiting or lockout, and the frontend trusted the server response body and status without independent checks.

Impact

An attacker could bypass email verification and register unauthorised accounts, though the author limited testing to 200 requests to respect the programme's denial-of-service rules.

What the attacker needed

A signup form with emailed OTP; no rate limit on verification; attacker can intercept traffic

The fix

The endpoint was fixed with a remediation patch after the report was acknowledged.

How it was found

  1. Enter an email address on the signup page and receive a six-digit code.
  2. Submit a wrong code and intercept the completion request in a proxy.
  3. Send the request to an intruder tool and try a small range of numbers.
  4. Note that failures return an error and no lockout occurs.
  5. Spot the successful response containing a valid session token.
  6. Edit the original failed response to a success status with the valid token body and forward it to the browser.

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 number (a one-time code) to prove the address is yours. This site never limited how many guesses someone could make, so a script could try codes until one worked. The author then edited the server's reply in their browser tool so the page believed the code was correct and let them in.

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.