Skip to content
Info disclosure Write-up Beginner

Exposing Sensitive Data on NASA Endpoint. S3 Bucket, API Key, and Config Leak

A developer configuration file on a NASA subdomain was publicly reachable and pointed to an S3 bucket with directory listing enabled, which contained application source code and a hardcoded API key. Anyone could list and download those files, and the key could potentially be used to make unauthorised API calls.

D3N14LD15K Follow

Published on medium.com

During this assessment, I discovered an exposed developer configuration that revealed:

denialdisk, 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 a developer configuration file was left publicly reachable and referenced an S3 bucket with directory listing enabled, while secrets were hardcoded in client-side JavaScript.

Impact

Anyone could list and download the bucket contents, and the leaked key could potentially allow unauthorised API calls, though the report was triaged as informational because the data was said to be intended for public availability.

What the attacker needed

None

The fix

Storage permissions should be audited so the bucket is not publicly listable, and API keys should be rotated and kept out of client-side code.

How it was found

  1. Explore the developer-focused subdomain and monitor network requests in browser developer tools.
  2. Open the configuration endpoint directly and observe server URLs, developer usernames and configuration data.
  3. Visit the S3 bucket referenced in the JSON and confirm directory listing is enabled without authentication.
  4. Download and extract the application archive from the bucket.
  5. Inspect the JavaScript files and find a hardcoded developer API key used to set request headers.

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 developer subdomain served a configuration file that anyone could open without logging in. That file pointed to a cloud storage bucket (S3) that was set to let anyone list and download its contents, including source code and an API key. An API key is like a password that lets software talk to a service, so leaking it can let others make requests as the application.

What is Info disclosure?

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

More by D3N14LD15K

View all

1 more disclosed report, 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.