Change information
Commit message:
crypto/tls: omit PSK in ECH outer client hello
When using ECH, do not include the PSK extension in the outer hello.
Including the PSK extension allows for a degradation in privacy, as an
on-path attacker can harvest outer client hellos, and then construct new
hellos using the PSK extension and arbitrary guessed SNI values,
replaying them to the target server. If the server rejects the PSK, the
handshake will continue, but if the PSK is accepted, the binder check
will fail.
Thanks to Coia Prant (github.com/rbqvq) for
reporting this issue.
Fixes CVE-2026-42505
Fixes #79282
Change-Id: Ib3a3c948106a57c1b07b9e61a58cbf757848be18
Files:
- M src/crypto/tls/handshake_messages.go
- M src/crypto/tls/handshake_messages_test.go
- M src/crypto/tls/tls_test.go
Change size: M
Delta: 3 files changed, 99 insertions(+), 5 deletions(-)
Branch: refs/heads/master