Skip to content
Crypto Write-up Intermediate

Security downgrade with IMAP STARTTLS leads to information leakage

When Thunderbird was set to use STARTTLS for an IMAP server, a server replying with a PREAUTH response caused Thunderbird to carry on over an unencrypted connection. Email data could then be sent without protection.

mozilla.org

Published on mozilla.org

Cesar Pereida Garcia and the Network and Information Security Group (NISEC) at Tampere University

The author, on mozilla.org

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 Thunderbird treated the server's PREAUTH response as a reason to skip the STARTTLS upgrade instead of refusing to continue unencrypted.

Impact

Email data could be sent without encryption, leaking it to anyone able to observe the connection.

What the attacker needed

Thunderbird set to use STARTTLS for IMAP; server sends a PREAUTH response

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.

STARTTLS is a way for an email program to ask a mail server to upgrade a plain connection to an encrypted one. Here, a malicious or misbehaving server answered in a way that made Thunderbird skip the upgrade and keep talking in plain text, so anyone watching the network could read the email data.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.