Skip to content

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

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

Show 5 moreShow fewer

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.

Year by year

8 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2025: 50
Reports per year
20082
20131
20143
20161
20173
20185
20194
20207
202113
20225
20232
202415
202550
202649
  1. 2025

    50 reports · median $2,150

    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.
  2. 2024

    15 reports · median $500

    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.
  3. 2023

    2 reports

    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.
    and 2 more

    Reports from 20231

Every point, year by year

Where it is found

34

The features and places the reports found it in, most-reported first.

  1. Practical web cache poisoning basics.

    Seen in 6 reports
  2. Cacheable redirects generated from forwarded port and host headers.

    Seen in 1 report
  3. Frontend caching placed in front of a sign-in page.

    Seen in 1 report
  4. Cached JavaScript resources served from a separate domain.

    Seen in 1 report
View all 34

Root causes

8

The mistakes in the code or configuration behind the reports.

  1. 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. A frontend caching configuration trusted request boundaries inconsistently, letting a smuggled request poison the cache with a redirect.

    Seen in 1 report
  3. 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
  4. 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
  5. 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
View all 8

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
More in Core web application caching

Cache key and URL parsing

of 3 ticked
More in Cache key and URL parsing

Platforms and product features

of 3 ticked
More in Platforms and product features

Denial of service and error caching

of 3 ticked
More in Denial of service and error caching
View more things to try

Payouts

15 paid

Public 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.

SeverityReportsPaidMedianHighest
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

Tips for beginners

12

Advice for a first hunt, drawn from the reports.

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
View all 12

Guides and techniques

The best explainers, cheat sheets and technique posts on Web cache poisoning, from around the web.

Keep learning

Where this lesson fits, and what to read next.

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.