Skip to content

In-depth lesson · Web cache poisoning

Root causes

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

Back to the lesson 1 to 8 of 8
  1. The cache key omitted the X-Forwarded-Port and X-Forwarded-Host headers, so attacker-controlled values were cached and served to other users.

    Seen in 1 report
  2. A frontend caching configuration trusted request boundaries inconsistently, letting a smuggled request poison the cache with a redirect.

    Seen in 1 report
  3. The cache did not properly validate or normalise the Transfer-Encoding header, allowing a malformed request to poison the cached response for a resource.

    Seen in 1 report
  4. The edge cache did not include the Origin request header in its cache key, so a response tailored to one origin was served to requests from other origins.

    Seen in 1 report
  5. The application used the X-Forwarded-Host header to generate absolute URLs without validating it, and the cache stored the response without that header in the cache key.

    Seen in 1 report
  6. The application used the untrusted Host header to build absolute URLs in the page and the response was cached without the Host header being part of the cache key.

    Seen in 1 report
  7. The cache server treated backslashes and forward slashes as equivalent while the origin returned 404 for backslash paths, letting a 404 be cached for a legitimate file.

    Seen in 1 report
  8. The regular expression parsing the Amazon product URL did not normalise or reject path traversal sequences, allowing a crafted URL to be cached under a different product's key.

    Seen in 1 report