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.
Published on medium.com
The burp test verify possible combinations from 0000 to 9999, to find right OTP.
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
- Request an OTP by submitting credentials, without capturing the request.
- Turn on the proxy so the OTP submission request is captured.
- Submit a wrong OTP such as an all-zero code of the same length.
- Send the captured request to the intruder tool.
- Mark the OTP field as the payload position and set a numeric payload range covering all possible codes.
- 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.