Tips

Web cache poisoning tips

Web cache poisoning makes a shared cache store a harmful response and serve it to everyone who asks for the same page. It relies on inputs that change the response but are not part of the cache key.

Published tips, newest first. Payloads and commands are shown as plain text.

Web cache poisoning: how to hunt it

Where to look

  • Unkeyed headers: X-Forwarded-Host and X-Forwarded-Scheme, which change links or redirects, and X-Original-URL, which changes the page.
  • Query parameters left out of the key, and parameter cloaking through parser differences.
  • Web cache deception: private pages cached because their path looks like a static file.
  • A cache buster on every test request, so you never poison the page real visitors get.

What proves it

With a unique cache buster, show the poisoned response served to a separate, clean request, and explain what an attacker could put in it.

Read further

Writeups on Web cache poisoning, by hunters and researchers, most with a short summary.

Related classes