Lab: Web cache poisoning with multiple headers
Summary: PortSwigger's lab demonstrates a web cache poisoning vulnerability that is only exploitable when multiple headers are used to craft a malicious request, and it supports both the X-Forwarded-Host and X-Forwarded-Scheme headers. A user visits the home page roughly once a minute, and the goal is to poison the cache with a response that executes alert(document.cookie) in the visitor's browser.
Key Takeaway: A single poisoned cache entry can serve a malicious response to every visitor who lands on that page, and here that means roughly one visitor a minute until the cache is cleared.
Read the original at PortSwigger Research ↗
- Topics
- Vulnerabilities & Patching
- Related
- Attackers Exploit UnrealIRCd Flaw That Enables Server-Level Command Injection Cyber Risks · Nov 14, 2026U.S. CISA adds Check Point and UnrealIRCd flaws to its Known Exploited Vulnerabilities catalog Cyber Risks · Nov 14, 2026PostgreSQL Patches 52 Flaws, Including 22-Year-Old Bug Enabling Authenticated RCE Cyber Risks · Nov 13, 2026