Host Header Injection & Open Redirection leading to Cross-Site Scripting (XSS)
The report claims that the NASA website mishandles the X-Forwarded-Host header, allowing an attacker to manipulate response headers and body content. This could lead to open redirection and reflected XSS, though the program notes the XSS is self-inflicted because the payload must be injected by intercepting the request.
Originally disclosed on Bugcrowd
- Disclosed after 3 months
Summary by National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program
The XSS report would is considered informational, since it only demonstrates a self attack. The payload is being injected by intercepting the request, so the victim would have to inject the payload themselves.
Summary by ashraff_01
During the security assessment of the NASA website, I identified a severe vulnerability caused by improper handling of HTTP headers, specifically the X-Forwarded-Host header. The vulnerability allows an attacker to manipulate the HTTP response headers and body content, resulting in an open redirection and potential reflected Cross-Site Scripting (XSS) attack.
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
Impact
The report claims open redirection and reflected XSS are possible, but the program states the XSS is only a self attack because the payload must be injected by intercepting the request.
What the attacker needed
Ability to intercept and modify requests
The fix
The application should validate or ignore the X-Forwarded-Host header and not use it to construct redirects or page content.
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 server sometimes trusts a header called X-Forwarded-Host to decide where to send users or what to show on a page. If it does not check that value, an attacker can set it to a malicious address, causing a redirect to a bad site or injecting script. Here, the program says the script injection only works if the victim themselves modifies the request, so it is not a real attack against 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.