Skip to content
XSS Disclosed report Beginner

DOM-Based Non-Self RXSS On https://nlsi.arc.nasa.gov/

A NASA-affiliated site took data from the URL path and inserted it into the page without proper encoding, so a crafted URL could run attacker-supplied JavaScript in the browser. The author says this could let an attacker act as the victim, but notes that clicking the link may not trigger it while pasting it into the address bar does.

AshmitSh4rma Follow

Originally disclosed on Bugcrowd

  • Accepted in 6 days
  • Fixed in 2 months
  • Disclosed after 3 months

Summary by AshmitSh4rma

Vulnerability Disclosure Report

DOM-Based Non-Self Reflected XSS on NASA-Affiliated Web Application


Target:

https://nlsi.arc.nasa.gov/ (NASA-affiliated website)


Vulnerability Type:

Cross-Site Scripting (XSS) → DOM-Based → Reflected → Non-Self


Description:

A DOM-based Reflected Cross-Site Scripting (XSS) vulnerability was discovered on the NASA-affiliated domain https://nlsi.arc.nasa.gov. The vulnerability allows remote execution of arbitrary JavaScript when a user accesses a specially crafted URL.

The XSS is non-self in nature—it does not rely on user-provided form inputs but instead executes by manipulating the browser’s URL path. This allows attackers to craft URLs that, when accessed by a victim, result in the browser executing malicious JavaScript in the context of the vulnerable domain.

Example payload (executed via URL path):

https://nlsi.arc.nasa.gov/<img src=x onerror=alert('bugcrowd:ashmitsh4rma')>

Although direct interaction like clicking the link might not execute the payload due to encoding, pasting the URL directly into the address bar triggers execution, demonstrating a live vulnerability in how the page parses and reflects path data into the DOM.


Impact:

  • Arbitrary JavaScript Execution in the victim’s browser
  • Session Hijacking, phishing, and unauthorized actions on behalf of the victim
  • Potential for escalated impact if combined with other vulnerabilities on related NASA services

Exploitation Risks:

  • Can be weaponized in phishing campaigns by embedding malicious links
  • Bypasses input-based filters since the payload resides in the URL path
  • Executed entirely client-side, reducing server-side detection opportunities

Resolution:

  • The affected path-handling code was updated to sanitize and properly encode DOM-inserted values
  • The vulnerability no longer triggers when the crafted payload is inserted into the URL
  • Content Security Policy (CSP) may have been enhanced to mitigate future inline script execution risks

The original report as published on Bugcrowd, by AshmitSh4rma. Images and videos are our own copies; raw HTML is shown as text. View it on Bugcrowd.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the page read the URL path and inserted it into the DOM without sanitising or encoding it.

Impact

An attacker could run arbitrary JavaScript in a victim's browser, which may allow session hijacking, phishing or actions taken as the victim, though the author notes that clicking a link may not trigger it and only pasting the URL did.

What the attacker needed

Victim pastes a crafted URL; JavaScript enabled in browser

The fix

The path-handling code was reportedly updated to sanitise and encode values before inserting them into the DOM, and the payload no longer triggers.

How it was found

  1. Craft a URL whose path contains a script-like fragment.
  2. Open that URL in a browser, pasting it directly into the address bar.
  3. Observe the script running in the context of the site.

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 report has not been written yet. The Original tab links to the source.

When a web page builds itself in the browser using pieces of the address you typed, it must treat that text as plain data, not as code. Here the page put part of the URL path straight into the page, so a URL containing a script-like fragment could make the browser run it. That lets an attacker run their own code as if it came from the site.

What is XSS?

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

More by AshmitSh4rma

View all

5 more disclosed reports, best first.

More from National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program

View all

The newest disclosed reports for this program.

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.