(lack of) smtp transport layer security
The platform sends email over plain SMTP without STARTTLS even when the receiving mail server supports it, allowing eavesdropping on the path between the sending system and the receiving MX.
- Triaged in 28 hours
- Disclosed after 13 months
Hi,
It appears that email messages from the platform are sent via plain SMTP even though the receiving MX supports ESMTPS (the use of ESMTP when STARTTLS is also successfully negotiated to provide a strong transport encryption layer).
This allows for eavesdropping along the path between the originating system (such as o1.email.hackerone.com) and the receiving MX.
To reproduce:
- Have the platform deliver a message to a recipient whose MX supports STARTTLS
- Inspect the email headers, in most cases the first 'Received:' header is relevant
- Observe the transaction id and look for 'SMTP id' (versus 'ESMTPS id')
- Observe lack of version/cipher/bits information that would be shown if TLS was used
Fictional example headers provided below;
- current
Received: from o1.email.hackerone.com (o1.email.hackerone.com. [167.89.13.71]) by mx.receiving.tld with SMTP id e3si1568039obp.178.2014.04.08.05.59.10 for [email protected]; Tue, 08 Apr 2014 05:59:11 -0700 (PDT)
- suggested
Received: from o1.email.hackerone.com (o1.email.hackerone.com. [167.89.13.71]) by mx.receiving.tld with ESMTPS id e3si1568039obp.178.2014.04.08.05.59.10 for [email protected] (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 05:59:11 -0700 (PDT)
The perhaps slightly obvious fix seems to be to support ESMTPS by allowing STARTTLS to be negotiated by the sending system(s). Note that blunt enforcement will cause delivery problems as it depends on EMSTPS being supported on (any) receiving MX.
HTH.
-leander
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the sending mail system is not configured to negotiate STARTTLS with the receiving MX, so it falls back to plain SMTP.
Impact
An attacker positioned on the network path could eavesdrop on email messages sent by the platform.
What the attacker needed
Attacker on the network path; receiving MX supports STARTTLS
The fix
The sending system should be configured to negotiate STARTTLS so that ESMTPS is used when the receiving MX supports it, but enforcement should not be blunt because delivery depends on the receiving MX supporting it.
How it was found
- Have the platform deliver a message to a recipient whose MX supports STARTTLS
- Inspect the email headers, in most cases the first 'Received:' header is relevant
- Observe the transaction id and look for 'SMTP id' (versus 'ESMTPS id')
- Observe lack of version/cipher/bits information that would be shown if TLS was used
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 report has not been written yet. The Original tab links to the source.
When email is sent, it can travel over an encrypted connection (like a sealed envelope) or unencrypted (like a postcard). This report says the platform used the unencrypted option even when the receiving server could handle encryption, so anyone watching the network path could read the messages.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.