Test rate limits with paced requests

Information disclosureDiscovery

Written with a model's help from “The Rate Limit That a Two-Second Pause Defeats” by Vigneshkumaroffsec on Vignesh Kumar (Medium). Read the writeup before relying on it.

To test if a rate limit can be bypassed, send requests to the target's API with a pause of a few seconds between each request, using the same account and token. If the rate limit is not triggered, it may indicate that the limit is not effectively enforced. Check the X-RateLimit-* headers in the response to see if they match the actual limit. A bypassed rate limit can allow an attacker to perform brute force, credential stuffing, or ID enumeration attacks. Look for a 429 response to indicate that the rate limit is triggered, and verify that the limit is enforced consistently across different traffic shapes and patterns.

Follow #api-security, #pacing or #rate-limiting for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.