When APIs Can’t Keep Up: How I Exploited Misconfigured Rate Limits to Crash the Party
An API endpoint lacked effective rate limiting, allowing an attacker to send many requests without being throttled. The author demonstrated that this could cause the API to become unresponsive and affect dependent services.
Published on myselfakash20.medium.com
During my reconnaissance phase, I mapped out the API's endpoints using tools like Postman and Burp Suite. My focus was on the endpoints handling high-value actions, such as data fetching, user authentication, and file uploads.
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 API endpoint had no server-side rate limiting or throttling mechanism in place.
Impact
The API could be rendered completely unresponsive, and dependent services could also fail, causing data unavailability and increased operational costs.
What the attacker needed
Access to the API endpoint; no authentication required (implied)
The fix
The organisation rolled out a patch to address the issue, and the report recommends implementing server-side rate limiting, throttling, CAPTCHA, monitoring, and load testing.
How it was found
- Map the API endpoints and identify a high-value endpoint that responds quickly to repeated requests.
- Send ten requests in under two seconds and observe that no throttling or 429 error occurs.
- Use Burp Intruder to send 500 requests in quick succession and observe increasing response times and timeouts.
- Write a Python script using threads to send thousands of parallel requests, causing the API to become unresponsive.
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 control that stops a client from making too many requests in a short time. Without it, someone can flood a server with requests, using up its resources and making it slow or unavailable for everyone else. This is called a denial-of-service attack.
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.