Cache Key Injection Smuggling Poison Through the Door
summary
Demonstrates that attacker-controlled values inside Nginx proxy cache keys (examples: proxy_cache_key including Accept or Cookie) let an attacker create key collisions that yield CPDoS (404s cached over real pages), cache deception (sensitive pages retrievable without interaction), and a novel stored XSS chain using host header injection plus identical HTTP/HTTPS responses. Shows CDN bypass using an Authorization header to bypass edge and confirms exploits against a test Nginx origin. Recommends robust fixes: hash each fragment and combine (Varnish-like per-fragment hashing resists these attacks).
AI-written summary · about
chapters (11)
- 0:00Introduction and speaker intro
- 1:09What is web cache
- 3:53Cache key basics in Nginx
- 4:56Cache key injection explained
- 6:00Web cache deception demo
- 8:47Cache poisoning DoS attack
- 11:44Bypassing CDN cache to Nginx
- 14:34Stored XSS via cache key
- 20:15Mitigation techniques
- 21:17Conclusion and research call
- 21:41Q&A session
