Lune

USENIX Security2021顶会

Why TLS is better without STARTTLS: A Security Analysis of STARTTLS in the Email Context

Damian Poddebniak, Fabian Ising, Hanno Böck, Sebastian Schinzel

摘要

TLS is one of today's most widely used and best-analyzed encryption technologies. However, for historical reasons, TLS for email protocols is often not used directly but negotiated via STARTTLS. This additional negotiation adds complexity and was prone to security vulnerabilities such as naïve STARTTLS stripping or command injection attacks in the past.

We perform the first structured analysis of STARTTLS in SMTP, POP3, and IMAP and introduce EAST, a semiautomatic testing toolkit with more than 100 test cases covering a wide range of variants of STARTTLS stripping, command and response injections, tampering attacks, and UI spoofing attacks for email protocols. Our analysis focuses on the confidentiality and integrity of email submission (email client to SMTP server) and email retrieval (email client to POP3 or IMAP server). While some of our findings are also relevant for email transport (from one SMTP server to another), the security implications in email submission and retrieval are more critical because these connections involve not only individual email messages but also user credentials that allow access to a user's email archive.

We used EAST to analyze 28 email clients and 23 servers. In total, we reported over 40 STARTTLS issues, some of which allow mailbox spoofing, credential stealing, and even the hosting of HTTPS with a cross-protocol attack on IMAP. We conducted an Internet-wide scan for the particularly dangerous command injection attack and found that 320.000 email servers (2% of all email servers) are affected. Surprisingly, several clients were vulnerable to STARTTLS stripping attacks. In total, only 3 out of 28 clients did not show any STARTTLS-specific security issues. Even though the command injection attack received multiple CVEs in the past, EAST detected eight new instances of this problem. In total, only 7 out of 23 tested servers were never affected by this issue. We conclude that STARTTLS is error-prone to implement, under-specified in the standards, and should be avoided.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 12 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Unfiltered: Measuring Cloud-based Email Filtering Bypasses 引用了 Not that Simple: Email Delivery in the 21st Century
  • Unfiltered: Measuring Cloud-based Email Filtering Bypasses 引用了 TLS in the Wild: An Internet-wide Analysis of TLS-based Protocols for Electronic Communication
  • LanDscAPe: Exploring LDAP weaknesses and data leaks at Internet scale 引用了 TLS in the Wild: An Internet-wide Analysis of TLS-based Protocols for Electronic Communication
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper12

  1. Not that Simple: Email Delivery in the 21st CenturyFlorian Holzbauer, Johanna Ullrich, Martina Lindorfer, Tobias FiebigUSENIX ATC 2022 · 18 次引用
  2. FakeBehalf: Imperceptible Email Spoofing Attacks against the Delegation Mechanism in Email SystemsJinrui Ma, Lutong Chen, Kaiping Xue, Bo Luo 等USENIX Security 2024 · 7 次引用
  3. LanDscAPe: Exploring LDAP weaknesses and data leaks at Internet scaleJonas Kaspereit, Gurur Öndarö, Gustavo Luvizotto Cesar, Simon Ebbers 等USENIX Security 2024 · 5 次引用
  4. SeQR: A User-Friendly and Secure-by-Design Configurator for Enterprise Wi-FiS. Mahmudul Hasan, Che Wei Tu, Md. Endadul Hoque, Omar Chowdhury 等CHI 2025 · 2 次引用
  5. Unfiltered: Measuring Cloud-based Email Filtering BypassesSumanth Rao, Enze Liu, Grant Ho, Geoffrey M. Voelker 等WWW 2024 · 1 次引用

它引用的 Paper2

  1. Tranco: A Research-Oriented Top Sites Ranking Hardened Against ManipulationVictor Le Pochat, Tom van Goethem, Samaneh Tajalizadehkhoob, Maciej Korczynski 等NDSS 2019 · 826 次引用
  2. TLS in the Wild: An Internet-wide Analysis of TLS-based Protocols for Electronic CommunicationRalph Holz, Johanna Amann, Olivier Mehani, Mohamed Ali Kâafar 等NDSS 2016 · 117 次引用

相关 Paper

  1. A Multifaceted Study on the Use of TLS and Auto-detect in Email EcosystemsKa Fun Tang, Che Wei Tu, Sui Ling Angela Mak, Sze Yiu ChauNDSS 2025
  2. ALPACA: Application Layer Protocol Confusion - Analyzing and Mitigating Cracks in TLS AuthenticationMarcus Brinkmann, Christian Dresen, Robert Merget, Damian Poddebniak 等USENIX Security 2021 · 20 次引用
  3. Opossum Attack: Application Layer Desynchronization using Opportunistic TLSRobert Merget, Nurullah Erinola, Marcel Maehren, Lukas Knittel 等USENIX Security 2026
  4. Extended Hell(o): A Comprehensive Large-Scale Study on Email Confidentiality and Integrity Mechanisms in the WildBirk Blechschmidt, Ben StockUSENIX Security 2023
  5. Automatic Insecurity: Exploring Email Auto-configuration in the WildShushang Wen, Yiming Zhang, Yuxiang Shen, Bingyu Li 等NDSS 2025
黄昏的海面,两侧是细线勾勒的悬崖