Skip to content
Access control Write-up Intermediate

I Never Touched the Database — Still Got All the Data

An internal analytics endpoint was publicly accessible without authentication, and by injecting a routing header an attacker could trigger a user data export that was then retrievable without authorisation. This exposed full user records including emails and phone numbers.

iski Follow

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 trusted client-supplied routing headers and exposed internal endpoints without authentication or authorisation checks.

Impact

An unauthenticated attacker could retrieve full user exports containing emails, phone numbers, and roles, leading to mass PII exposure.

What the attacker needed

None

How it was found

  1. Send a request to the internal analytics summary endpoint without any authentication headers.
  2. Observe that the response contains user statistics, indicating the endpoint is publicly accessible.
  3. Inject an X-Original-URL header pointing to the user export endpoint.
  4. Receive a queued export ID in the response.
  5. Request the export endpoint with the received export ID to retrieve user data.

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.

Some web servers use special headers to decide which internal service should handle a request. If they trust these headers from anyone, an outsider can trick the server into running internal actions, like exporting all user data, without logging in.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by iski

View all

186 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.