Skip to content
Info disclosure Write-up Intermediate

Recon time

A publicly accessible ZIP file on a subdomain contained a full source code backup with hardcoded database credentials, admin credentials, and API keys. Using these secrets, the attacker could authenticate to a third-party commerce API and retrieve customer PII, order history, and even deactivate user accounts.

Supras Follow

Published on supras.io

My blog has been unpublished for almost a year now, so I needed a new post … Here is an write-up from a recent P1 found and exploited on an external bug bounty program which led to a leak of many PII (Personally Identifiable Information).

Supras (@LdrTom), on supras.io

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 a development source code archive was deployed to a publicly reachable web directory without access controls, and it contained hardcoded secrets.

Impact

The attacker could retrieve customer PII, order history, store information, and disable user accounts through the third-party API.

What the attacker needed

Publicly accessible source code archive; hardcoded credentials and API keys in code; valid merchant ID, public key, and secret

How it was found

  1. Discover a new subdomain via a Slack notification.
  2. Use ffuf with a custom wordlist and PHP-related extensions to find hidden files and directories.
  3. Download the large ZIP file found during content discovery.
  4. Unzip the archive and scan it with DumpsterDiver and EarlyBird for secrets and passwords.
  5. Manually review the source code to identify the application (SugarCRM) and collect credentials and API keys.
  6. Use the recovered merchant ID, public key, and secret to authenticate to the Capillary commerce API and query 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 company left a backup of its website's source code in a public folder, like leaving the blueprints and keys to your house on the front lawn. Inside were passwords and secret keys that let the finder log into other systems. Those systems held personal data about customers, which the finder could read and even use to disable accounts.

What is Info disclosure?

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

More by Supras

View all

2 more disclosed reports, best first.

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.