RXSS in https://ahed.nasa.gov/search?t=te9cfs
The search page reflected a script payload from the search term back into the page, so the script ran in the browser. The reporter calls it self-XSS, meaning the attacker must get the victim to submit the payload themselves.
Originally disclosed on Bugcrowd
- Disclosed after 22 months
Summary by National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program
This is a self XSS
Summary by GalangGoenawan
Description Hello,
I found that the application is vulnerable to cross-site scripting (XSS).
Steps:
1.Go website https://ahed.nasa.gov/search 2.In form keywords enter payload "><script>alert(document.cookie)</script>
Boomm, xss can see
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the search parameter was written into the page without output encoding, so markup in the search term was treated as HTML and script.
Impact
The script could run in the context of the site, but because it is self-XSS the victim must enter the payload themselves, so practical impact on other users is limited.
What the attacker needed
Victim enters the payload themselves
How it was found
- Open the search page on the site.
- Enter a script payload into the keywords form field.
- Submit the search and the script runs in the page.
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 report has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) happens when a website puts text you typed into the page without cleaning it first, so the browser treats it as code and runs it. Here the search box echoed the search term back, and a script tag in that term executed. Because the reporter labels it self-XSS, the victim would have to paste the payload into the search box themselves, which makes it much harder to exploit against someone else.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.