Gotta cache 'em all: bending the rules of web cache exploitation
Executive Summary
Researchers examined how inconsistencies in URL parsing between web servers and CDN proxies can be exploited to perform web cache poisoning and deception. The study demonstrates that custom delimiters used by frameworks such as Spring and Rails can create path confusion, allowing attackers to craft requests that store sensitive data or malicious payloads under incorrect cache keys. If successful, an attacker could hijack authentication tokens or API keys, potentially leading to full account takeover on affected web applications. The paper highlights the need for consistent URL parsing between origin servers and caches, though it does not provide specific defensive mitigations.
Original Overview
Through the years, we have seen many attacks exploiting web caches to hijack sensitive information or store malicious payloads. However, as CDNs became more popular, new discrepancies between proprietary URL parsers prove that we have only seen the tip of the iceberg. In this paper will explore how different HTTP servers and proxies behave when parsing specially crafted URLs and explore ambiguities in the RFC that lead to path confusion. It will also introduce a set of novel techniques that can be used to leverage parser discrepancies and achieve arbitrary web cache poisoning and deception in countless websites and CDN providers. This research is also available in print/download-friendly PDF format You can also watch the recording of my DEFCON presentation here: Arbitrary Web Cache...