Skip to content
Cache bugs Write-up Intermediate

🪜🔓 I Didn’t Hack Anything — The App Gave Me Admin Access by Itself

An unauthenticated UI configuration endpoint trusted forwarding headers, allowing an attacker to make the CDN cache an admin-role response. This cached response then unlocked admin API routes that lacked authentication, exposing sensitive data and allowing role changes.

iski Follow

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 client-supplied forwarding headers to determine role and cached the response publicly, while admin APIs lacked authentication checks.

Impact

The cached admin response could be served to anonymous users, and admin APIs without authentication could expose sensitive data and allow role changes.

What the attacker needed

No authentication required; ability to send custom HTTP headers

How it was found

  1. Find the unauthenticated bootstrap endpoint in JavaScript files.
  2. Send a request with X-Forwarded-Host and X-Original-URL headers to make the response show admin role.
  3. Observe that the response is cached publicly.
  4. Request the endpoint without special headers and receive the cached admin response.
  5. Access admin API endpoints without authentication to retrieve user data.
  6. Send a POST request to change a user's role without any token or permission check.

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.

The app had a public endpoint that returned settings like 'adminPanel: false'. The attacker added special headers to make it return 'adminPanel: true' and 'role: admin', and the CDN saved that response for everyone. Because the admin API didn't check who was calling, anyone could then access admin data and change roles.

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.

More by iski

View all

186 more disclosed reports, best first.

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.