Skip to content
Account takeover Write-up Intermediate

OTP BYPASS IN REGISTRATION PAGE

The registration page's OTP verification could be bypassed by reusing a valid OTP response from one email address for another email address. An attacker could register an account using someone else's email without their knowledge or permission.

medium.com

Published on medium.com

how are you? This is my first report about a web vulnerability I recently discovered on a website on the Hackeron platform.

Mohammed Yassin, 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 did not bind the OTP to the specific email address being registered, so a valid OTP from one email could be reused for another.

Impact

An attacker could register an account using someone else's email address without their knowledge or permission, which the author rates as medium to high risk.

What the attacker needed

Two email addresses; Burp Suite; victim's email address

How it was found

  1. Create two email addresses, one for the attacker and one for the target.
  2. Register with the attacker email and receive a code by email.
  3. Capture the attacker email request with Burp.
  4. Copy the response and keep it.
  5. Try to register with the target email.
  6. Enter a wrong code, intercept the request, use Intruder, paste the attacker response into the target response, and forward the request.

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 it's yours. This report shows that the site did not check that the code was actually for the email being registered, so a code sent to one email could be used to register a different email. That means someone could create an account with your email address without you agreeing.

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.