“Day 12: The Rate Limit Paradox — How I Weaponized API Protections for a $500 DoS Bug”
The API's rate limiting trusted a client-supplied header to track login attempts, so an attacker could replay requests with a modified header to lock any user account for 24 hours. This allowed a denial-of-service attack against arbitrary accounts.
Published on infosecwriteups.com
While testing a fintech API last month, I discovered their “robust” rate limiting system had a fatal flaw — it could be tricked into locking every user account for 24 hours. What the developers intended as brute-force protection became a denial-of-service weapon, earning me a $500 bounty.
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
Impact
An attacker could lock any user account for 24 hours, causing a denial of service.
What the attacker needed
Ability to send HTTP requests; knowledge of victim email
The fix
The rate limiting should be enforced server-side using a trusted store like Redis, never relying on client-provided headers.
How it was found
- Send a normal login request and observe the rate limit response.
- Notice the X-RateLimit-User header showing remaining attempts.
- Intercept a valid login request for a victim account.
- Replay the request with a modified X-RateLimit-User header set to 1/5.
- After five replays, the account is locked for 24 hours.
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.
Rate limiting is a security feature that stops attackers from guessing passwords by limiting how many tries you get. Here, the server believed the attacker's own count of remaining tries instead of keeping its own record, so the attacker could pretend to have used up all attempts and trigger a lockout for any user.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.