]> git.kaiwu.me - haproxy.git/commit
MEDIUM: http: enable a few important hardening rules on untrusted connections
authorWilly Tarreau <w@1wt.eu>
Wed, 4 Nov 2026 17:17:48 +0000 (18:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Nov 2026 21:45:33 +0000 (22:45 +0100)
commit4662225cfcc16562a1c484be19c88633015618f9
tree5107ed304960f2b7ba6f6a5b339dd848c19688e7
parentfe74f3fcb782d59b03dc6ae8d01a8a0f33a1060b
MEDIUM: http: enable a few important hardening rules on untrusted connections

For connections coming from non-local IP addresses, we now enable these
hardening rules by default, which should not cause any trouble to
existing applications and which are essentially used to build attacks
when seen in public:

  - reject-content-length-leading-zero
  - reject-content-length-with-te
  - reject-ctl-in-header-trailer
  - reject-header-trailer-folding
  - reject-lowercase-method

This will cause error 400 or 502 depending on the side they are triggered.
In HTTP/1 an error will be captured. We still don't have a capture of what
matched but that's a start.
doc/configuration.txt
include/haproxy/http-t.h