Rate Limit? I Barely Know Her: How I Brute-Forced OTPs Like a Gen
The OTP verification endpoint lacked rate limiting, allowing an attacker to brute-force the six-digit code and log into any account. The session cookie was not tied to the OTP or account, enabling session reuse and a 2FA bypass.
Free Link🎈
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, account lockout, or attempt throttling, and the session cookie was not bound to the OTP or account.
Impact
An attacker could brute-force the OTP to log into any account and reuse the session cookie, bypassing two-factor authentication.
What the attacker needed
Knowledge of victim's phone number; no rate limiting on OTP endpoint
The fix
The report recommends implementing rate-limiting, account lockout after failed attempts, randomizing OTPs per request, binding OTPs to IP/device fingerprint, and adding delay or exponential backoff.
How it was found
- Intercept the OTP verification request.
- Run a brute-force script trying all six-digit codes until success.
- Use the stolen session cookie to access the dashboard.
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 phone or email to prove it's you. If a website lets someone try thousands of guesses without slowing them down, an attacker can simply guess the code and break into your account.
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.