🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87183

Re: Preferred use of port 563 instead of STARTTLS

#87183
From: Michael Baeuerle
Date: Sat, 07 Nov 2015 19:43
71 lines
4927 bytes
Julien ÉLIE wrote:
> 
> [STARTTLS vs Implicit TLS]
> I think it was the plan, but...
> 
>    [draft-ietf-uta-email-deep-01]
>    One author of this document was also the author of RFC 2595 that
>    became the standard for TLS usage with POP and IMAP, and the other
>    author was perhaps the first to propose that idea.  In hindsight both
>    authors now believe that that approach was a mistake.  At this point
>    the authors believe that while anything that makes it easier to
>    deploy TLS is good, the desirable end state is that these protocols
>    always use TLS, leaving no need for a separate port for cleartext
>    operation except to support legacy clients while they continue to be
>    used.  The separate port model for TLS is inherently simpler to
>    implement, debug and deploy.  It also enables a "generic TLS load-
>    balancer" that accepts secure client connections for arbitrary foo-
>    over-TLS protocols and forwards them to a server that may or may not
>    support TLS.  Such load-balancers cause many problems because they
>    violate the end-to-end principle and the server loses the ability to
>    log security-relevant information about the client unless the
>    protocol is designed to forward that information (as this
>    specification does for the cipher suite).  However, they can result
>    in TLS deployment where it would not otherwise happen which is a
>    sufficiently important goal that it overrides the problems.

Thanks for explaining the background.

>    Although STARTTLS appears only slightly more complex than separate-
>    port TLS, we again learned the lesson that complexity is the enemy of
>    security in the form of the STARTTLS command injection vulnerability
>    (CERT vulnerability ID #555316).  Although there's nothing inherently
>    wrong with STARTTLS, the fact it resulted in a common implementation
>    error (made independently by multiple implementers) suggests it is a
>    less secure architecture than Implicit TLS.

Looks like STARTTLS is sometimes associated with the "opportunistic
encryption" approach by mistake.

>    Section 7 of RFC 2595 critiques the separate-port approach to TLS.
>    The first bullet was a correct critique.  There are proposals in the
>    http community to address that, and use of SRV records as described
>    in RFC 6186 resolves that critique for email.  The second bullet is
>    correct as well, but not very important because useful deployment of
>    security layers other than TLS in email is small enough to be
>    effectively irrelevant.  The third bullet is incorrect because it
>    misses the desirable option of "use and latch-on TLS if available".
>    The fourth bullet may be correct, but is not a problem yet with
>    current port consumption rates.  The fundamental error was
>    prioritizing a perceived better design based on a mostly valid
>    critique over real-world deployability.  But getting security and
>    confidentiality facilities actually deployed is so important it
>    should trump design purity considerations.

Agreed. But it is still way too hard to implement TLS in a secure way.
flnews use OpenSSL for TLS and I think the word "nightmare" matches to
describe how bad the documentation is, how hard it is to not overlook
some important setup option and to implement things like certificate
revocation checks.

The source code of the flnews OpenSSL wrapper is currently approx.
80KiByte (!) in size - only to get an encrypted connection and
the server-to-client authentication. What should (IMHO) be a thin
glue layer is currently larger than the NNTP module.
-- 
> It works.
Die Beschreibung hört sich aber eher nach "It würgs" an...

                                               Günter Frenz in ger.ct

Technical Details
Message-ID: <AABWPkgFjhwAAAOH.A1.flnews@WStation1.micha.freeshell.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <n17qd5$cor$1@news.trigofacile.com> <AABWPOGmmkcAABCC.A1.flnews@WStation3.stz-e.de> <n1l0b7$2ue$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <AABWPkgFjhwAAAOH.A1.flnews@WStation1.micha.freeshell.org>
Subject: Re: Preferred use of port 563 instead of STARTTLS
Date: Sat, 7 Nov 2015 19:43:58 -0000
From: Michael Baeuerle <michael.baeuerle@gmx.net>
References: <n17qd5$cor$1@news.trigofacile.com> <AABWPOGmmkcAABCC.A1.flnews@WStation3.stz-e.de> <n1l0b7$2ue$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Lines: 69
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 8LfqexMt5DqXNmaWLvRQHgBYBPhz0VpdkkDAuOjjTBCVpMPU5k
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:8FJN0SHM6EuxF57OZRzUxmk31sA= sha1:DV4uVOcclTGRAP0fY0FOA4gABOk=
Injection-Date: Sat, 7 Nov 2015 19:43:58 -0000
User-Agent: flnews/0.12 (for GNU/Linux)
X-Received-Body-CRC: 2275002995
X-Received-Bytes: 4786