]> git.kaiwu.me - haproxy.git/commit
MEDIUM: h1/violations: restrict valid version strings to "1.0" and "1.1"
authorWilly Tarreau <w@1wt.eu>
Thu, 5 Nov 2026 17:14:02 +0000 (18:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Nov 2026 09:55:54 +0000 (10:55 +0100)
commit7c36f6c0db4e19541e7ed0f77f2248bc487374c5
treef76711c66f275be5c91a298bc3a2aaa38ae9d3b9
parent88db46dec991008255e77c98dc15035f4ee52538
MEDIUM: h1/violations: restrict valid version strings to "1.0" and "1.1"

The "invalid-version-string" HTTP violation only permitted to use
versions which are not made of exactly one digit, a dot, and one digit.
But the only versions where such a version is advertised are 1.0 and
1.1, and after them no other version is advertised. This means that the
only valid tokens are exactly 1.0 and 1.1. There's no point in accepting
"0.9", "1.2" nor "2.0" for example, and while haproxy handles them
carefully, some components only look at the second digit, or apply "&1"
to it resulting in 1.2 becoming 1.0 etc. Better be strict on this and
block these ones unless the violation is explicitly accepted. No
visible effect is expected given that the vast majority of servers and
proxies already do not accept other versions.
doc/configuration.txt
src/h1_htx.c