Re: [lamps] S/MIME fix

Phillip Hallam-Baker <phill@hallambaker.com> Fri, 18 May 2018 02:04 UTC

Return-Path: <hallam@gmail.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 A5F91126D0C for <spasm@ietfa.amsl.com>; Thu, 17 May 2018 19:04:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.393
X-Spam-Level:
X-Spam-Status: No, score=-1.393 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 exuVd6RVsR2Y for <spasm@ietfa.amsl.com>; Thu, 17 May 2018 19:04:28 -0700 (PDT)
Received: from mail-ot0-x234.google.com (mail-ot0-x234.google.com [IPv6:2607:f8b0:4003:c0f::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0C62A126BF3 for <SPASM@ietf.org>; Thu, 17 May 2018 19:04:28 -0700 (PDT)
Received: by mail-ot0-x234.google.com with SMTP id 15-v6so7326520otn.12 for <SPASM@ietf.org>; Thu, 17 May 2018 19:04:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=2iXCjvTtbg0blSWBEu3iy11HkV4czIvWEuX7Ud0Zzto=; b=asbRN9P/mJsAVPdPLY+TPLOJuIzRDko8D1Q8Jz6MIUXHpZWiXuy11V7LxhAD8RCL7u LIyqHF0onQ6XAyF+qSi4FL54Ko5bABzS4jXVHxnCq7NxpQXdqAWXut++wAprHRTq2oLC fa0WYhUBB6y5aqNFGGE82HpgnhIBeLvqWVTW7fv7hOnhNaZB+7oGlnh5Rr2yQ0bcjFA+ srezIq+hJXA8WSW2wI5AJAELKDvIw+TxH5rYrWOxMgZOjuXWp09731358Selycp8peb/ GX+5hDHwOpUWc6a80MENn67b2blHqcFHYFspli4hL1gnuh3HX/8KobmLHQw/ZWCZ9ISU E0WA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=2iXCjvTtbg0blSWBEu3iy11HkV4czIvWEuX7Ud0Zzto=; b=cBZ5f99TJaxjm+sNYwKSigcPe4VXrCMzs3C1ZCQJnTpbJrYs2l3VG/XFGiT3tEj13Y +W++oNHHC9MSUmLG2uG9XuHrsXn9hlHzf+89lpCESrS2Q8QCQGqu18lH29/YWAb5dl13 3orrSqJc9JGhWz38R9N28jW8/71GYd58XCIA59WkuLkpcaTx6cxF8+2tVekmNO7PvZZL RM5KDBBYX3FUZvoGoLgaknVN/ZLWVvk/W48rxFlBK2qSur+lr7JRRL8w/toMSkFsf95j v+V19mTrxwysPsk2MHAOWlNajH/SdkCvAXNVRIb0+s56CUuAO+YT+m59VygxPLqQRmke q3Ww==
X-Gm-Message-State: ALKqPwcDEXN2msmmObT5rE5R0Ua7UPFg6pq7FVwbssT1HTm80vGf5nR9 50XnaBlmJEFX1ASNm4ElkTzYa/UEh89fzm/nr6o=
X-Google-Smtp-Source: AB8JxZqk8TA0JBl7Z6WBYeVmRGY9j3gSxBWKU50f+eWNQhZognIo9Kc1I5zo9YQIHxVaDZhSAOCMRMB0NtEWCNBWYts=
X-Received: by 2002:a9d:2511:: with SMTP id k17-v6mr4849658otb.129.1526609067359; Thu, 17 May 2018 19:04:27 -0700 (PDT)
MIME-Version: 1.0
Sender: hallam@gmail.com
Received: by 2002:a9d:23:0:0:0:0:0 with HTTP; Thu, 17 May 2018 19:04:26 -0700 (PDT)
In-Reply-To: <C7E25B09-D462-4620-97E1-F44F16BD20B7@vigilsec.com>
References: <CAMm+Lwj=VTBHYxH-iOaqEUHxALpBfSXWG3p0+xxUnY+o4CmGvA@mail.gmail.com> <559ab3c7-ee5f-22b9-ef02-c091765011d2@isode.com> <04ca01d3ed3c$5c158050$144080f0$@augustcellars.com> <951633c7-0cad-58e7-236c-bb82e44c9e9f@isode.com> <C7E25B09-D462-4620-97E1-F44F16BD20B7@vigilsec.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
Date: Thu, 17 May 2018 22:04:26 -0400
X-Google-Sender-Auth: -bBUgm9cRI_vjZXIGG-R9AAYHmU
Message-ID: <CAMm+LwgANADzhJkdcoB+CfCsh9VgUKswoo4dawRed9GRYo8roQ@mail.gmail.com>
To: Russ Housley <housley@vigilsec.com>
Cc: SPASM <SPASM@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000002bc41d056c715f46"
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/UKrVSYhCJVjxHAe1fnCJjj4T1Z8>
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: Fri, 18 May 2018 02:04:30 -0000

On Thu, May 17, 2018 at 9:42 AM, Russ Housley <housley@vigilsec.com> wrote:

> On May 16, 2018, at 1:51 PM, Alexey Melnikov <alexey.melnikov@isode.com>
> wrote:
>
> On 16/05/2018 18:35, Jim Schaad wrote:
>
> 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.
>
> Yes, but people do this anyway, as separate HTML body parts are frequently
> valid HTML documents. So building from pieces works most(*) of the time.
>
> (*) spam and phishing nonwithstanding.
>
>
> I do not see a way to totally thwart eFail unless each portion of a
> multi-part is processed in its own sandbox.
>

​I concur with Russ on this. Though defining what a sandbox is may be a
challenge.​

​While I don't doubt that spammers are abusing multipart/related, is there
a circumstance in which an end user is likely to generate an email with
text/html split across several multipart/related blocks? I think that is
really rather unlikely.


The gadget attack is less of a concern to me since encryption never assures
authentication, thats why you need authenticated encryption or a MAC.