Skip to content
Cache bugs Write-up Intermediate

Web Cache Poisoning lead to DoS Attack

A web cache poisoning vulnerability allowed an attacker to make the server cache a 404 error response for a popular page, so that subsequent visitors would receive the error instead of the legitimate content. This resulted in a denial of service for that page.

medium.com

Published on medium.com

A Web Cache Poisoning vulnerability can lead to a Denial of Service (DoS) attack because the attacker poisons the cache with an invalid response — such as a 404 error page or another faulty output.

HiPFiRE, 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 cache was configured to store error responses (such as 404) and did not include the x-original-host header in its cache key, allowing an attacker to poison the cached response for a URL.

Impact

The page becomes inaccessible to users because the cache serves a corrupted or invalid response, causing a denial of service for that specific URL.

What the attacker needed

Target page is cached; ability to send custom headers

How it was found

  1. Pass HTTP requests through a proxy.
  2. Go to the target page and send the request to the repeater.
  3. Add a cache-buster parameter to the URL.
  4. Add the header x-original-host: anything.
  5. Send the request; the response contains a 404 error.
  6. Open the full URL with the cache-buster in an incognito browser; you should get a 404 error, resending if needed.

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 is a storage layer that keeps copies of web pages so they load faster for everyone. Here, the cache was tricked into storing an error page instead of the real page, so anyone visiting later saw the error. This is like a shop putting an 'out of order' sign on a working door.

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.