yaklang avatar

Web Cache Deception

This is a comprehensive playbook for exploiting cache layer vulnerabilities, split into two attack classes: cache deception (tricking a CDN into caching authenticated user data so attackers can retrieve it) and cache poisoning (injecting malicious content via unkeyed headers like X-Forwarded-Host). The methodology is thorough, covering path confusion tricks, CDN-specific behaviors across Cloudflare and Akamai, and normalization mismatches between proxies and applications. Use this when testing applications behind CDNs or reverse proxies where routing logic might treat /account/profile and /account/profile/x.css differently. The testing checklist and real-world patterns (especially the semicolon path separator tricks) make this immediately actionable for security assessments.

skills.sh installs
3.8K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill web-cache-deception --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: Web Cache Deception — Expert Attack Playbook

AI LOAD INSTRUCTION: Web cache deception and poisoning techniques. Covers path confusion attacks, CDN cache behavior exploitation, cache key manipulation, and the distinction between cache deception (steal data) and cache poisoning (serve malicious content). Presented by Omer Gil at Black Hat 2017 and significantly expanded since.

Advanced Reference

Also load CACHE_POISONING_TECHNIQUES.md when you need:

  • Web Cache Poisoning vs Web Cache Deception — clear distinction and attack flow comparison
  • Unkeyed header poisoning (X-Forwarded-Host, X-Forwarded-Scheme, X-Original-URL, multiple Host headers)
  • Unkeyed parameter poisoning (utm_content, fbclid, callback, reflected but not in cache key)
  • Fat GET cache poisoning (body parameters reflected but not keyed)
  • Parameter cloaking via semicolons and duplicate parameter parsing differentials
  • CDN-specific behavior: Cloudflare, CloudFront, Akamai, Varnish, Fastly (cache key composition, debug headers, ESI)
  • Vary header manipulation, cache partitioning attacks, and missing Vary vulnerabilities

1. CORE CONCEPTS

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Category
Backend & APIs
First seen
May 16, 2026

More from yaklang/hack-skills

All 102
1giuseppe-trisciuoglio avataraws-sdk-java-v2-coregiuseppe-trisciuoglio/developer-kitProvides AWS SDK for Java 2.x client configuration, credential resolution, HTTP client tuning, timeout, retry, and testing patterns. Use when creating or harden3.8Kskills.sh installs
2anthropics avatardesign-handoffanthropics/knowledge-work-pluginsGenerate developer handoff specs from a design. Use when a design is ready for engineering and needs a spec sheet covering layout, design tokens, component prop3.8Kskills.sh installs
3yaklang avataractive-directory-kerberos-attacksyaklang/hack-skillsKerberos attack playbook for Active Directory. Use when targeting AD authentication via AS-REP roasting, Kerberoasting, golden/silver/diamond tickets, delegatio3.8Kskills.sh installs
4dpearson2699 avatarswift-codabledpearson2699/swift-ios-skillsImplement Swift Codable models for JSON and property-list encoding and decoding with JSONDecoder, JSONEncoder, CodingKeys, and custom init(from:) or encode(to:)3.8Kskills.sh installs
5yaklang avatarwindows-av-evasionyaklang/hack-skillsAV/EDR evasion playbook for Windows. Use when bypassing AMSI, ETW, .NET assembly detection, shellcode execution, process injection, API hooking, and signature-b3.8Kskills.sh installs
6yaklang avatardefi-attack-patternsyaklang/hack-skillsDeFi attack pattern playbook. Use when analyzing flash loan attacks, price oracle manipulation, MEV sandwich attacks, governance exploits, bridge vulnerabilitie3.8Kskills.sh installs