From Recon to Letter of Recognition | NASA VDP
An exposed .git repository on a NASA subdomain allowed the full source code of the site to be downloaded. An attacker could read the application's back-end code, though the author found no exploitable credentials in it.
medium.com
Published on medium.com
In this article, I will explain a full walkthrough of how I got a Letter of Recognition (LoR) from the NASA Vulnerability Disclosure Program (VDP) on the BugCrowd platform. The source code disclosure I found should be rated P3 according to the Vulnerability Rating Taxonomy (VRT) on the BugCrowd platform.
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 .git directory was deployed to the production web root and left publicly accessible instead of being excluded from deployment.
Impact
The full application source code could be disclosed to anyone, though the author states no exploitable credentials were found in it.
What the attacker needed
None
The fix
The issue was fixed by the NASA team; the author recommends ensuring a properly configured .gitignore and scanning before deployment.
How it was found
- Search for PHP pages on NASA subdomains using a Google search query.
- Open a discovered page and notice it calls a back-end PHP file with parameters.
- Try common injection attacks on the parameters without success.
- Run a Nuclei scan against the page, which reveals an exposed .git repository.
- Clone the exposed repository to obtain the full source code.
- Build and run the site locally with Docker to confirm the disclosure.
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.
Many websites keep their source code in a hidden folder called .git, which is used by developers to track changes. If that folder is left reachable on the public site, anyone can download the code and study how the site works. Here the folder was exposed, so the whole codebase could be copied.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.