Summary by AshmitSh4rma
Vulnerability Disclosure Report
DOM-Based Non-Self Reflected XSS on NASA-Affiliated Web Application
Target:
https://sservi.nasa.gov/ (NASA-affiliated website)
Vulnerability Type:
Cross-Site Scripting (XSS) → DOM-Based → Reflected → Non-Self
Description:
A DOM-based Reflected Cross-Site Scripting (XSS) vulnerability was discovered on the NASA-affiliated domain https://sservi.nasa.gov. The vulnerability allows remote execution of arbitrary JavaScript when a user accesses a specially crafted URL.
The XSS is non-self in nature—it does not rely on user-provided form inputs but instead executes by manipulating the browser’s URL path. This allows attackers to craft URLs that, when accessed by a victim, result in the browser executing malicious JavaScript in the context of the vulnerable domain.
Example payload (executed via URL path):
https://sservi.nasa.gov/<img src=x onerror=alert('bugcrowd:ashmitsh4rma')>
Although direct interaction like clicking the link might not execute the payload due to encoding, pasting the URL directly into the address bar triggers execution, demonstrating a live vulnerability in how the page parses and reflects path data into the DOM.
Impact:
- Arbitrary JavaScript Execution in the victim’s browser
- Session Hijacking, phishing, and unauthorized actions on behalf of the victim
- Potential for escalated impact if combined with other vulnerabilities on related NASA services
Exploitation Risks:
- Can be weaponized in phishing campaigns by embedding malicious links
- Bypasses input-based filters since the payload resides in the URL path
- Executed entirely client-side, reducing server-side detection opportunities
Resolution:
- The affected path-handling code was updated to sanitize and properly encode DOM-inserted values
- The vulnerability no longer triggers when the crafted payload is inserted into the URL
- Content Security Policy (CSP) may have been enhanced to mitigate future inline script execution risks