web-cache-poisoning

web-cache-poisoning is a skill for Claude Code from emre-guler/websec. It costs 82 tokens per session (5,841 once invoked), scanned A, original, MIT.

A security review guide for web cache poisoning, where a shared cache stores an attacker-influenced response and serves it to other visitors.

In plain words
What is it for?
Use it to review sites behind CDNs or reverse proxies, especially responses affected by headers, cookies, query parameters, redirects, or URLs.
Why use it?
It helps identify request values that change a response even though the cache does not include them when deciding which response to reuse.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions subagents.

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the websec plugin — 36 skills, 2 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/emre-guler/websec/web-cache-poisoning
Any agent
npx skills add emre-guler/websec --skill web-cache-poisoning
Clone the repo
git clone --depth 1 https://github.com/emre-guler/websec

Made for: Claude Code.

Or install websec, the plugin that ships this one along with the rest of its 36 skills, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for web-cache-poisoning

README.md
[![agentmods](https://agentmods.dev/badge/skills/emre-guler/websec/web-cache-poisoning.svg)](https://agentmods.dev/skills/emre-guler/websec/web-cache-poisoning)
Your own site
<a href="https://agentmods.dev/skills/emre-guler/websec/web-cache-poisoning"><img src="https://agentmods.dev/badge/skills/emre-guler/websec/web-cache-poisoning.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,841 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00082 $0.05841
Opus 5 $0.00041 $0.02920
Sonnet 5 $0.00016 $0.01168
Haiku 4.5 $0.00008 $0.00584

Measured 5d ago against content hash c1e61a28121f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

web-cache-poisoning scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/web-cache-poisoning/SKILL.md · 179 lines

How it starts

The opening of the file, as written. The whole thing — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Web Cache Poisoning Detection

Overview

Web cache poisoning makes a shared cache store an attacker-influenced response and then serve it to everyone who requests the same cache key. The attacker finds an input that reaches the application and changes the response but that the cache leaves out of its key — a forwarded-host header, a cookie, a stripped query parameter, a port, a request body the cache never reads — uses it to elicit a harmful response, and lets the cache do the distribution. It sits at the edge of the request lifecycle, between the client and the origin; the attacker is an unauthenticated remote party, and a single request can affect every subsequent visitor to the affected URL for as long as the entry lives. Poisoning is a delivery mechanism: the damage is whatever the poisoned response does — script execution, a hostile script import, a redirect, a broken page — multiplied by that URL's traffic. This skill finds it by locating every request-derived value that reaches a response together with every cache-key decision that could leave that value unkeyed, checking each candidate in parallel, and merging the results into <output_dir>/web-cache-poisoning-results.md.

What it is NOT

  • Web cache deception (/websec:web-cache-deception): deception is a confidentiality attack — the cache stores a victim's own private response and the attacker fetches it back. Poisoning is an integrity attack — the cache stores an attacker-influenced response and serves it to victims. Test: ask who owns the bytes in the cache entry. If they are the attacker's payload being delivered to others, it is poisoning; if they are a victim's private data being read by the attacker, it is deception.
  • Reflected cross-site scripting (/websec:xss): a reflected payload that reaches only the person who sent it is that class. It becomes poisoning only when the response is stored and served to others. Test: does a clean request from a different client receive the payload? If nothing is cached, report the underlying reflection to the sibling skill.
  • DOM-based issues (/websec:dom-based): a client-side sink consuming imported data is that class; poisoning is what makes the imported data attacker-controlled and persistent. Classify the sink there and the storage here.
  • Host header handling (/websec:host-header): the host and its override headers are one input; poisoning is one way to weaponise them. If the harm is a poisoned reset link or host-based routing to an internal service, it belongs to the sibling skill.
  • Request smuggling (/websec:request-smuggling): smuggling desynchronises request boundaries between servers; it is a different way to get a response into a cache. If the mechanism is a length disagreement across hops rather than an unkeyed input, it belongs there.
  • Open redirect handling (/websec:open-redirect): a redirect whose destination the request influences is that skill's finding on its own; poisoning is only the amplifier. Test: does the destination bend for the person who sent the request (sibling skill), or does a stored copy send other visitors to it (here)?
  • Not a finding: an input that is reflected but is part of the cache key, so only the sender ever sees it; a response marked no-store on every branch with no rule overriding it; an in-process memo or per-user cache not shared between clients; a Vary header that keys the very input in question; reflection into a context where it is correctly encoded and cannot change behaviour.

Read the full file on GitHub · 179 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 179 lines · 82 tokens per session scan A c1e61a28121f

Subscribe to this mod's changes

web-cache-poisoning is a skill published in the GitHub repository emre-guler/websec (2 stars, last pushed 9d ago), licensed MIT. It adds 82 tokens to every session and 5,841 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ponytail-sec-audit

Full project security audit. Scans the entire codebase across three passes: code that shouldn't exist, all dependencies assessed, all hardening findings. Produces a comprehensive numbered report with blast-radius narrative. Persists findings to .ponytail-sec/ for cross-scan tracking. For per-diff review use…

andypitcher/ponytail-sec · 74 tokens

ponytail-sec

Security companion for active development. Scopes to the current diff or changed files. Three passes: YAGNI code review, new-dep assessment, and up to 3 material hardening findings. Lean by design — surfaces the one thing to fix before merging, not a backlog. Use ponytail-sec-audit for a full project scan.

andypitcher/ponytail-sec · 74 tokens

dockerfile

Binary Dockerfile image-build hardening check. Use when reviewing Dockerfiles, container image builds, multi-stage builds, runtime users, pinned bases, or reproducible dependency installs. Minimal output only: OK or NOTOK: RULE, RULE.

andypitcher/ponytail-sec · 51 tokens

k8s-securitycontext

Binary Kubernetes securityContext hardening check. Use when reviewing Pods, Deployments, StatefulSets, DaemonSets, Jobs, CronJobs, Helm templates, or Kubernetes manifests that define containers. Minimal output only: OK or NOTOK: RULE, RULE.

andypitcher/ponytail-sec · 57 tokens

Mixed-Language Monorepos

This skill should be used when the user is auditing a "polyglot monorepo", "multi-language codebase", "microservices with different languages", "Go + Python + TypeScript", or any codebase with services written in different programming languages. Provides strategies for cross-service security analysis and unified…

allsmog/vuln-scout · 71 tokens

OWASP API Security Top 10

This skill should be used when the user asks about "API security", "OWASP API Top 10", "BOLA", "broken object level authorization", "API authentication", "mass assignment", "GraphQL security", "gRPC security", "rate limiting", "API abuse", "REST API vulnerabilities", or needs to identify API-specific security issues…

allsmog/vuln-scout · 85 tokens