]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: Missing Retry token length on receipt
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 15 May 2023 16:11:21 +0000 (18:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 May 2023 14:30:11 +0000 (16:30 +0200)
commit35b63964a00bb0e5f9478272b1f838d13e923b79
treead3b5356b9de0b682be7cd4c77986ec1aca835ef
parent6d6ddb2ce58807b8defb0b38d9d524b958278ce4
BUG/MINOR: quic: Missing Retry token length on receipt

quic_retry_token_check() must decipher the token sent to and received back from
clients. This token is made of the token format byte, the ODCID prefixed by its one byte
length, the timestamp of its creation, and terminated by an AEAD TAG followed
by the salt used to derive the secret to cipher the token.

So, the length of these data must be between
2 + QUIC_ODCID_MINLEN + sizeof(uint32_t) + QUIC_TLS_TAG_LEN + QUIC_RETRY_TOKEN_SALTLEN
and
2 + QUIC_CID_MAXLEN + sizeof(uint32_t) + QUIC_TLS_TAG_LEN + QUIC_RETRY_TOKEN_SALTLEN.

Must be backported to 2.7 and 2.6.
src/quic_conn.c