Web Cache Poisoning

Detects applications that include unvalidated request headers or parameters in cached responses, enabling cache poisoning attacks.

zakirkun 5794da4 2 files · 2.2 KB Updated

File contents

Web Cache Poisoning

Overview

Cache poisoning occurs when an attacker can inject malicious content into a shared cache (CDN, reverse proxy, application cache) that is then served to other users. Unkeyed headers (headers that affect the response but are not included in the cache key) are the primary attack vector.

Remediation

  • Configure cache key to include all headers that affect the response
  • Validate and sanitize all header values used in responses
  • Use Vary header to include relevant headers in the cache key
  • Disable caching for responses that include user-controlled content

zakirkun/ice-tea/tree/main/skills/web/cache-poisoning commit 5794da4c7f

Frequently asked questions

npx skillmds@latest add zakirkun/web-cache-poisoning