]> git.kaiwu.me - haproxy.git/commit
MEDIUM: http/hardening: delete untrusted headers/trailers with underscore
authorWilly Tarreau <w@1wt.eu>
Mon, 23 Nov 2026 08:56:17 +0000 (09:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 23 Nov 2026 22:24:23 +0000 (23:24 +0100)
commit8e581c25e830f75e250d1dd512017d04b696b2e4
tree3f14bb10984a7ed2da57ecacff751b9ee52cd63b
parentced0ded1d5a4346d0839cb8f0b645a4e9a8c59a5
MEDIUM: http/hardening: delete untrusted headers/trailers with underscore

No standard header/trailer name exists with underscores, and these are
sometimes converted to the same variable name as the ones with a dash by
some application frameworks or CGI/FCGI, causing confusion. Let's just
drop them by default from untrusted peers (we don't deny these requests
nor responses though).
include/haproxy/http-t.h
reg-tests/http-messaging/http_hardening_profiles.vtc