cache-poisoning
Test for web cache poisoning and web cache deception — unkeyed headers and cookies, fat GET, path normalisation, Vary abuse, CDN-specific behaviour…
от VigilOSS★ 35 звёзд на GitHub
Установить cache-poisoning в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Cache Poisoning Testing
When to Activate
- A CDN, reverse proxy or cache sits in front (Cloudflare, Akamai, Fastly, Varnish, Nginx):
X-Cache,Age,CF-Cache-Status,Via,Varyor vendor headers in responses.
--technique CACHE-POISONING (REQUEST-SMUGGLING when the poison rides a smuggled request,
agent/skills/request-smuggling/SKILL.md). Probes run through vigil assess kali exec or, for a
header or cookie list, vigil assess kali sweep (one audited run per value, clustered by response
signature).
Cache-buster discipline
Every probe carries a unique cache buster (?cb=<random>) so it hits the origin and poisons only a
key nobody else requests. Poisoning a real, shared cache entry (dropping the buster) serves your
content to real users: it needs operator approval (agent/shared-constraints.md §1) and is not
needed for proof.
Method
- Map the key: send the same busted request twice (
HITorAge > 0on the second), then vary path, query, Host and the headers named inVary. Vendor key disclosure: AkamaiPragma: akamai-x-get-cache-key(andX-Akamai-Staging),Fastly-Debug: 1; Cloudflarecf-cache-statusand cache-everything rules; VarnishX-Varnish; Nginxproxy_cache_keyandX-Accel-Redirect. - Find unkeyed inputs with one busted request per candidate header, body intact:
(vigil assess kali sweep --technique CACHE-POISONING --intent "unkeyed header discovery" \ --probe-kind payload --phase consume-test --timeout 30 --values-file headers.txt \ -- bash -c 'curl -s -i -H "{}" "https://target.example/?cb=$(openssl rand -hex 4)"'headers.txt:X-Forwarded-Host: canary.example,X-Forwarded-Scheme: http,X-Original-URL: /admin,X-Rewrite-URL: /admin,X-Forwarded-Port: 1,X-Host: canary.example, …). The cluster that breaks from the baseline names the header; confirm the value is reflected in the body (links, redirects, meta tags, scripts). Cookies are keyed only underVary: Cookie. - Other primitives: fat GET (a GET body the cache ignores and the origin reads); CR/LF in
cached headers (
agent/skills/crlf-injection/SKILL.md);Varyheaders that leave other inputs unkeyed (Vary: *handling); redirect poisoning viaX-Forwarded-Scheme/-Host. - Web cache deception: a static-looking suffix or delimiter the cache treats as static and
the origin ignores (
/account.css,/account/x.js,/account;.css, encoded..%2fnormalisation differences) makes the cache store an authenticated page. Proof is the victim-shaped page served to your unauthenticated second client. - Cache-poisoned DoS (HTTP header oversize, meta-characters, method override) caches an error page: test only on a busted key, and only with approval for anything beyond it.
Proof
Cross-user proof is a clean second request without the injected input, from a separate
client, against the same busted key, receiving the poisoned body or Location. A callback from a
poisoned redirect only shows that something followed it (your own clean fetch, a crawler or a
prefetcher); it adds attribution, not cross-user proof
(agent/references/offensive-tactics/frp-tunneling.md "What a callback proves").
What to Record
Cache layer, the unkeyed input and the sweep cluster that isolated it, the poisoning request, the
clean second request and its poisoned response, and what a victim receives
(agent/rules/hunting.md §2: script execution, a redirect to an attacker origin, another user's
data served from cache). Severity: agent/references/finding-fp-and-severity-gate.md; format:
agent/references/runtime-guides/web-finding-recording.md.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cache-poisoning?
Test for web cache poisoning and web cache deception — unkeyed headers and cookies, fat GET, path normalisation, Vary abuse, CDN-specific behaviour, cache-poisoned denial of service, and redirect poisoning
Как установить скилл cache-poisoning?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cache-poisoning запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…