Skip to content
Account takeover Write-up Beginner

OTP Bypass — Weak brute-force protection

A website's one-time password check did not limit how many guesses could be made, so an attacker could try every four-digit code until the right one was found. This let an attacker complete the OTP step of login or verification without knowing the code.

Jitheshjithu Follow

Published on medium.com

The burp test verify possible combinations from 0000 to 9999, to find right OTP.

Jithesh, 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 OTP verification endpoint had no rate limiting or attempt cap, so unlimited guesses were accepted.

What the attacker needed

A target that sends OTP codes; no rate limiting on OTP checks; a captured OTP submission request

How it was found

  1. Request an OTP by submitting credentials, without capturing the request.
  2. Turn on the proxy so the OTP submission request is captured.
  3. Submit a wrong OTP such as an all-zero code of the same length.
  4. Send the captured request to the intruder tool.
  5. Mark the OTP field as the payload position and set a numeric payload range covering all possible codes.
  6. Run the attack and look for the response containing the correct OTP.

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 is a short code sent to your email or phone to prove it is you. If a site lets someone keep guessing that code as many times as they like, a computer can simply try every possible number until it hits the right one. This article shows that guessing loop against a site that had no limit on attempts.

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.