Skip to content
Cache bugs Write-up Intermediate

Following the Supply Chain: How Vendor Leaks Exposed the Real Tar

The vendor asset CDN cached responses that reflected the X-Forwarded-Host header, allowing an attacker to poison the cache with malicious content. Additionally, a debug endpoint exposed internal infrastructure details, and historical data leaks revealed vendor relationships and internal naming conventions.

iski Follow

Published on medium.com

Free Link🎈

Iski, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the origin server trusted the X-Forwarded-Host header and reflected it in responses, while the CDN cache key did not include that header, causing poisoned responses to be cached globally.

Impact

Attackers could poison cached responses to alter frontend asset loading, redirect dynamic resources, influence API consumers, and expose sensitive logic, potentially affecting downstream applications.

What the attacker needed

Ability to send requests with custom headers; target uses CDN with cache key ignoring X-Forwarded-Host; origin reflects X-Forwarded-Host in responses

How it was found

  1. Send a request to a static asset with a crafted X-Forwarded-Host header pointing to an attacker-controlled domain.
  2. Observe that the response contains a link to the attacker domain and is cached (X-Cache: HIT on subsequent requests).
  3. Fuzz vendor paths to discover a debug endpoint that leaks internal infrastructure details.
  4. Search historical data (Common Crawl, Wayback Machine, etc.) for exposed vendor endpoints and configuration.
  5. Correlate vendor information with breach data to identify internal naming conventions and relationships.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A content delivery network (CDN) is a system of servers that stores copies of website files to serve them faster. If the CDN caches a response that includes a user-supplied header, an attacker can make the CDN store a malicious version that is then served to other users. This is called cache poisoning.

What is Cache bugs?

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.

More by iski

View all

186 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Web cache poisoning and deception

The lesson behind this report.

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.