Skip to content
XSS Write-up Intermediate

How I Discovered Three Reflected XSS Vulnerabilities and Earned a

Three reflected cross-site scripting vulnerabilities were found on a NASA website: two in search parameters where HTML tag filtering could be bypassed, and one where user input was placed directly inside script tags without quotes. An attacker could execute arbitrary JavaScript in a victim's browser.

Michaeltanoto Follow

Published on medium.com

I was scrolling through LinkedIn and came across a post reporting reflected XSS vulnerabilities on NASA’s websites. The original creator didn’t redact the subdomains of the vulnerable site; let’s call it https://example.nasa.gov.

Michaeltanoto, 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 input filtering was flawed: it removed text between the first '<' and the next '>', which could be bypassed with nested or extra angle brackets, and one parameter was inserted directly into a script context without any quoting or encoding.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser, potentially leading to session theft or other client-side attacks, though the report only demonstrates alert pop-ups.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Gather URLs for the target domain from the Wayback Machine and remove duplicates.
  2. Filter the URL list for parameters that might be injectable for XSS.
  3. For the first vulnerability, test the 'filters' parameter with nested tags to bypass filtering and inject an image tag with an error handler.
  4. For the second vulnerability, test the 'type' parameter with an extra '<' to break the filter and inject an image tag with an error handler.
  5. For the third vulnerability, open the 'datavalues' parameter and observe that input is placed inside script tags without quotes, then use a simple JavaScript payload.

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.

Cross-site scripting (XSS) is a bug where a website puts user input into a page without making it safe, so an attacker can make the site run their JavaScript. Here, the site tried to filter out HTML tags but did it incorrectly, and in one place it put input straight into a script block. That let the researcher run a simple alert pop-up, which proves code execution.

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.