Bypassing Rate Limit Using Timestamp
The forgot-password endpoint enforced a rate limit by comparing a client-supplied timestamp parameter with the previous request's value. By incrementing that timestamp on each request, an attacker could send unlimited password-reset emails to a victim.
Published on infosecwriteups.com
Rate limiting is a strategy for limiting network traffic. It puts a cap on how often someone can repeat an action within a certain timeframe — for instance, trying to log in to an account.
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 server relied on a client-controlled timestamp to detect repeated requests instead of tracking requests server-side.
Impact
An attacker could bypass the rate limit and flood a victim's inbox with password-reset emails, which could be used for harassment or to obscure a genuine reset message.
What the attacker needed
Victim's email address; ability to intercept requests
The fix
The rate limit should be enforced server-side per account or IP, without trusting a client-supplied timestamp.
How it was found
- Go to the forgot password page and enter the victim's email address.
- Intercept the request in Burp Suite.
- Send the request to Intruder and select the timestamp digits to increment.
- Automate incrementing the timestamp so each new request carries a different value.
- Observe a 200 OK response and many emails arriving in the victim's inbox.
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 rate limit is a cap on how many times you can do something, like request a password reset, in a short period. This site tried to enforce that cap by looking at a timestamp value sent by the browser and checking whether it matched the last one. Because the attacker could simply change the timestamp each time, the server treated every request as new and never blocked them.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.