How I Discovered a Directory Listing Vulnerability on a NASA Subd
A NASA subdomain exposed a directory listing that allowed anyone to view files not meant to be public. An attacker could access JavaScript and configuration files that might reveal sensitive information or aid further attacks.
Published on medium.com
As a cybersecurity researcher, my goal is to find vulnerabilities before they can be exploited by malicious actors. Recently, I came across a vulnerability on a NASA subdomain that could have exposed sensitive information.
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 web server was configured to allow directory listings for a folder that contained files not intended for public access.
Impact
The exposed files could reveal sensitive information or be used to further attack the system, though the text does not confirm what specific data was exposed.
What the attacker needed
Knowledge of the subdomain URL; no authentication required
The fix
The server should be configured to disable directory listings for folders that contain non-public files, and the exposed files should be removed from public access.
How it was found
- Pick a smaller, less-known subdomain of the target.
- Use ffuf with a wordlist to check for accessible directories on that subdomain.
- Adjust the wordlist to include directory names relevant to the site's services.
- Find a directory that is accessible without a password or login.
- Inspect the files inside, such as JavaScript and configuration files.
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 directory listing is when a web server shows a list of all files in a folder instead of a normal web page. If that folder contains private files, anyone who guesses the folder name can see and download them. Here, a folder on a NASA website was left open like this, exposing files that should have been hidden.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.