Cache-Busting Bonanza: How I Bypassed Rate Limits Using HTTP Weir
The API's rate-limiting mechanism could be bypassed by manipulating the request path and adding headers, causing the cache to treat each request as a different resource while the backend processed them all. An attacker could then send unlimited requests, potentially enabling brute-force attacks or unrestricted file uploads.
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 caching layer used a cache key that included the full request path and certain headers, so variations were treated as different resources, while the backend ignored these differences and applied the same logic, and the rate limiter relied on the cache key.
Impact
An attacker could bypass rate limits to perform brute-force attacks or upload files without restriction, potentially leading to further compromise.
What the attacker needed
Target has a rate-limited API endpoint; cache layer misconfigured to treat path variations as…
How it was found
- Send a request to the upload endpoint and observe the 429 rate limit after 20 requests.
- Try adding headers like X-Forwarded-Host, but still get 429.
- Modify the path by adding a trailing slash, dot, or encoded characters, and observe that the rate limit is no longer triggered.
- Combine multiple path variations and headers to send 500 requests without hitting the limit.
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 requests you can make in a certain time. The author found that by changing the URL slightly (like adding a dot or slash) and adding special headers, the system that counts requests got confused and stopped counting, so they could send many more requests than allowed.
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.