In-depth lesson · technique
Web cache poisoning
What every disclosed Web cache poisoning report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.
- reports cited in this lesson
- 61
- median public bounty
- $1,700
Learning Client-side in depth, step 7
Overview
What it is and why programs pay for it.
Web cache poisoning is a technique where an attacker manipulates a cache to serve malicious or unintended content to other users. It matters to bug bounty programmes because a single poisoned cache entry can affect many visitors, turning a low-impact input into a widespread issue. The evidence shows reports across a wide range of targets, from CDNs and DNS infrastructure to application features like sign-in pages and API endpoints.
This class of bug often leads to stored cross-site scripting, denial of service, cache deception that leaks sensitive data, or even account takeover when chained with other flaws. Programmes care because the impact can be severe and the root cause is frequently a subtle misconfiguration in caching layers or request parsing.
It is most often found where caching is present: CDN edge nodes, reverse proxies, frontend caches in front of sign-in pages, and application-level caches. Common entry points include unkeyed headers such as X-Forwarded-Host and X-Forwarded-Port, unkeyed GET parameters, and discrepancies in how caches and origins parse requests. The evidence also shows it in less obvious places like DNS resolvers, package registries, and CI build caches.
Seen in these reports15
-
$18,900 High -
$2,500 Medium -
$1,500
Show 5 moreShow fewer
-
$500 -
$200
-
Medium -
High -
High
How it works
The mechanics, as the reports show them.
At its core, cache poisoning exploits the gap between what a cache uses to identify a response (the cache key) and what the origin uses to generate that response. If an attacker can influence part of the request that is not included in the cache key, they can cause a malicious response to be stored and later served to other users who make a normal request.
The first step is to find a cacheable endpoint, meaning a response that is stored and reused. Then you look for inputs that are not part of the cache key but still affect the response, such as certain headers or query parameters. Common examples include X-Forwarded-Host, X-Forwarded-Port, and unkeyed GET parameters. The evidence shows these being used to inject redirects, absolute URLs, or other content into cached responses.
Once an unkeyed input is identified, the attacker sends a request with a crafted value for that input to poison the cache. The cache stores the response, and subsequent requests from other users receive the poisoned version. This can lead to stored XSS if the injected content includes script, or to denial of service if the cached response is an error page.
What makes this possible is often a misconfiguration or a logic flaw: a cache key that omits a security-relevant header, inconsistent request parsing between cache and origin, or a failure to normalise paths. For example, a cache might treat backslashes and forward slashes as equivalent, allowing a 404 to be cached for a legitimate file. Request smuggling can also be used to poison a cache by turning a page request into a cached redirect.
The technique is not limited to traditional web caches. The evidence includes DNS cache poisoning, cache poisoning in package registries, and even CI build caches. In each case, the principle is the same: influence a cached entry that others rely on, leading to widespread impact.
Seen in these reports13
-
$2,500 Medium -
$1,000 Low -
$18,900 High
Show 5 moreShow fewer
-
$9,700 Medium -
$3,800 Medium -
$2,900 Medium -
$500 -
High
Year by year
8 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2008 | 2 |
|---|---|
| 2013 | 1 |
| 2014 | 3 |
| 2016 | 1 |
| 2017 | 3 |
| 2018 | 5 |
| 2019 | 4 |
| 2020 | 7 |
| 2021 | 13 |
| 2022 | 5 |
| 2023 | 2 |
| 2024 | 15 |
| 2025 | 50 |
| 2026 | 49 |
-
2025
New this year2
- Targeting a link-in-bio Amazon affiliate product feature for cache poisoning was a new target in the disclosed reports.
- Using backslashes in a CDN file URL to cause a 404 that was cached under the legitimate file's key was a new technique in the disclosed reports.
Kept working2
- Using cache poisoning for denial of service against static files, downloads and update servers continued to be effective.
- Testing a static resource host for cache poisoning denial of access showed that cached errors blocked legitimate assets.
-
2024
New this year2
- Extending cache poisoning beyond web caches into CI build caches and package registries first appears clearly in the disclosed reports.
- Testing a Next.js application for cache poisoning was a new target in the disclosed reports.
Kept working1
- Testing unkeyed GET parameters on a Drupal application for cache pollution by varying them showed that the cached response changed for other users.
Reports from 20241
-
$500
-
2023
New this year2
- Testing a single line of input across many Zendesk-hosted sites for cache poisoning was a new approach in the disclosed reports.
- Testing a developer documentation site for cache poisoning denial of service was a new target in the disclosed reports.
Kept working4
- Testing a web application for cache poisoning showed that the cached response could be manipulated.
- Testing DNS infrastructure for Kaminsky-style cache poisoning showed that resolver caches could be taken over, leading to denial of service and email spoofing.
Reports from 20231
-
Low
Earlier years5
Where it is found
34The features and places the reports found it in, most-reported first.
-
Practical web cache poisoning basics.
Seen in 6 reports
-
DNS infrastructure.
-
Cacheable redirects generated from forwarded port and host headers.
Seen in 1 report
-
$2,500 Medium
-
-
Frontend caching placed in front of a sign-in page.
Seen in 1 report
-
Cached JavaScript resources served from a separate domain.
Seen in 1 report
-
$9,700 Medium
-
Technologies in these reports16
Root causes
8The mistakes in the code or configuration behind the reports.
-
The cache key omitted the X-Forwarded-Port and X-Forwarded-Host headers, so attacker-controlled values were cached and served to other users.
Seen in 1 report
-
$2,500 Medium
-
-
A frontend caching configuration trusted request boundaries inconsistently, letting a smuggled request poison the cache with a redirect.
Seen in 1 report
-
The cache did not properly validate or normalise the Transfer-Encoding header, allowing a malformed request to poison the cached response for a resource.
Seen in 1 report
-
$9,700 Medium
-
-
The edge cache did not include the Origin request header in its cache key, so a response tailored to one origin was served to requests from other origins.
Seen in 1 report
-
The application used the X-Forwarded-Host header to generate absolute URLs without validating it, and the cache stored the response without that header in the cache key.
Seen in 1 report
Things to try
The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.
ticked in this lesson
Core web application caching
of 3 ticked-
Seen in 4 reports
-
Seen in 1 report
Cache key and URL parsing
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
Platforms and product features
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
Denial of service and error caching
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
-
Seen in 1 report
Payouts
15 paidPublic bounties in US dollars, from the data. 15 of 190 reports show an amount.
- a quarter paid up to
- $750
- median
- $1,700
- three quarters paid up to
- $3,350
- highest
- $19k
One in ten paid reports was paid $7,820 or more.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| High | 17 | 1 | $19k | $19k |
| Medium | 22 | 4 | $3,350 | $9,700 |
| Low | 5 | 2 | $750 | $1,000 |
| Unrated | 146 | 8 | $1,250 | $5,000 |
Highest-paid reports5
-
$18,900 High -
$9,700 Medium -
$5,000 -
$3,800 Medium -
$2,900 Medium
Tips for beginners
12Advice for a first hunt, drawn from the reports.
-
When you find a potential poisoning, demonstrate impact clearly. Show that a poisoned response is served to other users, ideally with a harmless payload that proves execution or data leakage. For example, use a domain you control to show that links are injected, or show that a cached error page blocks legitimate access.
Seen in 4 reports
-
Pay attention to redirects and error pages. Cacheable redirects generated from headers like X-Forwarded-Host or X-Forwarded-Port can be poisoned to point to attacker-controlled domains. Similarly, cached error pages can cause denial of service.
Seen in 4 reports
-
Look for unkeyed inputs. Try adding or modifying headers like X-Forwarded-Host, X-Forwarded-Port, and X-Forwarded-Scheme, and see if they affect the response without changing the cache key. Also test unkeyed GET parameters by adding them and checking if the response changes for other users.
Seen in 3 reports
-
Check for discrepancies in request parsing. Send requests with malformed Transfer-Encoding headers, null bytes, or unusual path encodings, and see if the cache stores a different response than the origin intended. Tools like differential fuzzing can help find these discrepancies.
Seen in 3 reports
-
Check for cache poisoning in less obvious places, such as DNS resolvers, package registries, and CI build caches. These can have wide-reaching impact and are often overlooked.
Seen in 3 reports
Guides and techniques
The best explainers, cheat sheets and technique posts on Web cache poisoning, from around the web.
-
Cache key injection: Smuggling poison through the doorShows how cache key injection lets attackers smuggle poisoned responses past cache defences, with practical exploitation notes.
Technique YesWeHack
-
The Cache Poisoning Bible: Part 3 — Advanced Weaponization & Critical Impact ChainsThird part of a cache poisoning series covering advanced weaponisation and chaining to achieve critical impact.
Technique medium.com
-
HTTP header hacks: basic and advanced exploit techniques exploredExplores HTTP header exploitation including cache-poisoned denial of service, Vary abuse and reverse proxy misconfigurations with real examples.
Technique yeswehack.com
-
How to find SSTI, cache poisoning, business logic vulnerabilities: methodology tips from top Bug Bounty huntersTop hunters share recon and exploitation methodology for server-side template injection, cache poisoning and business logic flaws.
Methodology yeswehack.com
-
HTTP Host header attacksPortSwigger's guide to host header attacks covering password reset poisoning, cache poisoning and routing abuse.
Explainer portswigger.net
Keep learning
Where this lesson fits, and what to read next.
Learning paths
The whole class
Related techniques
How this is made: our model read every listed Web cache poisoning report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 26 Nov 2026 from 61 reports. All Web cache poisoning reports.