Skip to content
Info disclosure Write-up Beginner

One misconfiguration to rule them all

A Symfony web profiler was left enabled on a development domain, allowing file reads. Attackers used it to read a configuration file containing API keys and tokens for Cloudflare, Chargebee, and Google Cloud Platform, which had production access.

Sushant Soni Follow

Published on medium.com

Bounty$5,000 View original

While performing recon on a target, I and varun pk came across a particular domain of interest — “developer-name.xyz.com”. We know that these kinds of domains are usually good for finding security loopholes that can compromise their production environment as well.

Sushant Soni, 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 Symfony application was deployed in development mode with the web profiler enabled, which allowed arbitrary file reads.

Impact

An attacker could read production secrets, potentially take down the WAF, and access customer data via PubSub messages.

What the attacker needed

Publicly accessible dev domain; Symfony web profiler enabled

The fix

The web profiler should be disabled in production and development environments should not be publicly accessible.

How it was found

  1. Visit the developer subdomain and notice the Symfony web profiler in the footer.
  2. Use the profiler's file-open endpoint to read files on the server.
  3. Fuzz the endpoint and find parameters.yaml containing API keys and tokens.
  4. Verify the Cloudflare key and find it has superadmin privileges.
  5. Verify the Google Cloud key and find it can access PubSub messages with customer 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.

A web profiler is a debugging tool that shows detailed information about a website's inner workings. If left on in a public site, it can let outsiders read files on the server. Here, that exposed a file with secret keys, which gave access to other services like Cloudflare and Google Cloud.

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.