Skip to content
Cache bugs Write-up Intermediate

The Company Fixed the Bug — but Forgot the Cache

An API endpoint that was supposed to be authenticated was still publicly cached by the CDN, and a proxy header could be used to make the backend return admin data which was then cached and served to anyone. An attacker could retrieve sensitive admin 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 CDN cache was not purged or reconfigured after authentication was added to the endpoint, and the proxy trusted an internal routing header, allowing cached admin data to be served publicly.

Impact

This could expose sensitive admin data including email addresses, internal identifiers, feature flags, debug metadata, and API keys to any unauthenticated user, and the issue persisted even after the backend was fixed.

What the attacker needed

No authentication required; Knowledge of internal routing header; Target uses a CDN with caching

The fix

The cache should not store authenticated API responses publicly, authentication context should be part of the cache key, user data should use private cache directives, and the cache should be purged after security fixes.

How it was found

  1. Send a request to the profile endpoint with a special header that tells the proxy to fetch an admin export URL.
  2. The proxy forwards the request internally and the backend returns admin data.
  3. The CDN caches the admin response publicly.
  4. Later, a normal request to the same endpoint returns the cached admin data without any special header.

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 cache is like a storage room that keeps copies of web pages so they load faster. The developers fixed a bug that let people see private data without logging in, but they forgot to clear the cache. So the old private data stayed in the cache and anyone could still get it.

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.