Re: [ietf-smtp] SMTP Over TLS on Port 26 - Implicit TLS Proposal

Mark Andrews <marka@isc.org> Wed, 09 January 2019 02:26 UTC

Return-Path: <marka@isc.org>
X-Original-To: ietf-smtp@ietfa.amsl.com
Delivered-To: ietf-smtp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 04A7B12008A for <ietf-smtp@ietfa.amsl.com>; Tue, 8 Jan 2019 18:26:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.901
X-Spam-Level:
X-Spam-Status: No, score=-6.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NEv-Ge0cGAaZ for <ietf-smtp@ietfa.amsl.com>; Tue, 8 Jan 2019 18:26:41 -0800 (PST)
Received: from mx.pao1.isc.org (mx.pao1.isc.org [IPv6:2001:4f8:0:2::2b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BC27E12D7EA for <ietf-smtp@ietf.org>; Tue, 8 Jan 2019 18:26:41 -0800 (PST)
Received: from zmx1.isc.org (zmx1.isc.org [149.20.0.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.pao1.isc.org (Postfix) with ESMTPS id 9A84A3AB063; Wed, 9 Jan 2019 02:26:41 +0000 (UTC)
Received: from zmx1.isc.org (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTPS id 3F439160060; Wed, 9 Jan 2019 02:26:41 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTP id 1F8EB160073; Wed, 9 Jan 2019 02:26:41 +0000 (UTC)
Received: from zmx1.isc.org ([127.0.0.1]) by localhost (zmx1.isc.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id im8LPwd4P-Ua; Wed, 9 Jan 2019 02:26:41 +0000 (UTC)
Received: from [172.30.42.67] (c27-253-115-14.carlnfd2.nsw.optusnet.com.au [27.253.115.14]) by zmx1.isc.org (Postfix) with ESMTPSA id 3DF72160060; Wed, 9 Jan 2019 02:26:40 +0000 (UTC)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
From: Mark Andrews <marka@isc.org>
In-Reply-To: <CAOEezJQJcK3chwi48h9jr1kMR22hP2m54dSThhz5BMYuTwm2vQ@mail.gmail.com>
Date: Wed, 09 Jan 2019 13:26:37 +1100
Cc: ietf-smtp@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <7651BA36-CD21-4DA6-BF09-737729409A1B@isc.org>
References: <CAOEezJQL_2_YUDJ3UW6MJ2pDtBzEwKDMV3a5PAvDqwmg5Gd6Xw@mail.gmail.com> <BEE50621-A616-40F5-BBCA-415AFD130A90@isc.org> <CAOEezJQaUfiASLT=zqh8EGRhMF+3Cd9M8DTPeVLPTQko0g4JEQ@mail.gmail.com> <15B60912-429F-4876-A087-220B5FC41B46@isc.org> <CAOEezJTwVyW=q3Vt1mLnG1pbd6FPEfTLT5_jQq4t4Eb-ij2hpg@mail.gmail.com> <B353E91E-30BE-41CA-A956-A456F91B3A2B@isc.org> <CAOEezJQT6kZJ2GJmYE_+awR+gJvLZ9npZiVtsAH9YK4rjjf+Aw@mail.gmail.com> <CAOEezJQJcK3chwi48h9jr1kMR22hP2m54dSThhz5BMYuTwm2vQ@mail.gmail.com>
To: Viruthagiri Thirumavalavan <giri@dombox.org>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/KT_KgZm6i1Ryn1TODqHidQRasKg>
Subject: Re: [ietf-smtp] SMTP Over TLS on Port 26 - Implicit TLS Proposal
X-BeenThere: ietf-smtp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion of issues related to Simple Mail Transfer Protocol \(SMTP\) \[RFC 821, RFC 2821, RFC 5321\]" <ietf-smtp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf-smtp>, <mailto:ietf-smtp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf-smtp/>
List-Post: <mailto:ietf-smtp@ietf.org>
List-Help: <mailto:ietf-smtp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-smtp>, <mailto:ietf-smtp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Jan 2019 02:26:44 -0000


> On 9 Jan 2019, at 1:19 pm, Viruthagiri Thirumavalavan <giri@dombox.org> wrote:
> 
> The simple answer is WE DO NOT *NEED* MTA-STS.  Additionally it can be spoofed
> without DNSSEC.  The only thing it does is reduce the number of players involved
> if you are not self hosting.
> 
> I get it. You are a fan of DNSSEC. But you should know that I'm not against DNSSEC (or even STS for that matter). If you think like that, then you have not read my proposal. 
> 
> My proposal introduces SMTPS for better security and signal the port via a prefix. But authentication steps should be given to either DNSSEC or STS.
> 
> Also note, my proposal only trying to INTRODUCE the SMTPS via port 26. It doesn't force anyone to use SMTPS.
> 
> If you use the prefix in your mx host like smtps-mx1.example.com, you are saying that your server supports both port 26 and 25. Clients should drop the connection if the certificate is invalid in either port.

Which will be defeated by a MiTM attack unless DNSSEC is used.  Strip the “smtps-“ prefixes from the responses and dummy up non “smtps-" records.

> If you use the prefix in your mx host like starttls-mx1.example.com, you are saying that your server supports only port 25. Clients should drop the connection if the STARTTLS command not found in the EHLO response or valid certificate not found.

Again it can be defeated by a MiTM attack.  Same method.

> On Wed, Jan 9, 2019 at 7:38 AM Viruthagiri Thirumavalavan <giri@dombox..org> wrote:
> Oh? In what way is it "pretty good"?  Yes, SMTPS would hide the initial 220
> message, the EHLO and the response - but there's no info in those two that
> aren't already known after the 3-packet handshake and a few DNS PTR queries
> or obtained by other means - you're going to have  a really hard time claiming
> that things like 8bitmime being advertised in the EHLO reply constitute
> sensitive info.
> 
> Not every PTR queries resolves to the correct domain.
> 
> 74.125.129.26 => jm-in-f26.1e100.net (A google IP address, but point to a different domain owned by google)
> 
> I would be ok with indirectly someone getting the info rather than directly providing it.  
> 
> 
> On Wed, Jan 9, 2019 at 7:27 AM Mark Andrews <marka@isc.org> wrote:
> 
> 
> > On 9 Jan 2019, at 12:42 pm, Viruthagiri Thirumavalavan <giri@dombox.org> wrote:
> > 
> > You just invalidated all my arguments even though I provided sources. 
> > 
> > So let me try in a different way.
> > 
> > If you think DNSSEC is so simple and not controversial, why do we need MTA-STS?
> 
> The simple answer is WE DO NOT *NEED* MTA-STS.  Additionally it can be spoofed
> without DNSSEC.  The only thing it does is reduce the number of players involved
> if you are not self hosting.
> 
> > On Wed, Jan 9, 2019, 7:02 AM Mark Andrews <marka@isc.org wrote:
> > 
> > 
> > > On 9 Jan 2019, at 11:30 am, Viruthagiri Thirumavalavan <giri@dombox.org> wrote:
> > > 
> > > @Mark Andrews
> > > 
> > > First, When I mentioned "The former requires a HTTPS server and the latter requires DNSSEC.", I didn't mean DNSSEC is HARD to implement. I meant DNSSEC is CONTROVERSIAL
> > > 
> > > Read some of these articles.
> > > 
> > > https://sockpuppet.org/blog/2015/01/15/against-dnssec/
> > 
> > A whole heap of half truths and poor analysis.  If that was presented as a peer reviewed article it would not be published.  You have been had if you believe that blog post.
> > 
> > > https://www.theregister.co.uk/2016/02/23/dnssec_more_problem_than_solution/
> > 
> > “Oh Dear, Big Responses, The World is Going To End!!!!!”.  This is click bait journalism.  We have standard track RFCs which provide the equivalent of TCP’s three way handshake for DNS/UDP.  This has been deployed for 4+ years now along with other measures for clients that don’t implement the RFC.  8% of the TLD servers currently implement that RFC.  It is on by default in all current implementations of BIND (both client and server side) and with the exception of a handful of (non RFC compliant) servers it causes no issues.
> > 
> > > Second, unless top domains like Google, Facebook etc. start to use DNSSEC, you are gonna see questions like this.
> > > 
> > > https://security.stackexchange.com/questions/21121/if-dnssec-is-so-useful-why-is-its-deployment-non-existent-for-top-domains
> > 
> > 28171 of 895949 zones which gave good answers from the alexa to 1M are signed based on the run I started 2018-12-23T00:00:05Z.  The EDNS compliance testing I do also reports whether the returned result is signed (ok,yes) or not (ok).
> > 
> > % awk '$13 ~ /signed=ok,yes/ {yes[$1] = 1} $13 ~ /signed=ok/ { ok[$1] = 1} END { print length ( yes ) , length ( ok ) } ' reports/alexa1m.2018-12-23T00:00:05Z
> > 28171 895949
> > %
> > 
> > > So if you wanna convince others to use DNSSEC, you should start with big brothers like Google. 
> > > 
> > > Third, Yes DNSSEC is HARD. Maybe not for you. [You seem like a person who knows your stuff]
> > 
> > No it isn’t.  In Unbound it is a checkbox where the server generates the DNSKEYs and choosing the algorithm.  Are you saying ticking a checkbox is HARD?  There TLD’s with +70% of the delegated zones signed.  You don’t get to that level with “DNSSEC is HARD”.  The only reason DNSSEC is not deployed more is COMPLACENCY and FEAR OF SOMETHING NEW.
> > 
> > Neither if these reasons == HARD.
> > 
> > > We are talking about mail servers here. Many of these users are non-tech savvy users who depends on third-party mail hosting services like G-Suite.
> > 
> > Which almost certainly are using STARTTLS today and maybe using DANE today as well on the outbound side.
> > 
> > > As an engineer you can do those stuffs easily. But a doctor can't do that. Just because he can't configure DNSSEC doesn't mean he don't deserve security 
> > 
> > And he can get DNSSEC today.  There are DNS hosting providers that will do DNSSEC.  Almost all the
> > TLDs support DNSSEC.  There are DNS hosting providers that turn DNSSEC ON BY DEFAULT.  Arguing that you can’t deploy a DNSSEC signed zone today even as a lay person doesn’t bear up to scrutiny.
> > 
> > Mark
> > -- 
> > Mark Andrews, ISC
> > 1 Seymour St., Dundas Valley, NSW 2117, Australia
> > PHONE: +61 2 9871 4742              INTERNET: marka@isc.org
> > 
> 
> -- 
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742              INTERNET: marka@isc.org
> 
> 
> 
> -- 
> Best Regards,
> 
> Viruthagiri Thirumavalavan
> Dombox, Inc.
> 
> 
> -- 
> Best Regards,
> 
> Viruthagiri Thirumavalavan
> Dombox, Inc.
> _______________________________________________
> ietf-smtp mailing list
> ietf-smtp@ietf.org
> https://www.ietf.org/mailman/listinfo/ietf-smtp

-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742              INTERNET: marka@isc.org