]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-h1: don't forward request trailers named like server name header
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 7 Oct 2026 16:13:42 +0000 (18:13 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 16 Oct 2026 17:10:27 +0000 (19:10 +0200)
commit226b8fcb8763fc10a2365a719d54ad8470504e03
tree656926c30f76c55ff7e846bfe0650e75f7f8380f
parent545328d71da0653ad0db7345c7ffb1d74fea5db7
BUG/MINOR: mux-h1: don't forward request trailers named like server name header

With "http-send-name-header <name>", the H1 mux skips any request header
with the same name and adds its own with the server's name. But request
trailers were not filtered, so a client sending a chunked request with a
trailer "X-Srv: evil" (with "http-send-name-header X-Srv") had it forwarded
after the "x-srv: s1" header added by haproxy. Servers merging trailers into
the headers may then see the client's value. Let's skip such trailers, like
it is done for headers.

"option http-drop-request-trailers" may be used as a workaround.

This patch could be backported to all supported versions.
src/mux_h1.c