Skip to content
Cache bugs Write-up Intermediate

The Company Fixed the Breach… but Forgot the Root Cause

A CDN cache stored responses that included a host header value, allowing an attacker to poison the cache with a malicious API base URL. The frontend then used this poisoned value, potentially redirecting users to an attacker-controlled domain.

medium.com

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

The cache key did not include the host header, and the application trusted the host header to build dynamic content, allowing cache poisoning.

What the attacker needed

Ability to send HTTP requests to the endpoint; no authentication required

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 CDN cache is like a shared storage that saves copies of web pages to serve them faster. The bug was that the cache saved a version of a page that included a fake server address supplied by the attacker, so everyone who visited that page got the fake address. This could trick users into sending data to the attacker's server.

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.

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.