How I ‘Hacked’ NASA Without Going to Jail
A NASA subdomain had Django debug mode enabled, so a single quote in a calendar form caused an error page that exposed internal configuration and environment details. An attacker could read sensitive information that should not be public.
Published on medium.com
I was prowling a subdomain something like vuln.nasa.gov poking at it the old-fashioned way: manual tests, small probes, looking for IDORs, CSTI, XSS and the usual suspects.
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 Django application was left in debug mode, so unhandled errors displayed full stack traces and environment details.
Impact
The exposed stack trace could reveal internal configuration and environment details to anyone who triggered the error.
What the attacker needed
Access to the public subdomain; ability to submit a form field
The fix
The issue was fixed by disabling debug mode so error pages no longer show stack traces or environment details.
How it was found
- Find a subdomain of the target.
- Locate a calendar form with a date picker and fields.
- Enter a single-quote character into the form.
- Observe the site crash and display a Django traceback with internal details.
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.
When a website crashes, it sometimes shows a detailed error page meant for developers. That page can reveal private settings and clues about how the site works. Here, a simple quote character triggered such a page, letting anyone see information that should stay hidden.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.