Publicly Accessible .env File Exposing Hardcoded Credentials on NASA’s Git Repository
A publicly reachable .env file on NASA's Bitbucket server contained plaintext credentials for a live UAT environment. Those credentials were actively used by a script to authenticate to NASA's SIT token service, so anyone who found the file could have used them for unauthorised access or API abuse.
National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program
Originally disclosed on Bugcrowd
- Accepted in 17 days
- Fixed in 20 days
- Disclosed after 26 days
Summary by x3ro
A publicly accessible .env file on NASA’s Bitbucket server exposed plaintext credentials used in a live UAT environment. These credentials were actively consumed by a script to authenticate with NASA’s SIT token service (cmr.sit.earthdata.nasa.gov). This exposure could have allowed unauthorized access, data extraction, or API abuse if exploited.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a configuration file containing live credentials was committed to a public code repository instead of being kept out of version control and stored in a secret manager.
Impact
The exposed credentials could have allowed unauthorised access, data extraction, or API abuse against the live UAT environment.
What the attacker needed
Publicly readable repository; no authentication needed to view file
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 report has not been written yet. The Original tab links to the source.
A .env file is a small configuration file that programs use to store settings, and it often holds passwords or API keys. Here it was left publicly readable on a code-hosting server, so anyone could open it and read the secrets inside. Those secrets unlocked a live test system, meaning a stranger could log in as the application.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.