HOW I GOT ACCESS TO ACCOUNT BY OTP BYPASS
The OTP verification endpoint accepted repeated guesses without any rate limiting or CAPTCHA, so an attacker could brute force the code. A successful guess let the attacker log in as the victim and see their personal details and order information.
Published on medium.com
Recently, I discovered an OTP (One-Time Password) bypass vulnerability on a website, and I’d like to share the journey that led to this discovery.
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 lacked rate limiting and account lockout, and the codes were not genuinely random.
Impact
An attacker could bypass OTP verification and gain unauthorised access to user accounts, and where OTPs protected financial operations this could lead to financial loss.
What the attacker needed
Victim's phone number; no rate limiting on OTP check
The fix
The report recommends genuinely random OTPs, rate limiting, and properly tying OTPs to sessions; the team said a patch would be implemented.
How it was found
- Open the login page.
- Enter the victim's phone number.
- Send a sample OTP and capture the request.
- Run a brute force attack with an intruder tool.
- Copy the valid OTP and submit it in the form.
- View the victim's information, including name and order details.
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 phone to prove it is you. This site let someone try thousands of codes in a row with no slowdown or lockout, so guessing the right one became practical. Once guessed, the attacker was logged in as the victim.
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.