Stored XSS chain on NASA VDP
An unauthenticated API endpoint allowed saving search filters with a predictable user ID, and the filter name was not sanitised, leading to stored cross-site scripting. An attacker could inject a script that executes when a victim views or interacts with the saved filter, potentially leading to account compromise.
Published on medium.com
I hope this message finds you in excellent spirits and eager for the exciting developments in our cybersecurity exploration! Today, I’m delighted to share an insightful discovery regarding the NASA VDP program, a journey that has led to uncovering intriguing vulnerabilities alongside my esteemed collaborator, QNSx.
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
Impact
An attacker could execute arbitrary JavaScript in a victim's browser, potentially leading to account takeover or data theft, though the report does not demonstrate a full exploit chain.
What the attacker needed
No authentication needed; victim must load or interact with the filter; attacker must guess a valid user ID
How it was found
- Identify the unauthenticated filter-saving endpoint that accepts a filter name and a user ID.
- Observe that user IDs follow a predictable numeric pattern, making them guessable.
- Craft a request to save a filter with a malicious script in the name parameter, targeting a guessed user ID.
- When the victim loads or interacts with the saved filter, the script executes in their browser.
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.
A website let anyone save a 'search filter' without logging in, and it put the filter's name directly into the page without cleaning it. That means an attacker could put a small script in the name, and when someone else loaded that filter, the script would run in their browser. This is called stored cross-site scripting (XSS) because the malicious code is saved on the server and later shown to other users.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.