Skip to content
XSS Write-up Beginner

How I Hacked NASA

A NASA subdomain had a public signup that accepted extremely weak passwords, and its login form reflected user input in a way that could execute script when a crafted link was opened. An attacker could create accounts with trivial passwords and potentially run script in a victim's session.

medium.com

Published on medium.com

People love dramatic titles — “I hacked NASA” sounds like clickbait — but the truth is much more boring and, honestly, a lot more satisfying: curiosity, patience, and responsible disclosure. Over 15 days I went from casual recon to a formal Letter of Recognition (LOR) from NASA after reporting multiple issues.

Pawan parmar, 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 signup form lacked password complexity rules, and the login page reflected user input without proper output encoding.

Impact

An attacker could create accounts with trivial passwords and craft a link that, if clicked by an authenticated user, would execute script in their session; the XSS was rated informational by triage.

What the attacker needed

Access to the public signup page; victim clicks a crafted link

The fix

The weak password policy was fixed after being accepted, but the text does not say the XSS was fixed.

How it was found

  1. Find an untested subdomain with public and admin features.
  2. Run passive recon and a nuclei scan, then manual checks.
  3. Brute force directories to find a wiki endpoint with a public signup.
  4. Sign up with a single-character password to confirm weak policy.
  5. Try XSS and SQL injection payloads in the username field and see an alert.
  6. Switch the login request from POST to GET to deliver the payload via URL.

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 login page should not let people pick passwords like a single letter, because attackers can guess them easily. Also, if a login page shows back what you typed without cleaning it, an attacker can make a link that runs code in your browser when you click it.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.