Skip to content

In-depth lesson · bug class

Web cache poisoning and deception

What every disclosed Cache bugs 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
49

Learning Cache bugs reading list

Overview

What it is and why programs pay for it.

Web cache poisoning and deception are attacks that abuse the shared caches sitting between users and a web application. In poisoning, an attacker manipulates a request so that the cache stores a harmful response, which is then served to other visitors. In deception, the attacker tricks the cache into storing a victim's private data, which they can later retrieve. These issues matter to bug bounty programs because a single poisoned cache entry can affect many users at once, turning a minor input handling flaw into a widespread compromise. Reports in this dataset cover both variants across blogs, help sites, download subdomains, APIs, sign-in pages, e-commerce and profile pages, often behind Cloudflare and other CDNs. [#17082, #16054, #18559, #20042, #9496, #33372]

Programs care because cache poisoning can lead to stored cross-site scripting, credential theft, session hijacking and malware distribution, while cache deception can expose personal data, CSRF tokens and authentication tokens. The impact is amplified by the cache's reach: one poisoned response can be served to every user who requests the same resource. Common root causes include unkeyed headers being reflected into responses, cache keys that ignore parts of the request, and caches that store error pages or sensitive content based on file extensions. These mistakes appear in features like generated JavaScript files, preview endpoints, raw snippet views, API responses and authenticated pages. [#14266, #14560, #14785, #15263, #16384, #18559, #20042, #28483]

How it works

The mechanics, as the reports show them.

The attack starts with the cache key, the set of request components the cache uses to decide whether two requests are the same. If a header, query parameter or other input influences the response but is not part of the cache key, an attacker can vary that input to poison the stored response. For example, the X-Forwarded-Host header was used to build absolute links but was not included in the cache key, so an attacker could make the cached page point to their domain. Similarly, the Origin header was omitted from the cache key, allowing a response tailored to one origin to be served to others. [#16384, #17082, #15263]

Another common enabler is insufficient validation or normalisation of inputs that end up in cached responses. Array parameters copied into generated JavaScript without validation, or parameter values reflected verbatim into a cached file, let an attacker corrupt the cached content. Length checks that count decoded characters rather than encoded bytes can be bypassed with multi-byte characters, allowing a longer payload to be reflected. Path traversal sequences that are not normalised can cause a sensitive response to be cached under a shareable path. [#14266, #14560, #14561, #21591, #28483]

Caches also make mistakes about what is cacheable. Some store responses with error status codes such as 400, or cache any URL ending with a file extension without checking the content type. Others fail to respect no-cache headers or do not invalidate cached previews when visibility changes. These behaviours allow an attacker to poison a cache with an error page or to deceive the cache into storing private data under a public-looking URL. [#13712, #18213, #18559, #33372]

Cache deception typically involves tricking the cache into storing a victim's authenticated response. This can be done by appending a static file extension to an authenticated page URL, by using path traversal to make a sensitive API response appear under a cached share path, or by exploiting a cache that classifies responses as cacheable based solely on the URL extension. The attacker then retrieves the cached response to obtain personal data, CSRF tokens or session tokens. [#18559, #20042, #28483, #33372]

What makes these attacks possible is the interaction between caching layers and application logic. Caches often rely on simple rules, such as caching based on file extension or ignoring certain headers, while applications may trust client-supplied headers or fail to set proper cache-control directives. When the two disagree, an attacker can exploit the gap. For instance, a cache that does not include the method override header in its key while the origin honours it allows a HEAD request to poison a GET response. A cache that truncates requests at around 100 headers can be bypassed by sending many headers to skip cache key evaluation. [#18714, #21726]

Year by year

9 years

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

Reports per yearPeak 2025: 68
Reports per year
20082
20131
20143
20162
20174
20187
20196
20207
202115
20227
20237
202421
202568
202663
  1. 2026

    63 reports

    New this year2

    • Leaking a signed-in visitor's user id, CSRF token, CSP nonce and timezone from an edge cache on a public board page first appears in the disclosed reports.
    • Using Alt-Svc: clear to keep a client sending requests to a separate backend first appears in the disclosed reports.

    Kept working1

    • Sending requests to a publicly cacheable page with unique GET parameters caused each variation to create its own cache entry.

    Turned up less1

    • The header-count bypass and backslash cache key tricks from 2025 are not repeated in the 2026 reports, which focus on edge cache leaks and client behaviour.
  2. 2025

    68 reports · median $2,150

    New this year3

    • Using a path traversal sequence after a product ID to replace a cached product first appears in the disclosed reports.
    • Replacing forward slashes with backslashes to make a 404 share a cache key first appears in the disclosed reports.
    • Sending more than 94 arbitrary headers to skip cache key evaluation and WAF rules first appears in the disclosed reports.

    Kept working1

    • An x-http-method-override header set to HEAD for a static asset caused the empty response to be cached and served to normal GET requests.

    Turned up less1

    • The cache deception through appended static file extensions common in 2021 to 2023 is not repeated in the 2025 reports, which focus on cache poisoning.
  3. 2023

    7 reports · median $400

    New this year2

    • Cache deception on a snippet raw view in a private project first appears in the disclosed reports.
    • Using an image extension on a search URL to cache a reflected session token first appears in the disclosed reports.

    Kept working2

    • An X-Forwarded-Host header with a value that causes a 404 on a cache-busting URL made the cached 404 served to all users.
    • Getting a victim to open a crafted link ending in a static file extension allowed the cached page to be retrieved and their personal and sensitive data read.

    Turned up less1

    • The .avif extension trick from 2022 is not repeated in the 2023 reports, which use other static extensions instead.
Every point, year by year

Where it is found

2

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

  1. Web cache poisoning has been reported on blogs, help sites, download subdomains, static asset CDNs, APIs and sign-in pages.

    Seen in 6 reports
  2. Web cache deception has been reported on e-commerce, search, profile, snippet and API pages sitting behind Cloudflare and other caches.

    Seen in 5 reports

Root causes

27

The mistakes in the code or configuration behind the reports.

  1. The caching check compared the raw request URI against a fixed path string, so any variant the platform still resolved to the same page failed the match.

    Seen in 1 report
  2. Preview responses were cached without respecting no-cache headers and without invalidating the cache when visibility changed.

    Seen in 1 report
  3. Array parameters were not validated or normalised and the generated JavaScript was cached without considering the full query string.

    Seen in 1 report
  4. The length check counted decoded characters rather than encoded bytes while the input was still reflected into the cached file.

    Seen in 1 report
  5. A parameter value was copied verbatim into a generated JavaScript file without validation or sanitisation.

    Seen in 1 report
View all 27

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

Host and forwarded headers

of 3 ticked
More in Host and forwarded headers

Path and extension tricks

of 3 ticked
More in Path and extension tricks

Authenticated page caching

of 3 ticked
More in Authenticated page caching

Error and redirect caching

of 3 ticked
More in Error and redirect caching
View more things to try

Bypasses and variations

3

How reports got past filters, encoders and other defences.

  1. Bypass a decoded-character length limit by using multi-byte UTF-8 characters that expand to many URL-encoded bytes, then check whether the reflected value still poisons the cached file.

    Seen in 1 report
  2. Append an .avif extension to a crafted URL and check whether the edge cache stores normally non-cacheable sensitive content.

    Seen in 1 report
  3. Send more than 94 arbitrary headers and then append a header normally part of the cache key to see whether cache key evaluation and WAF rules are skipped.

    Seen in 1 report

Payouts

24 paid

Public bounties in US dollars, from the data. 24 of 262 reports show an amount.

a quarter paid up to
$475
median
$1,060
three quarters paid up to
$2,600
highest
$19k

One in ten paid reports was paid $6,050 or more.

SeverityReportsPaidMedianHighest
High 20 1 $19k $19k
Medium 29 5 $2,900 $9,700
Low 12 3 $800 $1,000
Informational 2 0 None paid None
Unrated 199 15 $1,000 $6,500

Typical fixes

1

How programs fixed it, as the reports describe.

  1. Restrict caching to specific addresses so dynamic pages are not stored

    Seen in 1 report

Tips for beginners

11

Advice for a first hunt, drawn from the reports.

  1. Start by identifying which parts of a request are reflected in the response but are not part of the cache key. Common candidates are headers like X-Forwarded-Host, X-Forwarded-Port, Origin and other custom headers. Send requests with these headers set to a domain you control and then request the same URL without them to see if the cached response contains your domain. [#16054, #17082, #16384, #14785]

    Seen in 4 reports
  2. For cache deception, try appending a static file extension such as .css or .avif to an authenticated page URL. Visit the URL while logged in, then open it in a private window or another browser to see if your personal data or CSRF tokens are returned from the cache. Also try path traversal sequences to make sensitive API responses appear under a cached path. [#18559, #20042, #19213, #28483]

    Seen in 4 reports
  3. Consider less common headers and request smuggling techniques. Headers like Transfer-Encoding, trailers, or method override headers can sometimes be used to poison caches. Also test for HTTP/3 alternative service manipulation. [#15501, #18715, #18714, #867]

    Seen in 4 reports
  4. Test whether error responses are cached. Send requests that trigger 400 or 404 errors with a cache-busting parameter and then request the same URL normally to see if the error is served. This can be done with malformed headers, invalid routing headers or oversized headers. [#18213, #20180, #17446]

    Seen in 3 reports
  5. Show real impact. A cache poisoning finding is only valuable if you can demonstrate that it affects other users, for example by stealing session tokens, CSRF tokens or personal data, or by serving malicious content. A reflected header without a cached effect is not enough. [#15263, #20042, #33372]

    Seen in 3 reports
View all 11

Guides and techniques

View all

The best explainers, cheat sheets and technique posts on Cache bugs, from around the web.

Keep learning

Where this lesson fits, and what to read next.

Lessons on single techniques in Cache bugs

How this is made: our model read every listed Cache bugs 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 27 Nov 2026 from 92 reports. All Cache bugs reports.