]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18 crypto/tls: randomly generate ticket_age_add
authorTatiana Bradley <tatiana@golang.org>
Thu, 12 May 2022 18:58:29 +0000 (14:58 -0400)
committerAlex Rakoczy <alex@golang.org>
Fri, 27 May 2022 14:58:06 +0000 (14:58 +0000)
commitc838098c327a1b6d63446f4722e943b02d235d78
tree5602df43a68593b20cb7ea0114a5878e48f4ea11
parent6c65a4ab8e8bc6caa70d3bfe9b4bdd3dc26b8de5
[release-branch.go1.18 crypto/tls: randomly generate ticket_age_add

As required by RFC 8446, section 4.6.1, ticket_age_add now holds a
random 32-bit value. Before this change, this value was always set
to 0.

This change also documents the reasoning for always setting
ticket_nonce to 0. The value ticket_nonce must be unique per
connection, but we only ever send one ticket per connection.

Updates #52814
Fixes #52833
Fixes CVE-2022-30629

Change-Id: I6c2fc6ca0376b7b968abd59d6d3d3854c1ab68bb
Reviewed-on: https://go-review.googlesource.com/c/go/+/405994
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Run-TryBot: Tatiana Bradley <tatiana@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
(cherry picked from commit fe4de36198794c447fbd9d7cc2d7199a506c76a5)
Reviewed-on: https://go-review.googlesource.com/c/go/+/408575
Run-TryBot: Roland Shoemaker <roland@golang.org>
src/crypto/tls/handshake_server_tls13.go