Skip to content
Cache bugs Write-up Intermediate

Everyone Scanned the App — I Read the Error Messages Instead

The analytics export endpoint returned detailed error messages that leaked internal file paths, backend technology, and database details. By manipulating the X-Forwarded-Host header, the attacker could inject a host and cause the error response to be cached publicly, exposing sensitive information to all users for 10 minutes.

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

Likely the application returned verbose error messages in production and the CDN cached responses without properly isolating the cache key based on the X-Forwarded-Host header.

What the attacker needed

No authentication required; Ability to send custom headers; CDN caches error responses

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.

When a website has a bug, it sometimes shows a detailed error message that reveals how it is built, like showing the inside of a car engine. Here, the error messages included file names and database types. The attacker also found that these error messages could be saved by the content delivery network (CDN) and shown to other users, which is called web 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.

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.