Skip to content
Info disclosure Write-up Intermediate

The Proxy That Snitched on Itself

A public API proxy that injected Cloudflare Access and Airflow Basic credentials into outbound requests also echoed those credentials back in its JSON response. A default merchant account could read the secrets, pass the Zero-Trust gateway and authenticate as admin to an internal Apache Airflow, exposing production database, object storage and third-party service credentials.

moatasem20052002 Follow

Published on medium.com

Some of the best bugs aren’t clever. There’s no polyglot payload, no race window measured in milliseconds, no fifteen-step gadget chain.

Moatasem bellah Muhammed, 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

The proxy returned its own outbound request, including injected authentication headers, in the response body to the caller.

Impact

A standard merchant account could authenticate as admin to internal Airflow, which could lead to code execution and exposure of production database, object storage and third-party service credentials, and over 20,000 migration records were exposed through the proxy alone.

What the attacker needed

A default merchant account

How it was found

  1. Send a normal merchant request to a proxy endpoint.
  2. Read the response and find the echoed outbound request with its headers.
  3. Request the internal Airflow host directly and observe the Cloudflare Access block.
  4. Add the leaked Cloudflare Access service token and observe Airflow rejecting with 401.
  5. Add the leaked Basic credentials and receive a 200 with the DAG list.

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 proxy is a middleman server that forwards requests to another system. This proxy added secret passwords to reach an internal tool, but it also sent those passwords back to the user in its reply. Anyone with a normal shop account could read them and log in as an administrator.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.