Stored XSS Found in Query Parameters of dhtmlxGrid.js on NASA.gov
A stored cross-site scripting flaw was found in the query parameters of a dhtmlxGrid page on a NASA subdomain. An attacker could inject script that executes in a victim's browser, potentially stealing cookies or performing other actions.
Published on medium.com
Stored Cross-Site Scripting (XSS) is a critical security vulnerability that occurs when an application accepts and stores untrusted data, which is later served to users without proper validation or sanitization. This flaw allows attackers to inject malicious scripts into web pages that are then executed when viewed by…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the page reflected query parameters into the HTML without proper encoding or validation.
Impact
An attacker could steal session cookies, exfiltrate data, redirect users, or deface the site, though the report does not demonstrate these beyond an alert.
What the attacker needed
Victim clicks a crafted link
How it was found
- Discover subdomains of the target domain using Subfinder.
- Check which subdomains are live using httpx.
- Extract historical URLs from the Wayback Machine.
- Extract URLs containing parameters.
- Test the parameters for XSS by replacing values with a script payload and checking for reflection.
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 write-up 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 later shows it to other users without making it safe, so a malicious script can run in their browser. Here, the page put query parameters into the page without cleaning them, so a crafted link could run code. That code could read cookies or change what the page shows.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.