From Rate Limiting to Account Takeover: The Bug That Escalated Qu
A delivery partner login page lacked rate limiting and returned different responses for valid and invalid phone numbers, allowing user enumeration. The one-time password could then be brute-forced without lockout, enabling account takeover.
Hy guys, I’m Sathya and It’s my first blog so let’s get started, I started my day like most curious tech folks do poking around a login page, wondering if someone forgot to implement rate limiting. You know the usual responsible digital mischief.
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 login endpoint had no rate limiting or lockout on either the phone-number check or the one-time password verification, and it returned distinguishable responses for valid and invalid numbers.
Impact
An attacker could take over internal delivery partner accounts, exposing personal data and enabling phishing or SIM swaps.
What the attacker needed
Access to the login page; no account needed
How it was found
- Send many login requests with random phone numbers and observe no blocking.
- Notice a valid number returns 200 OK while an invalid number returns 400 Bad Request.
- Use the enumeration to collect real phone numbers.
- Brute-force the short one-time password without hitting a lockout.
- Eventually guess a valid code and access the account.
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 login page that asks for a phone number and then a one-time code should limit how many guesses someone can make. Here it did not, and it also revealed which phone numbers were registered. An attacker could therefore guess the short code and get into someone else's 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.