Skip to content
Account takeover Write-up Intermediate

Bypassing OTP Verification in a Signup Page

The OTP verification step in a signup flow reused a static reference identifier across requests, so an attacker could substitute a previously valid reference identifier into a new verification request. This allowed bypassing email verification and completing signup without knowing the correct one-time password.

rat010 Follow

Published on medium.com

In the world of web security, even the smallest vulnerability can lead to significant breaches. Today, I’m sharing an intriguing discovery I made during my bug bounty— a critical OTP bypass vulnerability on a website’s signup page.

Kanhaiya Kumar Singh, 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 server trusted a client-supplied reference identifier that was not bound to the current signup session and did not rotate it between OTP requests.

Impact

An attacker could bypass email verification during signup, potentially creating accounts without proving ownership of the email address.

What the attacker needed

Ability to intercept and modify requests; a previous valid reference identifier

How it was found

  1. Fill out the signup form with email, name, mobile number and country, then submit it.
  2. Intercept the signup request and note the reference identifier returned in the response.
  3. Submit an incorrect OTP and observe the error response.
  4. Start a new signup, intercept the request and save the new reference identifier.
  5. Submit an incorrect OTP for the new signup and replace the reference identifier with the one from the previous request.
  6. Forward the modified request to bypass OTP verification.

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 sends a one-time code to your email to prove you own it. The site also gives your browser a hidden ticket (a reference identifier) that ties the code to your signup. The bug is that this ticket never changed, so someone could reuse an old ticket from a previous signup to skip entering the correct code.

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.