]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: quic: missing check of dcid for init pkt including a token
authorEmeric Brun <ebrun@haproxy.com>
Tue, 11 Jul 2023 12:57:54 +0000 (14:57 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 12 Jul 2023 12:31:15 +0000 (14:31 +0200)
commit072e77493961a06b89f853f4ab2bbf0e9cf3eff7
treef260fd6b2148cb8d70a009a48a38cf9224683ef0
parentcc0a4fa0cc9eb7e50a343b20e6bdff7c88f31351
BUG/MEDIUM: quic: missing check of dcid for init pkt including a token

RFC 9000, 17.2.5.1:
"The client MUST use the value from the Source Connection ID
field of the Retry packet in the Destination Connection ID
field of subsequent packets that it sends."

There was no control of this and we could accept a different
dcid on init packets containing a valid token.

The randomized value used as new scid on retry packets is now
added in the aad used to encode the token. This way the token
will appear as invalid if the dcid missmatch the scid of
the previous retry packet.

This should be backported until v2.6
src/quic_conn.c