Skip to content
XSS Disclosed report Intermediate

RXSS & HTML Injection in 'cdn.earthdata.nasa.gov' via Docson viewer Enabling Phishing Attacks

A reflected cross-site scripting and HTML injection flaw existed in a Docson JSON schema viewer on a NASA CDN subdomain, where user input in the URL hash was rendered without sanitisation. An attacker could craft a link that, when opened in Firefox, displayed a fake NASA login form on an official nasa.gov domain with a valid certificate, aiding phishing.

jesssuwu Follow

Originally disclosed on Bugcrowd

  • Accepted in 12 hours
  • Fixed in 36 days
  • Disclosed after 40 days

Summary by jesssuwu

A reflected XSS vulnerability was identified in a Docson JSON schema viewer hosted in cdn.earthdata.nasa.gov. The vulnerable endpoint was discovered through directory listing exposure, which revealed the Docson library path and allowed direct manipulation of the URL to investigate its behavior. User-controlled input in the URL hash fragment was rendered without sanitization.

The vulnerability was later found to be exploitable exclusively in Firefox due to differences in how each browser handles error messages: Firefox rendered a distinct error output that included the unsanitized input, allowing script injection, while Chrome's error handling produced a different response that did not reflect the input in an injectable way.

Although direct cookie theft was not feasible, session cookies are scoped to urs.earthdata.nasa.gov and therefore inaccessible from the CDN subdomain, the HTML injection capability on an official nasa.gov domain with a valid SSL certificate represented a significant phishing risk. An attacker could render convincing fake NASA login forms with no browser warnings, facilitating credential theft targeting NASA Earthdata users.

After the issue was reported, the NASA security team responded promptly and resolved it in a timely manner.

The original report as published on Bugcrowd, by jesssuwu. 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

Impact

An attacker could host a convincing fake NASA login form on an official nasa.gov domain with a valid certificate, facilitating credential theft from Earthdata users; direct cookie theft was not possible because session cookies are scoped to a different subdomain, and the exploit worked only in Firefox.

What the attacker needed

Victim uses Firefox; victim opens a crafted link; attacker can host or send the link

The fix

The report says the issue was resolved by the NASA security team, but does not describe the fix itself.

How it was found

  1. Find the Docson library path through an exposed directory listing on the CDN.
  2. Modify the URL hash fragment to supply attacker-controlled input.
  3. Open the crafted URL in Firefox, where the error output reflects the input and executes it.

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.

A web page took part of the address (the bit after the # symbol) and put it straight into the page without cleaning it. That let an attacker make the page show their own content, such as a fake login box, while the address bar still showed a trusted NASA site. Only Firefox displayed the unsafe version, so the attack worked only in that browser.

What is XSS?

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

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.