Skip to content
Cache bugs Write-up Intermediate

Easy 100$ in public Hackerone program under 3 minutes

The site reflected the X-Forwarded-Host header value, including an arbitrary port, into cached responses. An attacker could poison the cache so that other users were served a link to the wrong port, causing a denial of service.

medium.com

Published on medium.com

It has been a long time since I last wrote a write up here. Today, I’m sharing a simple vulnerability that allowed me to earn $100 in just 3 minutes.

L0Ay, 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 application used the client-supplied X-Forwarded-Host header, including its port, to generate absolute URLs and cached the response without validating the host.

Impact

The cache poisoning could cause a denial of service, but the author states the impact was limited to a small scope and only affected himself.

What the attacker needed

Caching enabled on the site; ability to send custom headers

How it was found

  1. Browse the target site and test pages for common issues.
  2. Use ParamMiner to discover that the X-Forwarded-Host header is reflected.
  3. Change the port in the X-Forwarded-Host value to an arbitrary number.
  4. Observe that the cached page now points to the wrong port, causing a denial of service.

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 pages so they load faster for everyone. If a site trusts a header like X-Forwarded-Host to build links and caches the result, an attacker can make the cache store a broken link that points to a wrong port. Visitors then get a page that tries to connect to the wrong place, so the site appears down.

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.