Skip to content
DoS Write-up Beginner

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.

myselfakash20 Follow

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.

Akash Ghosh, on myselfakash20.medium.com

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

  1. Map the API endpoints and identify a high-value endpoint that responds quickly to repeated requests.
  2. Send ten requests in under two seconds and observe that no throttling or 429 error occurs.
  3. Use Burp Intruder to send 500 requests in quick succession and observe increasing response times and timeouts.
  4. 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.

More by myselfakash20

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.