Property
Languagegeneric
Severitylow
CWECWE-290: Authentication Bypass by Spoofing
OWASPA07:2021 - Identification and Authentication Failures
Confidence LevelMedium
Impact LevelLow
Likelihood LevelLow

Description#

Using $http_host or $host in Nginx configs without validation allows attackers to send malicious Host headers, which your server may trust as legitimate. This can lead to relying on user-supplied values for important logic or redirects.

Impact#

If exploited, attackers could impersonate trusted domains, bypass authentication, or manipulate how your app processes requests, potentially leading to phishing or unauthorized access. This weakens the security of domain-based protections and trust checks.