Skip to content
Info disclosure Write-up Beginner

Bug Bounty Diaries: How a Leaked appsettings.json Became a High-Impact Find

A publicly accessible appsettings.json file exposed Azure AD client IDs for three environments, an internal development API URL, and debug logging configuration. An attacker could use this information to target the less-secure development API and probe the production OAuth flow for further weaknesses.

0xbasak Follow

Published on 0xbasak.medium.com

Every bug bounty hunter dreams of that perfect Remote Code Execution or a critical SQL Injection. But often, the path to a high-impact report starts with something much quieter: a single, misconfigured file.

Dipu Basak, on 0xbasak.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 appsettings.json configuration file was deployed to a publicly reachable web directory instead of being kept private or excluded from the build.

Impact

The leaked client IDs, internal development API URL and debug logging setting could let an attacker target a less-secure development API and probe the production OAuth flow, though the report does not show any exploit actually being carried out.

What the attacker needed

None

How it was found

  1. Run content discovery tools against the target during reconnaissance.
  2. Notice the tool flags the /appsettings.json endpoint.
  3. Request the URL and read the full configuration file contents.

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 configuration file is like a settings sheet that tells an application how to run, including where its databases are and which login services it trusts. This one was left on a public web address, so anyone could read it. The author says the leaked details could help an attacker find other, more serious bugs, though no actual exploit was carried out.

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.