CVE-2020-13777: TLS 1.3 session resumption works without master key, allowing MITM
GnuTLS servers accepted TLS 1.3 session tickets without access to the secret key used to generate them, so a server with bogus credentials could resume a session a client had established with a legitimate server. An attacker positioned to redirect connections could therefore impersonate the server to a resuming client without the client noticing.
gitlab.com
Published on gitlab.com
GnuTLS servers are able to use tickets issued by each other without access to the secret key as generated by gnutlssessionticketkeygenerate(). This allows a MITM server without valid credentials to resume sessions with a client that first established an initial connection with a server with valid credentials.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the TLS 1.3 ticket handling did not bind the ticket to the server's secret key, so any GnuTLS server could accept tickets issued by another.
Impact
A man-in-the-middle server without valid credentials could resume sessions with a client, and the reporter assumes but has not tested that early data could also be passively decrypted; TLS 1.2 resumption failed as expected.
What the attacker needed
Victim connects to attacker-controlled server; client caches resumption data; TLS 1.3 in use
How it was found
- Start a GnuTLS server with valid credentials.
- Connect with a client and save the session resumption data.
- Stop that server.
- Start a server with bogus credentials on the same address and port.
- Reconnect using the saved resumption data and observe that resumption succeeds.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When you reconnect to a website, your browser can skip the full setup by reusing a saved 'ticket' from the earlier visit. That ticket is meant to be protected by a secret only the real server knows. Here, any server could accept the ticket without that secret, so someone sitting between you and the site could pretend to be the site and you would not be warned.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.