Skip to content
Info disclosure Write-up Beginner

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.

Shubham pawar Follow

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.

Shubham pawar, 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 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

  1. Pick a smaller, less-known subdomain of the target.
  2. Use ffuf with a wordlist to check for accessible directories on that subdomain.
  3. Adjust the wordlist to include directory names relevant to the site's services.
  4. Find a directory that is accessible without a password or login.
  5. 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.

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.