Host Header Injection Protection
Prevents password reset poisoning, cache poisoning, and virtual host bypass attacks. Prevents password reset poisoning, cache poisoning, and virtual host bypass attacks.
Overview
Prevents password reset poisoning, cache poisoning, and virtual host bypass attacks.
Feature details
Password Reset Poisoning
Host header modified to point to attacker domain
Cache Poisoning
Malicious host header cached by CDN/proxy
Virtual Host Bypass
Access restricted vhosts via host header
Web Cache Deception
Host variation causing cache mismatch
XSS via Host Reflection
Malicious script in host header
DNS Rebinding
Host header pointing to internal IPs
Port Injection
example.com:8080 bypassing port restrictions
Localhost Attack
127.0.0.1 , localhost host values
Line-Feed Injection
%0d%0a HTTP response splitting
Duplicate Host Header
Multiple Host headers causing ambiguity
Host Whitelist Validation (against configured domains)
Port Stripping & Validation
localhost/Private IP Blocking (127.0.0.1, 0.0.0.0, ::1, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
Duplicate Host Header Rejection
CRLF Injection Prevention ( \r\n , %0d%0a , %0a%0d )
Null Byte Detection ( %00 , \x00 )
Path Traversal Detection ( ../ , ..%2f )
Host Length Validation (max 255 chars)
Allowed Character Whitelist (a-z, 0-9, ., -, :)
Automated Host Normalization
Allowed Domains List (primary + aliases)
Block Private IPs (toggle)
Block Localhost (toggle)
Strip Port from Host (toggle)
Case-Sensitive Validation (off by default)
How CloFix WAF uses it
Prevents password reset poisoning, cache poisoning, and virtual host bypass attacks. Part of the CloFix WAF Core Security Features with real-time scoring, policy controls, and live analytics.
Canonical URL: https://clofix.com/features/clofix-waf/host-header-injection/