Aller au contenu

Rate Limiting & DoS Resilience

Ce contenu n’est pas encore disponible dans votre langue.

A proxy should absorb abusive load before it reaches the backend: throttle per client, key that throttle on the real connection peer (not a client-supplied header), and cap request sizes. These checks measure those properties with small, bounded probes.

Check IDTitleCVSS 4.0CWEOWASP
ratelimit.missing_throttlingNo Per-Client Request Throttling at the Proxy5.3CWE-770API4:2023
ratelimit.spoofed_ip_bypassRate Limit Bypassed via Spoofed Client-IP Header6.9CWE-770API4:2023
ratelimit.oversized_headerOversized Request Headers Accepted Without a Limit5.3CWE-770API4:2023

Sends a small burst from one client and reports when none of the requests is throttled. Informational-to-low: throttling at the backend or an external layer is not visible to a single-client burst.

Remediate: enforce per-client request rate limiting at the proxy (e.g. nginx limit_req, an API gateway plan).

For a proxy that does throttle, drives it into throttling, confirms a plain request is still throttled, then flips the response back to success by rotating a spoofed IP in X-Forwarded-For, X-Real-IP, True-Client-IP, X-Client-IP, or X-Forwarded. A header that resets the limit is a confirmed bypass; the check skips when no throttling is observed.

Remediate: key rate limiting on the real connection peer, and only trust a client-IP header when it arrives from a known, trusted upstream (see the Client-IP & Header Trust Boundary checks).

Sends one request with a single 128 KiB header and flags acceptance rather than a 431/400/413 rejection — a proxy with no header-size cap lets a client force large per-request allocations.

Remediate: set conservative request-header size limits (nginx large_client_header_buffers, Apache LimitRequestFieldSize).

Slowloris / slow-body resistance and connection/keepalive limits under load (checklist items 3 and 5) are genuine denial-of-service tests that can degrade a live target even when bounded; they are intentionally left to a dedicated, separately gated capability rather than running under --aggressive.