# Web Cache Deception

> Detects server configurations that may serve personalized content under cacheable URLs, enabling web cache deception attacks.

- Skill: `zakirkun/web-cache-deception` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add zakirkun/web-cache-deception`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zakirkun/web-cache-deception/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-deception

---


# Web Cache Deception

## Overview
Web cache deception exploits a discrepancy between how the server and cache interpret URL paths. An attacker tricks a victim into visiting `https://example.com/profile/nonexistent.css` — the server ignores the `.css` extension and serves the authenticated profile page, but the CDN caches it as a public CSS file. The attacker then retrieves the cached authenticated response.

## Remediation
- Cache responses based on their Content-Type, not URL extension
- Never cache authenticated API responses
- Set `Cache-Control: no-store` for all authenticated/personalized content

