# Web Cache Poisoning

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

- Skill: `zakirkun/web-cache-poisoning` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add zakirkun/web-cache-poisoning`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zakirkun/web-cache-poisoning/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: zakirkun (https://skillmd.com/u/zakirkun)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/zakirkun/web-cache-poisoning

---


# 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

