Skip to content

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.

Back to the lesson 1 to 27 of 27
  1. 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
  2. Preview responses were cached without respecting no-cache headers and without invalidating the cache when visibility changed.

    Seen in 1 report
  3. Array parameters were not validated or normalised and the generated JavaScript was cached without considering the full query string.

    Seen in 1 report
  4. The length check counted decoded characters rather than encoded bytes while the input was still reflected into the cached file.

    Seen in 1 report
  5. A parameter value was copied verbatim into a generated JavaScript file without validation or sanitisation.

    Seen in 1 report
  6. 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
  7. 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
  8. 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. The edge cache did not include the Origin request header in its cache key.

    Seen in 1 report
  10. 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
  11. Versioned routing returned 404 for non-versioned routes when the header was present and no Vary header prevented caching.

    Seen in 1 report
  12. 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
  13. The cache stored responses with error status codes such as 400 instead of only successful responses.

    Seen in 1 report
  14. The cache classified responses as cacheable based solely on the URL extension without checking the actual content type.

    Seen in 1 report
  15. The cache key did not include the method override header while the origin honoured it to change the request method.

    Seen in 1 report
  16. The cache deception rule did not recognise the .avif extension as a non-cacheable file type.

    Seen in 1 report
  17. The raw snippet endpoint did not set cache-control headers to prevent caching.

    Seen in 1 report
  18. The regular expression parsing the product URL did not normalise or reject path traversal sequences.

    Seen in 1 report
  19. The header parser truncated requests at around 100 headers so rulesets and cache-key evaluation never saw later headers.

    Seen in 1 report
  20. The CDN cache key included the entire query string without normalisation.

    Seen in 1 report
  21. The controller set a public cache expiration without varying the cache key by cookie.

    Seen in 1 report
  22. The framework let client-supplied internal headers influence responses and did not include them in the Vary header.

    Seen in 1 report
  23. 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
  24. 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
  25. The cache key ignored query strings and paths and an unkeyed header was reflected in the response.

    Seen in 1 report
  26. The caching service cached any URL path ending with a file extension without checking whether the response held sensitive data.

    Seen in 1 report
  27. The client did not remove its cached HTTP/3 alternative when it received Alt-Svc: clear.

    Seen in 1 report