MediumAPI4:2023CWE-770API Security

API Rate Limiting Bypass

Missing or improperly implemented rate limiting allows attackers to make unlimited API requests. This enables brute-force attacks, data scraping, resource exhaustion, and denial of service.

Overview

Rate limiting is essential for API security but is frequently missing or improperly implemented. Attackers can exploit this to perform brute-force attacks, scrape data at scale, exhaust server resources, or inflate costs for pay-per-use services. Common bypass techniques include using multiple IP addresses, rotating API keys, or exploiting inconsistencies between rate limiting layers.

Impact

Brute-force attacks, data scraping, denial of service, resource abuse, cost inflation (for pay-per-use APIs).

Remediation

Implement rate limiting per user/IP/API key, use token bucket or sliding window algorithms, return 429 status codes, and apply different limits for authenticated vs. unauthenticated users.

Implement rate limiting on all API endpoints

Use sliding window or token bucket algorithms

Rate limit by user identity, not just IP address

Return 429 Too Many Requests with Retry-After header

Apply stricter limits on sensitive endpoints (login, password reset)

Related SuperClue scanner checks

These scanner checks look for signs of API Rate Limiting Bypass. What a scan can confirm from outside depends on your application.

Rate Limit TestingThrottling Bypass Detection

Scan a domain you have verified with up to 350 modules, paid in credits.

See how website scanning works

References

Related Vulnerabilities