]> git.kaiwu.me - haproxy.git/commit
MINOR: http/hardening: implement hardening "reject-lowercase-method"
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Oct 2026 14:16:23 +0000 (15:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Nov 2026 21:45:32 +0000 (22:45 +0100)
commitb3b0b0ac7f87a1edf25448c9afb8df47637a8311
tree429b61fa59b32b144141d70fd058d070c0df37d0
parent9d6b4467a574f0fe605f0e8c06704b109f7776e2
MINOR: http/hardening: implement hardening "reject-lowercase-method"

Rejects requests whose method contains a lower-case character. No
standard HTTP method uses lower-case characters and these ones are
essentially used in desynchronization attack scenarios, by trying to
exploit different case matching schemes along the chain. This is
recommended on untrusted listeners. This is implemented directly in the
h1 parser, as well as in http_method_has_forbidden_char() for h2 and
h3. H2 now uses this function instead of rolling its own loop.
doc/configuration.txt
include/haproxy/http-t.h
include/haproxy/http.h
src/h1.c
src/h2.c
src/http.c