Skip to content
XSS Write-up Beginner

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.

Aleens-labs Follow

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…

Aleens-labs, on medium.com

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

  1. Discover subdomains of the target domain using Subfinder.
  2. Check which subdomains are live using httpx.
  3. Extract historical URLs from the Wayback Machine.
  4. Extract URLs containing parameters.
  5. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.