Skip to content
Cache bugs Write-up Intermediate

The Dark Web Dump Was Old — The Vulnerability Wasn’t ️

A preview endpoint on a CDN was vulnerable to cache poisoning via host header injection, allowing an attacker to cache a malicious host and later leak sensitive internal metadata. The attacker could then serve poisoned responses to other users and access debug information without authentication.

infosecwriteups.com

Published on infosecwriteups.com

Free Link🎈

Iski, on infosecwriteups.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 application trusted the X-Forwarded-Host header and included it in cacheable responses without validation, and the CDN cached responses based on headers that could be manipulated.

Impact

The attacker could poison the cache to serve malicious content to users and leak sensitive internal metadata, potentially leading to further attacks such as SSRF chaining.

What the attacker needed

Access to the preview endpoint; ability to send custom headers

How it was found

  1. Send a request to the preview endpoint with a manipulated X-Forwarded-Host header pointing to an attacker-controlled domain.
  2. Confirm that the response is cached by checking for a cache hit header.
  3. Send a request with a manipulated X-Original-URL header to cache internal admin endpoints and debug flags.
  4. Request the endpoint without any special headers to retrieve the cached sensitive data.

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 web cache stores copies of responses to speed up loading. If an attacker can make the cache store a response that contains their own malicious content, other users will receive that content. Here, the attacker tricked the cache into storing a response that pointed to their server and later exposed private data.

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.