How I Found an Account Takeover Vulnerability in a Large Universi
The OTP verification endpoint accepted an unlimited number of guesses within the 15-minute validity window, with no rate limiting, lockout or IP blocking. An attacker could brute-force the six-digit code and take over any account for which they knew the email, phone and user ID.
Published on medium.com
While testing a university website, I found a serious vulnerability in the OTP verification system that could lead to full Account Takeover (ATO).
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, attempt counter, account lockout or IP throttling, so the short six-digit code could be guessed by automation.
Impact
An attacker could take over student, admin or teacher accounts, view personal information, change profile details and access internal systems.
What the attacker needed
Victim email, phone and user ID known; OTP valid for 15 minutes; automation tool
The fix
The OTP endpoint should enforce rate limiting, a maximum number of attempts, account lockout and IP throttling.
How it was found
- Enter the victim's email, phone number and user ID to trigger an OTP.
- Intercept the OTP verification request in a proxy tool.
- Send repeated OTP guesses and observe that the server keeps accepting them.
- Automate guessing until the correct six-digit code is matched.
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. This site let someone try as many codes as they wanted, so a script could simply guess all the possible six-digit numbers until one worked. Once the right code was found, 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.