Rate Limiting Vulnerabilities
Understand common flaws in API rate limiting implementations.
TAMPER OBJECT IDENTIFIER
Client substitutes foreign resource ID
User 'Bob' observes legitimate endpoint structure and tampers with the object ID parameter, requesting data belonging to User 'Alice' to test for Rate Limiting Vulnerabilities.
GET /api/v2/customers/1092/private_records HTTP/1.1 Host: api.gateway.corp Authorization: Bearer <Bob_Valid_JWT>
PACKET FLOW (WIRESHARK INSPECTOR)
| NO. | TIME | SOURCE | DESTINATION | PROTOCOL | INFO | SIZE |
|---|---|---|---|---|---|---|
| 1 | 0.000s | 192.168.1.10 | api.gateway.corp | HTTP | GET /api/v2/customers/1092/private_records [Auth: Bob] | 162 B |
| 2 | 0.015s | api.gateway.corp | 10.0.1.25 | JSON | RPC: Forwarding request to Account Microservice | 198 B |
| 3 | 0.028s | 10.0.1.25 | 10.0.2.90 | SQL | QUERY: SELECT * FROM customers WHERE id = 1092 | 174 B |
| 4 | 0.041s | 10.0.2.90 | 10.0.1.25 | SQL | DATA: [id=1092, owner=Alice, balance=$92k] | 270 B |
| 5 | 0.056s | 10.0.1.25 | 192.168.1.10 | HTTP | HTTP/1.1 200 OK [Alice's Confidential Data returned to Bob] | 356 B |
GET /api/v2/customers/1092/private_records HTTP/1.1 Host: api.gateway.corp Authorization: Bearer <Bob_Valid_JWT>
What is Rate Limiting Vulnerabilities?
Root Cause Analysis
// BAD: Untrusted execution or unhardened configuration
const config = { debug: true, allowUnauthenticated: true };
app.use('/api', createService(config));// GOOD: Strict hardening and defense-in-depth
const config = { debug: false, allowUnauthenticated: false, authRequired: true };
app.use('/api', authenticate, createService(config));Detection & Penetration Testing Methodology
Tools Used in This Manual
| Tool | Purpose |
|---|---|
| Burp Intruder | Send a controlled burst of requests and read status/timing per request |
| Turbo Intruder | Higher-throughput burst testing when Intruder's speed isn't enough to reveal the issue |
| Burp Repeater | Manual confirmation of large-payload/pagination behavior, one request at a time |
Overview
This category covers two related but distinct risks: missing rate limiting (an endpoint lets you send requests as fast as you want, with no 429/CAPTCHA/lockout) and resource exhaustion (a single request -- not a volume of them -- can make the server do a disproportionate amount of work, via an oversized payload or an unbounded query parameter). Both ultimately threaten availability, but they're tested differently: one needs many requests, the other needs one carefully-crafted request and a timer.
This lab covers 5 steps:
Identify endpoints without evident rate limiting
Send a burst and observe throttling/429/CAPTCHA
Submit oversized payloads/pagination parameters
Measure response time/resource impact to confirm real DoS risk
Document endpoint, volume/size used, and observed impact
Step 1 -- Identify Candidate Endpoints
Goal: Flag endpoints where rate limiting matters most -- anything authentication-related, any search/filter feature, and any export/report generator.
Common candidates:
Login, registration, password reset, OTP verification (already covered partly in the Broken Authentication manual -- this module takes a broader resource-exhaustion angle beyond just credential guessing)
Search endpoints, especially ones with complex filters or free-text queries
Export/report generation ("export all orders as CSV", "generate PDF report")
Any endpoint accepting a date range, page size, or "limit" parameter
How to find them: browse the app normally with Burp's proxy running, and flag anything from the list above in HTTP history as you go.
Step 2 -- Burst Testing for Missing Rate Limiting
Goal: Send many requests to the same endpoint in a short window and check whether the server pushes back at any point.
2.1 Capture and send to Intruder
Capture the candidate request, send it to Intruder. Even for a simple repeated-request test (no varying payload needed), Intruder is the right tool because its results grid gives you per-request status/length/time without any scripting.
2.2 Set up a "null" payload position just to repeat the request
Mark any single character as the payload position, and use a Null payloads generator set to repeat a fixed number of times (e.g. 100) -- this sends the identical request 100 times without needing a real wordlist.
2.3 Control the speed via Resource Pool settings
Under Resource Pool, you can set the number of concurrent requests and an optional delay -- start conservatively (e.g. 5 concurrent, no artificial delay beyond that) rather than maxing out throughput immediately, especially on the first test of a given endpoint.
2.4 Run it and read the results grid
Look down the status code and response-length columns for the point, if any, where behavior changes:
| Observation | Meaning |
|---|---|
| All 100 requests return identical status/length/timing | No rate limiting detected |
| Status changes to 429 Too Many Requests partway through | Rate limiting present -- note at which request number it kicked in |
| A CAPTCHA challenge appears in the response body partway through | CAPTCHA-based throttling present |
| Response time climbs steadily across the batch | Possible resource strain building up, even without explicit throttling |
2.5 Escalate volume gradually if nothing shows at 100
Rerun with a higher repeat count (500, 1000) and/or higher Resource Pool concurrency only if the first run showed no effect at all -- don't jump straight to very high volume against a system you haven't tested at all yet.
Step 3 -- Oversized Payloads and Pagination Parameters
Goal: Test whether a single request with an extreme parameter value can force the server to do disproportionate work -- this doesn't need volume, just one well-chosen value.
3.1 Baseline first, in Repeater
Send a normal request with a typical page size/date range and note the response time:
GET /api/orders?page=1&pageSize=20
3.2 Oversized pagination
In the same Repeater tab, change pageSize to an extreme value and resend:
GET /api/orders?page=1&pageSize=1000000
3.3 Oversized date range
GET /api/reports/export?startDate=2000-01-01&endDate=2026-12-31
3.4 Oversized request body (e.g. a bulk-import or search endpoint accepting an array)
Construct a request body with a very large array/string and send via Repeater -- Burp's request editor handles large bodies without issue, so you can paste in a sizeable payload directly rather than scripting its generation.
3.5 Reading results
| Response | Meaning |
|---|---|
| Server rejects with a clear validation error ("pageSize exceeds maximum of 100") | Properly bounded |
| Server accepts and processes, but response time increases proportionally and noticeably | Potential resource exhaustion -- confirm severity in Step 4 |
| Server hangs, times out, or returns a 5xx error | Strong confirmation -- stop and document immediately, don't repeat this specific payload against the same instance |
Step 4 -- Measure Response Time and Resource Impact
Goal: Distinguish "this is somewhat slower" (benign, low-severity) from "this genuinely threatens availability" (confirmed DoS risk) -- Burp's own response-time display is usually sufficient for this measurement.
4.1 Burp Repeater and Intruder both show response time natively
No separate timing tool is needed -- Repeater's response panel shows the elapsed time for each send, and Intruder's results grid has a dedicated "Response received" / timing column across the whole batch. Compare the baseline (Step 3.1) against each escalated payload's time directly in these built-in displays.
4.2 Confirm the impact is server-side work, not just a slow client-side render
If the response itself takes a long time to even start arriving (not just a large body taking time to download), that's a stronger signal of real backend resource consumption -- Burp's timing breakdown (available via the request's details) distinguishes time-to-first-byte from total transfer time.
4.3 Check for a proportional relationship
Test two or three intermediate payload sizes (not just baseline vs. extreme) to see whether response time scales roughly linearly, exponentially, or hits a wall -- an exponential relationship is a stronger finding than a linear one, since it means the attacker's cost to cause harm is much lower than the server's cost to process it.
4.4 Stop escalating at the first sign of genuine server strain
If a single request already causes a timeout or visible slowdown in the rest of the app (other endpoints also become slow while this request is pending), that's sufficient confirmation -- there's no need to push further or repeat the extreme payload multiple times to "prove it more," which only adds unnecessary load to the target.
Step 5 -- Document Endpoint, Volume/Size, and Impact
Goal: Export directly from Burp's native results.
5.1 Intruder burst-test results
"Save results" / export -- captures the full per-request status/timing table from Step 2 in one file.
5.2 Repeater single-request evidence
"Save item" -- these pairs show the direct before/after comparison for Step 3/4's findings.
5.3 State the concurrency/volume and resulting impact explicitly
Precise numbers matter here -- "no rate limiting observed after 1,000 requests over 2 minutes" is a very different finding from "no rate limiting observed after 50 requests over 10 seconds," even though both are "confirmed."
Evidence Table Template:
| No. | Endpoint | Test Type | Volume/Size Used | Observed Behavior | Response Time Impact | Conclusion |
|---|---|---|---|---|---|---|
| 1 | /login | Burst (Intruder, null payload, 5 concurrent) | 1,000 requests over ~3 min | No 429, no CAPTCHA, no lockout at any point | Consistent ~200ms throughout | Confirmed -- no rate limiting |
| 2 | /api/search | Burst (Intruder) | 500 requests over ~90 sec | Identical behavior throughout | Consistent | Confirmed -- no rate limiting |
| 3 | /api/orders?pageSize= | Oversized parameter (Repeater) | pageSize=1,000,000 vs. baseline 20 | Accepted, no validation error | Confirmed -- resource exhaustion risk | |
| 4 | /api/reports/export | Oversized date range (Repeater) | 26-year range vs. baseline 1-month | Accepted, server eventually returned 504 | Timed out after 30s | Confirmed -- critical DoS risk |
| 5 | /api/bulk-import | Oversized body (Repeater) | 50,000-item array vs. baseline 10 items | Rejected with validation error at 10,000 | N/A | Not vulnerable -- properly bounded |
Proof of Concept
[Insert the exact request and payload that demonstrate the vulnerability, and the resulting response.]
Evidence
[Insert screenshot or HTTP request/response excerpt -- Figure F-34-1.]
Remediation
Implement rate limiting and quotas per user/IP/API key, tuned to legitimate usage patterns.
Enforce maximum payload sizes and bound pagination parameters.
Apply timeouts and resource ceilings for expensive operations (exports, reports, search).
Monitor and alert on abnormal request volume.
Re-test with the same load pattern after remediation.
Retest Notes
[ ] Not yet retested [ ] Retested -- Resolved [ ] Retested -- Not resolved. [Retest date and tester name.]
References
CWE-770 OWASP API Security Top 10 OWASP WSTG
Lab Scenario
Launch your local laboratory environment (e.g., OWASP Juice Shop, DVWA, or crAPI) to verify this vulnerability.