Reflected XSS via URL Path in /archive/ Endpoint
The /archive/ endpoint reflected user-supplied content from the URL path into the page without sanitisation, allowing HTML injection. However, a strict Content Security Policy blocked JavaScript execution, so the XSS could not actually run.
- Accepted in 3 days
- Fixed in 10 days
- Disclosed after 30 days
Summary by National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program
Resolved
Summary by pwntest
There was a Reflected Cross-Site Scripting (XSS) vulnerability on the following subdomain:
seabass.gsfc.nasa.gov
Any content appended after /archive/ was reflected back into the page without proper sanitization.
For example, visiting a URL like:
https://seabass.gsfc.nasa.gov/archive/<Img src=1 onerror=alert()>
would cause the injected HTML to appear on the page, leading to JavaScript execution. However, due to a strict CSP, JavaScript execution was blocked in the browser.
This happened because user input was directly reflected into the DOM without proper escaping or encoding on the client side.
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
User input from the URL path was reflected into the DOM without escaping or encoding on the client side.
Impact
An attacker could inject HTML into the page, but JavaScript execution was blocked by a strict CSP, so the XSS could not run.
What the attacker needed
Victim visits a crafted URL
How it was found
- Visit the /archive/ endpoint on the subdomain.
- Append HTML content after /archive/ in the URL.
- Observe the injected HTML reflected on the page.
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.
Cross-site scripting (XSS) is when a website takes input from a user and puts it into the page without cleaning it, so an attacker can make the page show their own code. Here the site put whatever came after /archive/ straight into the page, but a security rule called CSP stopped any JavaScript from running.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.