Re: [lamps] S/MIME fix

Jim Schaad <ietf@augustcellars.com> Wed, 16 May 2018 17:36 UTC

Return-Path: <ietf@augustcellars.com>
X-Original-To: spasm@ietfa.amsl.com
Delivered-To: spasm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8687712D96D for <spasm@ietfa.amsl.com>; Wed, 16 May 2018 10:36:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.89
X-Spam-Level:
X-Spam-Status: No, score=-1.89 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01] 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 rGOMtklmQi8H for <spasm@ietfa.amsl.com>; Wed, 16 May 2018 10:36:29 -0700 (PDT)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 17B7F12D95B for <SPASM@ietf.org>; Wed, 16 May 2018 10:36:29 -0700 (PDT)
Received: from Jude (73.180.8.170) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 16 May 2018 10:33:23 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: 'Alexey Melnikov' <alexey.melnikov@isode.com>, 'Phillip Hallam-Baker' <phill@hallambaker.com>, 'SPASM' <SPASM@ietf.org>
References: <CAMm+Lwj=VTBHYxH-iOaqEUHxALpBfSXWG3p0+xxUnY+o4CmGvA@mail.gmail.com> <559ab3c7-ee5f-22b9-ef02-c091765011d2@isode.com>
In-Reply-To: <559ab3c7-ee5f-22b9-ef02-c091765011d2@isode.com>
Date: Wed, 16 May 2018 10:35:59 -0700
Message-ID: <04ca01d3ed3c$5c158050$144080f0$@augustcellars.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_04CB_01D3ED01.AFB7B9C0"
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQG9wg/QzC0+NttcLYwxpzBnDU/XXAKqIHHopEmjJHA=
Content-Language: en-us
X-Originating-IP: [73.180.8.170]
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/nBUAZ8LWbWDMeb5kdqF9n8DzFQs>
Subject: Re: [lamps] S/MIME fix
X-BeenThere: spasm@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "This is a venue for discussion of doing Some Pkix And SMime \(spasm\) work." <spasm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spasm>, <mailto:spasm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spasm/>
List-Post: <mailto:spasm@ietf.org>
List-Help: <mailto:spasm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spasm>, <mailto:spasm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 May 2018 17:36:33 -0000

I will note that unless multipart/mixed has some special text associated with it.  Text/html is defined by RFC 1866 to only hold a single HTML document.  Thus building an HTML document from multiple parts is not according to Hoyle.

 

Jim

 

 

From: Spasm <spasm-bounces@ietf.org> On Behalf Of Alexey Melnikov
Sent: Wednesday, May 16, 2018 7:49 AM
To: Phillip Hallam-Baker <phill@hallambaker.com>; SPASM <SPASM@ietf.org>
Subject: Re: [lamps] S/MIME fix

 

Hi Philip,

On 16/05/2018 15:28, Phillip Hallam-Baker wrote:

Looking at eFail, surely the simplest fix is to require that an HTML message body be presented in a single CMS envelope presented in a single MIME part?


I am not sure what you mean here. A CMS envelope can contain multipart/mixed within it, which is a perfectly valid use case (i.e. if one wants to send some encrypted text together with some encrypted attachments).
If you are talking about preventing the following construct:


content-type: multipart/mixed; boundary=.f8231d7f-681b-442c-97cc-e6c5375d059d

This is a multipart message in MIME format. 

--.f8231d7f-681b-442c-97cc-e6c5375d059d
content-type: text/html
 
....some partial HTML...
--.f8231d7f-681b-442c-97cc-e6c5375d059d
content-disposition: inline; filename=smime.p7m
Content-Transfer-Encoding: base64
content-type: application/pkcs7-mime; name=smime.p7m; smime-type=enveloped-data
 
....encrypted HTML...
--.f8231d7f-681b-442c-97cc-e6c5375d059d
content-type: text/html
 
....some partial HTML...
--.f8231d7f-681b-442c-97cc-e6c5375d059d--


i.e. a multipart/mixed that contains a mixture of text/html and application/pkcs7-mime, then I might agree with you. But this is not really an S/MIME feature, it is a generic MIME feature. So maybe this WG should write a document on best S/MIME implementation practices.




This would simplify the code substantially. While it is conceivable someone has worked out a way to make use of this mis-feature, I for one cannot imagine why Outlook, Thunderbird or the like would ever do anything of the sort.

 

 

Separately, we have interest in CAA for S/MIME. Surely we should do ACME for S/MIME as well.


Not surprisingly, I agree. See draft-ietf-acme-email-smime-02 

If we are going to do that, surely we should have a discussion of what it would take to make end to end security the default for SMTP.

 

I am not necessarily thinking of this as a LAMPS thing because we also need to get CAs, probably CABForum involved and maybe the OpenPGP folk.


Best Regards,
Alexey