Reflected XSS via Unquoted HTML Attribute
The img parameter was reflected without sanitisation into an unquoted HTML attribute, so an attacker could inject event handlers using a tab character as a delimiter. Successful exploitation would run arbitrary JavaScript in the context of the NASA domain.
- Accepted in 6 days
- Fixed in 26 days
- Disclosed after 32 days
Summary by sadchili
Reflected XSS via attribute injection was identified on NASA domain, The img parameter was reflected unsanitized into an unquoted HTML attribute, allowing an attacker to inject event handlers using a tab character as delimiter. Successful exploitation results in arbitrary JavaScript execution in the context of the NASA domain. The vulnerability has been resolved by the NASA security team.
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 inserted user input into an unquoted HTML attribute without encoding or validation, so a tab character could terminate the attribute and start a new event-handler attribute.
Impact
An attacker could execute arbitrary JavaScript in the context of the NASA domain, though the text gives no further detail on what that script could reach.
What the attacker needed
Victim clicks a crafted link
The fix
The vulnerability was fixed by the NASA security team; the text does not describe the change, but the correct fix is to quote the attribute and HTML-encode the reflected value.
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.
A web page took a value from the address bar and placed it straight into the HTML without cleaning it. Because the value sat inside an attribute that had no quotation marks, an attacker could add extra attribute text and make the browser run their JavaScript. That script would run as if it came from the NASA site, so it could read or change things the victim can see there.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.