Skip to content
XSS Disclosed report Intermediate

DOM-based cross-site scripting through the publicly exposed Cesium Sandcastle shared-code feature

The Cesium Sandcastle page on gpm.nasa.gov decoded and decompressed JavaScript from the URL fragment and ran it in an unsandboxed same-origin iframe. An attacker could craft a link that executes arbitrary JavaScript in the site's origin without authentication or further interaction.

iaramsri Follow

Originally disclosed on Bugcrowd

  • Accepted in 44 hours
  • Fixed in 19 days
  • Disclosed after 23 days

Summary by iaramsri

Summary

The publicly accessible Cesium Sandcastle application hosted on gpm.nasa.gov accepted attacker-controlled JavaScript through the #c= URL fragment.

When a crafted Sandcastle URL was opened, the application decoded and decompressed the supplied fragment and automatically executed the resulting JavaScript inside a same-origin iframe.

Because the execution iframe was not sandboxed, the injected JavaScript executed within the security context of:

https://gpm.nasa.gov

No authentication was required, and no additional user interaction was necessary after opening the crafted URL.

Researcher: Itthidej Aramsri Program: NASA - Vulnerability Disclosure Program via Bugcrowd Vulnerability: DOM-based cross-site scripting through the publicly exposed Cesium Sandcastle shared-code feature Status: Resolved Resolved: August 27, 2026

The original report as published on Bugcrowd, by iaramsri. 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 Sandcastle shared-code feature trusted the URL fragment, decoding and executing it in an unsandboxed same-origin iframe without validation.

Impact

An attacker could run arbitrary JavaScript in the gpm.nasa.gov origin for any visitor who opened the crafted link, with no login or extra interaction needed.

What the attacker needed

Victim opens a crafted link; no account needed

How it was found

  1. Craft a Sandcastle URL whose fragment contains encoded and compressed JavaScript.
  2. Open the crafted URL in a browser.
  3. The application decodes and decompresses the fragment.
  4. The resulting JavaScript runs automatically in a same-origin iframe.

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 can read part of the address after the # symbol, called the fragment, and this page used it to load code. Because the code ran in a frame belonging to the same site and that frame had no sandbox restriction, it could act as the site itself. Anyone who opened a prepared link would run the attacker's script in their 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 by iaramsri

View all

1 more disclosed report, 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.