]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h3: reject request with invalid pseudo header
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 7 Dec 2022 13:33:26 +0000 (14:33 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 14 Dec 2022 10:34:18 +0000 (11:34 +0100)
commit7b5a671fb8914aa2a2af113d69a80d5dc7ceb841
tree3fc58b32ca2de470ad935fd7bf19b34af39b6388
parentd6fb7a0e0f3a79afa1f4b6fc7b62053c3955dc4a
BUG/MEDIUM: h3: reject request with invalid pseudo header

RFC 9114 dictates several requirements for pseudo header usage in H3
request. Previously only minimal checks were implemented. Enforce all
the following requirements with this patch :
* reject request with undefined or invalid pseudo header
* reject request with duplicated pseudo header
* reject non-CONNECT request with missing mandatory pseudo header
* reject request with pseudo header after standard ones

For the moment, this kind of errors triggers a connection close. In the
future, it should be handled only with a stream reset. To reduce
backport surface, this will be implemented in another commit.

This must be backported up to 2.6.
src/h3.c