Host Header Injection via X-FORWARDED-HOST lead to open redirection
The target website accepted a client-supplied X-FORWARDED-HOST header and used it to build redirects. An attacker could redirect users to a malicious site, enabling phishing or bypassing security controls.
Originally disclosed on Bugcrowd
- Disclosed after 5 months
Summary by National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program
Site updated.
Summary by ashraff_01
The target website is vulnerable to a Host Header Injection attack through the X-FORWARDED-HOST header. This vulnerability can be exploited to perform an open redirection, which could allow an attacker to redirect users to a malicious site, conduct phishing attacks, or bypass security controls.
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 trusted the client-supplied X-FORWARDED-HOST header when constructing redirect URLs instead of using a fixed, validated host.
Impact
An attacker could redirect users to a malicious site, conduct phishing attacks, or bypass security controls.
What the attacker needed
Ability to set X-FORWARDED-HOST header
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 often uses the host name in the request to build links or redirects. Here the site also trusted an extra header called X-FORWARDED-HOST, which a client can set freely. By putting a different host name there, an attacker could make the site send users to a site the attacker controls.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.