Source Code Disclosure
A NASA SATCORPS web server had directory listing enabled, exposing PHP source code files across multiple directories. An attacker could browse the directories and read the source code, though the impact was limited because NASA's open source policy made the code public anyway.
- Accepted in 5 hours
- Disclosed after 48 days
Summary by National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program
This is public.
Summary by oversudo
A directory listing misconfiguration was identified on a NASA SATCORPS web server that exposed PHP source code files across multiple directories. While classified as informational due to NASA's open source policy, this finding demonstrates common web server misconfigurations.
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 the web server had directory listing enabled and served source files directly instead of only executing them.
Impact
An attacker could read PHP source code files, but the impact was limited because the code was already open source.
What the attacker needed
None
The fix
The web server should disable directory listing and ensure source files are not served directly.
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 web server can be set to show a list of all files in a folder, like a table of contents. If that folder contains program files, anyone can click them and read the code. Here the code was already public, so the risk was low.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.