In-depth lesson · Cache bugs
Root causes
Every point the Cache bugs reports back under this heading, best-backed first, each with the reports it is seen in.
-
The caching check compared the raw request URI against a fixed path string, so any variant the platform still resolved to the same page failed the match.
Seen in 1 report
-
Preview responses were cached without respecting no-cache headers and without invalidating the cache when visibility changed.
Seen in 1 report
-
Array parameters were not validated or normalised and the generated JavaScript was cached without considering the full query string.
Seen in 1 report
-
The length check counted decoded characters rather than encoded bytes while the input was still reflected into the cached file.
Seen in 1 report
-
A parameter value was copied verbatim into a generated JavaScript file without validation or sanitisation.
Seen in 1 report
-
The cache key did not include the X-Forwarded-Port and X-Forwarded-Host headers, so attacker-controlled values were cached.
Seen in 1 report
-
$2,500 Medium
-
-
The application trusted the client-supplied X-Forwarded-Host header when building absolute links and the response was stored in a shared cache.
Seen in 1 report
-
The cache did not validate or normalise the Transfer-Encoding header, allowing a malformed request to poison the cached response.
Seen in 1 report
-
$9,700 Medium
-
-
The edge cache did not include the Origin request header in its cache key.
Seen in 1 report
-
The application used the X-Forwarded-Host header to generate absolute URLs without validating it and the cache key omitted that header.
Seen in 1 report
-
Versioned routing returned 404 for non-versioned routes when the header was present and no Vary header prevented caching.
-
The application used the untrusted Host header to build absolute URLs and the response was cached without the Host header in the cache key.
Seen in 1 report
-
The cache stored responses with error status codes such as 400 instead of only successful responses.
Seen in 1 report
-
The cache classified responses as cacheable based solely on the URL extension without checking the actual content type.
Seen in 1 report
-
The cache key did not include the method override header while the origin honoured it to change the request method.
Seen in 1 report
-
The cache deception rule did not recognise the .avif extension as a non-cacheable file type.
Seen in 1 report
-
The raw snippet endpoint did not set cache-control headers to prevent caching.
Seen in 1 report
-
The regular expression parsing the product URL did not normalise or reject path traversal sequences.
Seen in 1 report
-
The header parser truncated requests at around 100 headers so rulesets and cache-key evaluation never saw later headers.
Seen in 1 report
-
The CDN cache key included the entire query string without normalisation.
Seen in 1 report
-
The controller set a public cache expiration without varying the cache key by cookie.
-
The framework let client-supplied internal headers influence responses and did not include them in the Vary header.
Seen in 1 report
-
Cache keys and versions were computed client-side and not validated server-side, and restoration extracted archives without checking their paths.
Seen in 1 report
-
The CDN did not decode or normalise encoded path traversal while the origin did, so a sensitive response was cached under a share path.
Seen in 1 report
-
The cache key ignored query strings and paths and an unkeyed header was reflected in the response.
-
The caching service cached any URL path ending with a file extension without checking whether the response held sensitive data.
Seen in 1 report
-
$100
-
-
The client did not remove its cached HTTP/3 alternative when it received Alt-Svc: clear.
Seen in 1 report