Skip to content
XSS Write-up Intermediate

️ ️my Story Of Securing Nasa

A NASA subdomain had an input field for email and description that sent emails without sanitising the description, allowing HTML injection. An attacker could send a phishing email from NASA's address that redirected recipients to a fake login page to steal credentials.

cryptoshant🇮🇳 Follow

Published on infosecwriteups.com

Happy New year to all my readers!🎉Today in this writeup I will share you all the details how I discover bugs in to NASA and how I secured it and as a reward they give me LOR ❤ and HOF 🎉. So let’s begin the journey..!

cryptoshant🇮🇳, on infosecwriteups.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 application failed to sanitise or escape user-supplied input in the description field before including it in outgoing emails.

Impact

An attacker could send a phishing email from NASA's address that leads to a fake login page, potentially stealing credentials and taking over accounts; however, some triagers marked similar reports as out of scope, and the author notes uncertainty about validity.

What the attacker needed

A subdomain with an email/description form; victim clicks the link in the email; victim enters credentials on fake page

The fix

The report was resolved after the author suggested sanitising and validating user inputs, escaping dynamic content, using secure email templates, and applying server-side protections like CSP.

How it was found

  1. Find a subdomain with an input field for email and description using Google dorks.
  2. Enter the victim's email address and put HTML content in the description field.
  3. Submit the form; the victim receives an email from NASA containing the injected HTML.
  4. The victim clicks the link in the email and is redirected to a fake NASA login page.
  5. The victim enters credentials, which are sent to the attacker's server.

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 lets you type something that later appears in an email, it should clean up your text so it cannot contain clickable links or fake login forms. Here, the description field was not cleaned, so an attacker could make NASA send an email with a link to a fake login page. If a user clicked and typed their password, the attacker got 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.