How I found 4 bugs in a NASA
A search page on a NASA subdomain reflected user input from the imonth parameter into the response without sanitisation, allowing reflected cross-site scripting. Because the vulnerable request was a POST, the author built a cross-site request forgery page that would submit the request automatically, turning a self-XSS into an attack that could run in a victim's browser.
medium.com
Published on medium.com
I’m Merouane Youcefi, a 22-year-old bug hunter from Algeria. This is My first writeup, and I’m excited to share how I found four related vulnerabilities on a NASA subdomain.
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 use a malicious page to make a victim's browser send the POST request and run script in the NASA subdomain's origin, potentially stealing cookies or acting as the victim, though the text does not demonstrate cookie theft.
What the attacker needed
Victim visits attacker's page; victim's browser sends POST to NASA; no authentication needed
How it was found
- Find an old search page on the subdomain using the Wayback Machine.
- Fill in the search form and intercept the request in Burp.
- Test the imonth parameter with a harmless marker and see it reflected in the response.
- Send a real XSS payload in imonth and observe the alert box.
- Generate an HTML CSRF proof of concept that submits the POST request automatically.
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 puts text from a user into its page without cleaning it, so an attacker can make the page run their own JavaScript. Here the vulnerable page only accepted the text in a form submission (a POST request), which normally means the victim would have to type the attack themselves. The author added a cross-site request forgery (CSRF) page: a malicious website that quietly submits that form for the visitor, so the script runs without them doing anything.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.