Skip to content
Account takeover Write-up Beginner

The Most Easiest OTP Bypass Vulnerability I’ve Found: A Critical Flaw in Session Management

During registration the site sent an OTP to the email address but did not enforce verification, so opening a new tab let the attacker reach the newly created account. An attacker could register with someone else's email address and use the account without proving ownership of that email.

ajay.kumar.695632 Follow

Published on medium.com

In today’s digital landscape, securing online accounts is crucial, and one-time passwords (OTPs) are a common security measure to ensure that users are who they say they are. OTPs are typically sent to users’ email addresses during account registration or login.

Ajay Kumar, 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 registration session was treated as authenticated before the OTP check completed, so the verification step was not enforced on other tabs or sessions.

Impact

An attacker could create and access accounts tied to arbitrary email addresses without proving ownership, which the author frames as compromising user security.

What the attacker needed

No account needed; attacker knows a target email address; victim does not need to act

The fix

The OTP check should be enforced across all tabs and sessions so the account cannot be used until the code sent to the email is entered.

How it was found

  1. Visit the registration page.
  2. Register an account using the victim's email address.
  3. The system sends an OTP to that email but does not enforce verification.
  4. Without entering the OTP, open a new browser tab and navigate to the website.
  5. Access the newly created account without verifying the email.

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 one-time code (OTP) to prove the email is yours. Here the site created the account but never actually checked that code before letting you in. So anyone could sign up using another person's email address and start using that account straight away.

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 ajay.kumar.695632

View all

1 more disclosed report, 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.