How I Hacked NASA

NASA is massive. Thousands of subdomains, internal tools, research portals, and legacy systems sit behind *.nasa.gov. Most of them are hardened. Some of them are not.
I started where every good recon phase starts: Google. Searching for interesting assets under the nasa.gov umbrella, I landed on csbf.nasa.gov, the Columbia Scientific Balloon Facility. CSBF manages NASA's high-altitude balloon missions, launching scientific payloads into the stratosphere for atmospheric research, astrophysics, and Earth observation.
Digging deeper into the subdomain's directory structure, I found something that caught my eye: a login panel at https://www.csbf.nasa.gov/aquila/Default.aspx. It looked dated, and in this line of work, dated usually means interesting and filled with problems.

Pulling Back the Curtain
My first move was straightforward. I pulled the full page source using the browser console:
document.documentElement.outerHTMLThen I intercepted the login traffic with Burp Suite, capturing both the request and response to understand how the portal communicated with the server.
With the HTML source and the traffic capture in hand, I started reviewing everything for logic flaws. And buried inside the source code was this:
<!-- <input type="button" name="btnGuest" value="Guest"
onclick="javascript:__doPostBack('btnGuest','')"
id="btnGuest" tabindex="4" style="height:25px;" /> -->A commented-out Guest button.
Why This Matters
On its own, a commented HTML element is harmless. But the problem here is that this is an ASP.NET application, and that `__doPostBack('btnGuest','')` function call is designed to trigger a server-side event handler called `btnGuest_Click`.
Commenting out the button only removed it from the user interface. It did nothing to remove the server-side handler that processes the guest login request. The backend logic was still live, still listening, still ready to authenticate anyone who triggered it.
This is a pattern that shows up in production more often than it should: developers disable functionality by hiding the UI element instead of removing the server-side code. The assumption is that if users cannot see the button, they cannot click it. That assumption breaks the moment someone reads the page source.
Two Lines
The exploit was two lines of JavaScript in the browser console:
document.getElementById('__EVENTTARGET').value = 'btnGuest';
document.forms[0].submit();The first line sets the hidden `__EVENTTARGET` field, which ASP.NET uses internally to track which control triggered a form submission. Setting it to `btnGuest` tells the server that the guest button was clicked. The second line submits the form.

The server received the exact same signal it would have if the real button existed and a user clicked it. It processed the postback, ran the guest authentication handler, and granted an authenticated session. No username. No password. Full access.

The takeaway is simple: hiding a UI element is not a security control. If the server-side logic still exists, the functionality is still accessible. Authentication decisions have to be enforced on the backend, and dead code, especially dead authentication code, should be removed entirely rather than commented out.
NASA acknowledged the finding and issued a Letter of Recognition: https://spectra-vrg.org/HOF/nasa_lor.pdf
Ayukotsu is a security researcher and the founder of Spectra VRG, a research initiative focused on vulnerability discovery and exploit development. His work has uncovered vulnerabilities across NASA, DHS, and the DNFSB, among others.
Published by Exploit Security in The Exploit Society. Ayukotsu K on a commented-out Guest button that still authenticated on a NASA site, and why hiding a control is not the same as removing it.
What is The Exploit Society? The guest series on the Exploit Security blog.
"Writers do not work here. The topics are theirs."
Why did a hidden button still work? The login panel for the Columbia Scientific Balloon Facility had a Guest option commented out of the page. On an ASP.NET application that only removed the button from the interface. The server-side handler was still listening. Triggering it granted an authenticated session with no username and no password. NASA acknowledged the finding and issued a Letter of Recognition.
What is the takeaway? Hiding a UI element is not a security control. If the server-side logic still exists, the function is still available. Authentication has to be enforced on the backend, and dead authentication code should be removed rather than commented out.
Who published this? Exploit Security, a CREST-approved offensive security practice in Sydney offering penetration testing services and offensive security consultancy. The author is Ayukotsu K, founder of Spectra VRG.



Comments