Skip to content

In-depth lesson · technique

Web cache deception

What every disclosed Web cache deception 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
42

Learning Client-side in depth, step 8

Overview

What it is and why programs pay for it.

Web cache deception is a technique where an attacker tricks a shared cache into storing a personalised or private response under a URL that looks like a static file, then retrieves that response without authentication. The root cause is a disagreement between the cache and the origin about what a URL means: the cache sees a static resource and stores it, while the origin resolves the same URL to a dynamic, authenticated page. This mismatch lets an attacker cause a victim's private data to be written into the cache and later read it back.

Programs care because the impact is direct exposure of session tokens, CSRF tokens, personal information, API keys and other sensitive data to anyone who can request the cached URL. In the reports behind this lesson, cached responses contained JWTs, CSRF tokens, email addresses, billing details, profile data and API credentials. The technique often chains into account takeover or cross-site request forgery, which raises severity beyond a simple information leak.

It turns up most often wherever a CDN or reverse proxy sits in front of dynamic endpoints: account and profile pages, API endpoints returning JSON, GraphQL endpoints reachable by GET, login pages that embed CSRF tokens, and preview or raw-content endpoints. It is also found on subdomains that mix static and dynamic content, and wherever caching rules are based on file extensions rather than actual content type.

How it works

The mechanics, as the reports show them.

The attacker starts with a dynamic endpoint that returns private data for a signed-in user, such as an account page or a profile API. They modify the URL so that it still resolves to the same dynamic content at the origin but looks like a static file to the cache, typically by appending a static-looking extension or inserting delimiters and extra path segments. The origin ignores or normalises the extra parts and serves the private response.

The cache, using different URL parsing or canonicalisation rules, classifies the request as a static resource and stores the response under a public cache key. The attacker then requests the same URL without cookies and receives the cached private response. In some cases the attacker needs the victim to visit the crafted URL first so that the victim's authenticated response is what gets cached.

What makes it possible is inconsistent interpretation of the URL between the cache and the origin. Different HTTP servers and caches parse delimiters and normalisation differently, so a path can mean one thing to the cache and another to the backend. The cache may also decide cacheability solely from the URL extension without checking the actual content type, or the origin may fail to set cache-control headers on sensitive responses.

Other contributing mistakes include caching helpers that compare the raw request URI against a fixed path string, so variants that still resolve to the same page skip no-cache headers; controllers that set public cache expiration without varying the cache key by cookie; and cache rules that match before decoding while the backend decodes and resolves path traversal. Preview responses cached without respecting no-cache headers and without invalidation when visibility changes are another variant.

The technique also applies to API and GraphQL endpoints. A cache key that includes a user-controlled parameter can let an attacker force caching of a dynamic response containing PII. Converting a POST GraphQL query to GET and appending a static-looking suffix can cause the CDN to serve the personalised response from cache. The common thread is that the cache treats the response as shareable while the origin treats it as private.

Year by year

3 years

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

Reports per yearPeak 2025: 17
Reports per year
20172
20182
20191
20212
20222
20233
20244
202517
202613
  1. 2026

    13 reports

    New this year3

    • Converting GraphQL POST requests to GET with static suffixes to cache personalised responses becomes more prominent.
    • Forcing top-level navigations to exploit SameSite=Lax cookies for cache deception first appears in the disclosed reports.
    • Using unique cache busters to isolate victim responses in shared caches is first seen in the disclosed reports.

    Kept working3

    • Hunters appended static file extensions to profile API requests and checked for long-lived cache headers before reading without cookies.
    • They added arbitrary path segments to account requests and then static extensions, repeating within cache lifetime to confirm hits.
    and 1 more

    Turned up less2

    • The pattern of appending image extensions to search pages to cache session tokens is not seen in 2026 reports, having appeared in 2023.
    • Testing login endpoints with script extensions for cached CSRF tokens is rarer, with no such reports in 2026 compared to 2025.
  2. 2025

    17 reports

    New this year3

    • GraphQL endpoints reached over GET with static suffixes become common targets in the disclosed reports.
    • Fuzzing JavaScript input points to discover alias files and then testing revealed endpoints for cache deception first appears.
    • Changing privacy parameters from private to public without authorisation checks is first seen in the disclosed reports.

    Kept working4

    • Hunters appended fake script or stylesheet extensions to authenticated endpoints and confirmed cache hits via headers before fetching without cookies.
    • Many reports named Cloudflare as the caching layer and used cache status headers as confirmation.
    and 2 more

    Turned up less1

    • The simple pattern of appending image extensions to search pages to cache session tokens is rarer, with only one report in 2025 compared to earlier years.
  3. 2023

    3 reports · median $400

    Kept working4

    • Hunters tested search pages for reflected session tokens and used image extensions to cache the response, then reused the token without cookies.
    • They sent signed-in users links ending in static file extensions and fetched the same URL unauthenticated to check for private data.
    and 2 more
Every point, year by year

Root causes

14

The mistakes in the code or configuration behind the reports.

  1. The caching helper compares the raw request URI against a fixed path string, so any variant the CMS still resolves to the same page fails the match and skips the no-cache headers.

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

    Seen in 1 report
  3. The cache classified responses as cacheable solely on the URL extension without checking the actual content type.

    Seen in 1 report
  4. The raw endpoint did not set cache-control headers to prevent caching, so the CDN stored the response.

    Seen in 1 report
  5. The caching layer treated the API response as cacheable and keyed it on a user-supplied query parameter without marking personalised responses as private.

    Seen in 1 report
View all 14

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

Profile and account API endpoints

of 3 ticked
  • Seen in 1 report
  • Seen in 1 report
  • Seen in 1 report
More in Profile and account API endpoints

GraphQL GET conversion and query strings

of 3 ticked
More in GraphQL GET conversion and query strings

Path confusion and extension armour

of 3 ticked
More in Path confusion and extension armour

Login and CSRF token endpoints

of 3 ticked
View more things to try

Bypasses and variations

4

How reports got past filters, encoders and other defences.

  1. Use a newer image file extension that the cache deception armour rule does not recognise as non-cacheable.

    Seen in 1 report
  2. Force a top-level navigation from an attacker-controlled page so the SameSite=Lax cookie is sent and the victim's response gets cached.

    Seen in 1 report
  3. Use URL-encoded path traversal sequences that the CDN does not decode but the origin web server does.

    Seen in 1 report
  4. Use path traversal sequences encoded as encoded slashes so the cache rule matches a static prefix before decoding while the backend resolves the traversal to authenticated content.

    Seen in 1 report

Payouts

8 paid

Public bounties in US dollars, from the data. 8 of 62 reports show an amount.

a quarter paid up to
$288
median
$600
three quarters paid up to
$1,403
highest
$6,500

One in ten paid reports was paid $3,525 or more.

SeverityReportsPaidMedianHighest
High 2 0 None paid None
Medium 6 1 $400 $400
Low 4 1 $800 $800
Unrated 50 6 $710 $6,500

Typical fixes

1

How programs fixed it, as the reports describe.

  1. Restrict caching to specific addresses rather than letting the cache decide per response.

    Seen in 1 report

Tips for beginners

14

Advice for a first hunt, drawn from the reports.

  1. Start with endpoints that return private data for a signed-in user and check whether they set cache-control headers. Account pages, profile APIs, login pages with CSRF tokens and raw or preview endpoints are good first targets. If a response lacks no-cache headers and contains personal data, test whether appending a static-looking suffix makes it cacheable.

    Seen in 3 reports
  2. Look for disagreements between what the cache sees and what the origin serves. Try adding extra path segments, delimiters or a static file extension and compare the response with and without cookies. A response that still contains private data but now carries a long-lived cache header is a strong signal.

    Seen in 3 reports
  3. Confirm caching with a cache status header or by repeating the request within the cache lifetime. Then fetch the same URL without cookies, ideally in a private window or different browser, and check whether the private data is still returned. Without this second step you cannot show impact.

    Seen in 3 reports
  4. For GraphQL, try converting a POST query that returns personal information into a GET request and appending a static-looking suffix. Check whether the CDN serves the personalised response from cache. Also test whether a user-controlled parameter in the cache key lets you force caching of a dynamic response.

    Seen in 3 reports
  5. Consider variants that bypass cache deception defences. A newer image file extension that the armour rule does not recognise, or URL-encoded path traversal that the CDN does not decode but the origin does, may still work. Test delimiters systematically by comparing responses with and without a random suffix.

    Seen in 3 reports
View all 14

Guides and techniques

The best explainers, cheat sheets and technique posts on Web cache deception, 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 deception 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 57 reports. All Web cache deception reports.