Mozilla Thunderbird SMTP down-negotiation weakness

Thomas Henlich <thomas@henlich.de>

Summary

Mozilla Thunderbird SMTP down-negotiation behaviour allows a man-in-the-middle (MITM) attack to bypass TLS initialization and/or downgrade CRAM-MD5 to PLAIN authentication, leading to exposure of authentication information. Failure in CRAM-MD5 authentication also leads to exposure of authentication information to a passive eavesdropper.

Background

Mozilla Thunderbird is a mail user agent with support for SMTP PLAIN and CRAM-MD5 authentication and for secure SMTP over TLS.

CRAM-MD5 is a method for secure user authentication which avoids plaintext transmission of sensitive information (account/password). TLS is a security protocol to protect transmitted data against eavesdropping.

Affected versions

Description

The SMTP negotiation in Mozilla Thunderbird is implemented in a way that if a secure data exchange (CRAM-MD5 or STARTTLS) between client and server can not be established, an insecure method is used instead. The user is not notified of this and can not cancel this insecure data exchange. An intermediate attacker can utilize this behaviour to gain sensitive account/password information. As CRAM-MD5 and TLS were designed to avoid eavesdropping attacks, currently the implementation of Mozilla's SMTP client fails to meet these design goals. Several methods of attack are possible:

A1. Passive eavesdropping attack on CRAM-MD5 authentication failure

Scenario

Sequence of attack

A2. One-way active MITM attack on CRAM-MD5 capability advertisement

Scenario

Sequence of attack

A3. One-way active MITM attack on CRAM-MD5 authentication attempt

Scenario

Sequence of attack

A4. One-way active MITM attack on STARTTLS capability advertisement

Scenario

Sequence of attack

Resolution

For A1-A3 no resolution is known. For A4, set user preference to enforce TLS.

Proof of concept

A TCP proxy application demonstrating these weaknesses is available from http://www.henlich.de/moz-smtp/stcppipe-x.zip

Timeline


Impressum & Datenschutz