Skip to content
Account takeover Write-up Beginner

OTP bypassed by using luck infused logical thinking bug report

The OTP verification endpoint accepted an empty OTP value and returned a success response, allowing an attacker to log in without knowing the six-digit code. The author found this by intercepting the request and sending a blank OTP field.

medium.com

Published on medium.com

It was one of those days. My to-do list said: “Study for finals.” But my brain said: “Poke around on this random login page instead.”

Muthu, 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 treated a missing or empty OTP value as a valid match instead of rejecting it.

Impact

An attacker could verify an account without knowing the OTP, potentially taking over accounts if they know the email address.

What the attacker needed

A valid email address; ability to intercept HTTP requests

How it was found

  1. Sign up with an email and receive a six-digit OTP.
  2. Intercept the OTP verification request in Burp Suite.
  3. Change the OTP value to an empty string.
  4. Send the request and observe a 200 OK success response.

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.

A one-time password (OTP) is a short code sent to your email or phone to prove it is you. Here the website checked the code but treated an empty code as correct, so anyone could skip the check by sending nothing. This is like a bouncer who lets you in if you show an empty ticket.

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.