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.
- 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:
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
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
- Craft a Sandcastle URL whose fragment contains encoded and compressed JavaScript.
- Open the crafted URL in a browser.
- The application decodes and decompresses the fragment.
- 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.