Skip to content
XSS Write-up Beginner

DOM XSS in nasa system 90.0000$$$

A DOM-based cross-site scripting vulnerability existed on a NASA subdomain because a URL parameter was written into the page using innerHTML. An attacker could craft a link that executes JavaScript in a victim's browser.

medium.com

Published on medium.com

Hello Hackers — hope you’re well. Today I’m sharing a short write‑up about a recent finding on a public program — which is NASA vdp program.

Aksoum Abderrahmane, 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 application read a URL parameter and assigned it to innerHTML without sanitisation, allowing HTML and JavaScript injection.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser by tricking them into clicking a crafted link, potentially stealing data or performing actions on their behalf.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Enumerate subdomains of the target and identify a JavaScript-heavy application.
  2. Extract JavaScript files and look for URL parameters being passed to dangerous sinks.
  3. Enable DOM Invader in Burp Browser and reload the page.
  4. Observe the tool flag a source (URL parameter) reaching a sink (innerHTML) with a canary value.
  5. Copy the generated proof-of-concept URL and open it in a new tab.
  6. Confirm that the injected script executes (a dialog box appears).

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.

When a website takes something from the address bar (like a search term) and inserts it directly into the page without cleaning it, an attacker can put code in the link. If a victim clicks that link, the code runs in their browser as if the website itself had written it. This is called DOM-based cross-site scripting.

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.