Imprecise cache keys let attackers create redundant entries, degrading cache hit rate
Imprecise cache-key definitions enable attackers to generate redundant cache entries that reduce cache effectiveness and can cause denial-of-service attacks
Security & privacy arXiv 5 Aug 2026 Measurement Prototype evidence
Published as “Web Cache Overflow: Exploiting Imprecise Keys for Cache Degradation and Beyond”
Why it matters
Operators can suffer DoS-style service degradation and increased origin load simply by using imprecise cache-key definitions.
Summary
Web Cache Overflow (WCO) can dramatically degrade cache hit rates across common reverse-proxy caches, dropping from ~55% to as low as 0.5% on HAProxy and to around 30% on others, while requiring modest bandwidth. The authors demonstrate the attack on five popular caching proxies (ATS, HAProxy, NGINX, Squid, Varnish) and show that imprecise cache keys are present on 3600 of 4000 crawled sites from the Tranco top-10k list. Evidence is based on controlled lab experiments and a real-world measurement study, providing concrete hit-rate numbers and bandwidth amplification ratios, though some caches retain a residual hit rate and larger cache capacities increase attacker cost.
What they found 5
- Imprecise cache keys are common: 3600 of 4000 cacheable sites contain at least one object with an imprecise key.
“Out of the 10k websites in our dataset, we were able to crawl 5437, while the rest did not respond to our HTTP requests because of infrastructure issues or possible botdetection defenses. Among the websites successfully tested, 4000 contained cacheable objects, and 3600 of these contained at least one object with an imprecise cache key.”
- Cache hit rate on HAProxy drops from 55.1% to 0.5% during WCO.
“HAProxy 55.1 0.5”
- WCO renders caches ineffective under default configurations.
“The results so far are promising, demonstrating that WCO renders the cache ineffective under widely used default configurations.”
- The attack reduces cache effectiveness and increases origin load, enabling eviction-dependent DoS attacks.
“In susceptible deployments, sustained generation of such redundant copies reduces cache effectiveness and increases origin load, facilitating eviction-dependent attacks.”
- Threat model: attacker is an arbitrary Internet user who can craft HTTP requests to a cached web application.
“The attacker is an arbitrary Internet user, in full control of their user agent, with the capability to craft HTTP requests to a web application fronted by a server-side cache.”
Caveats 4
- Some caches retain a non-zero hit rate (e.g., ATS 30.0%, Squid 32.9%) indicating incomplete degradation.
- HAProxy 55.1 0.5
- ATS 55.1 30.0
- Squid 55.0 32.9
What’s new here 4
- Shows that attackers can create redundant cache entries without knowing the cache's eviction policy or object popularity.
- Demonstrates a fully automated detection of imprecise cache keys on live websites and uses it to launch the attack.
- Evaluates the attack across five different reverse-proxy cache implementations under realistic configurations.
- Quantifies the bandwidth amplification (TAR) and shows feasibility even with small objects.