Cache Key Manipulation

Cybersecurity Glossary Web & Browser Security

Cache Key Manipulation

Techniques exploiting how caches construct keys to achieve poisoning or deception, targeting unkeyed inputs and normalization inconsistencies.

Cache Key Manipulation refers to techniques that exploit how caches construct their keys to achieve cache poisoning or cache deception attacks. Understanding cache key composition is essential for both attacking and defending web caches.

Cache Key Components

A cache key typically consists of some combination of:

  • Request method (GET, POST)
  • Host header
  • URL path
  • Query string (all or specific parameters)
  • Selected headers
  • Cookies (sometimes)

Cache Key Normalization Issues

  • Port normalization: :80 vs implicit port
  • Case sensitivity: /Page vs /page
  • Encoding: %2f vs /
  • Path normalization: /./page vs /page

See Also