Skip to content

In-depth lesson · Web cache deception

Root causes

Every point the Web cache deception reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 14 of 14
  1. The caching helper compares the raw request URI against a fixed path string, so any variant the CMS still resolves to the same page fails the match and skips the no-cache headers.

    Seen in 1 report
  2. Preview responses were cached without respecting no-cache headers and without invalidating the cache when content visibility changed.

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

    Seen in 1 report
  4. The raw endpoint did not set cache-control headers to prevent caching, so the CDN stored the response.

    Seen in 1 report
  5. The caching layer treated the API response as cacheable and keyed it on a user-supplied query parameter without marking personalised responses as private.

    Seen in 1 report
  6. The cache and the origin disagreed on how to interpret the URL path, so the cache treated a dynamic profile page as a static file.

    Seen in 1 report
  7. The origin ignored extra path segments and served the private page, while the cache keyed on the full URL including the static-looking extension.

    Seen in 1 report
  8. The framework applied a long-lived cache header to any URL ending in a static extension even when the body was private API data.

    Seen in 1 report
  9. The cache layer and the origin used different URL parsing and canonicalisation rules, so the cache saw a static resource while the origin normalised back to the authenticated API.

    Seen in 1 report
  10. The controller set a public cache expiration without varying the cache key by cookie, so session-specific responses were cached and shared.

    Seen in 1 report
  11. Different HTTP servers and caches parse URLs inconsistently, especially around delimiters and normalisation, which enables path confusion.

    Seen in 1 report
  12. The cache key included a user-controlled reqIdentifier parameter, letting an attacker force caching of a dynamic GraphQL response containing PII.

    Seen in 1 report
  13. The cache stored files by extension while disregarding HTTP caching headers, and the server returned dynamic page content for a URL ending in a static extension.

    Seen in 1 report
  14. The cache rule matched the URL path before decoding while the backend decoded and resolved path traversal, so authenticated responses were cached under a public-looking URL.

    Seen in 1 report