Reflected XSS allowing Redirection and JavaScript Execution
A NASA domain reflected unsanitised user input in its response without encoding, allowing JavaScript execution. An attacker could run script in a victim's browser, but the report says the impact was limited to self-XSS and required user interaction.
- Disclosed after 24 days
Summary by 0xNano
This report covers a reflected Cross-Site Scripting (XSS) vulnerability discovered on a NASA domain. The issue was caused by unsanitized user input being reflected in the response without proper encoding, which allowed JavaScript execution. A basic alert() payload was used to demonstrate the flaw. While the impact was limited to self-XSS and required user interaction, the report highlights the importance of proper input validation and output encoding to prevent similar vulnerabilities.
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 application echoed a user-supplied parameter into the HTML response without output encoding or input validation.
Impact
The report states the impact was limited to self-XSS and required user interaction, so an attacker could only execute script in a victim's browser if the victim was persuaded to act.
What the attacker needed
Victim interacts with a crafted input
The fix
The application should validate input and encode output so reflected user data cannot be interpreted as script.
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.
When a website takes something you typed and puts it straight back on the page without cleaning it, an attacker can type code instead of normal text. The browser then runs that code as if the site itself had written it. This is called reflected cross-site scripting, and it can let an attacker do things in your session.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.