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.