Re: [dmarc-ietf] WGLC ARC-16 concern on Section 5.1.2 - cv=fail should sign greedily

Seth Blank <seth@sethblank.com> Fri, 27 July 2018 15:35 UTC

Return-Path: <seth@sethblank.com>
X-Original-To: dmarc@ietfa.amsl.com
Delivered-To: dmarc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C83E1130F8D for <dmarc@ietfa.amsl.com>; Fri, 27 Jul 2018 08:35:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sethblank-com.20150623.gappssmtp.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 7uWuEEG8jBE6 for <dmarc@ietfa.amsl.com>; Fri, 27 Jul 2018 08:35:24 -0700 (PDT)
Received: from mail-oi0-x234.google.com (mail-oi0-x234.google.com [IPv6:2607:f8b0:4003:c06::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 EC216130E74 for <dmarc@ietf.org>; Fri, 27 Jul 2018 08:35:23 -0700 (PDT)
Received: by mail-oi0-x234.google.com with SMTP id k12-v6so9765504oiw.8 for <dmarc@ietf.org>; Fri, 27 Jul 2018 08:35:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sethblank-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0N4UiLVNuTXeqHzmtZg0dVPO0ElxZvBm+KwSg5gDxHo=; b=iqjuI8/tujO4IQyggDe4czJ35tnEUHRtFvA4WKMdWCZ4flMOX8d65hnpKO1IgBcqOr ysmewjy0lkMV7TFEHQOl7t21Zc6n34iTAHHYiclfJv84Z7hdGZnID8ikciYKyiic6Wwp vhXQV8NiDHvH2jJ29OXyILpIVWkSXARiLuAewZVKaGjCKrctdohUjjUC07l5EL3QNVco 7oT4FBrURcACOoKig7TtVwA6SINJOxpV/wRC8bTpoyMp9zAXDAwQDnwuJoO81HLirLqF ZCTXvNZaznUDNoPLa3+uO4dngIUdLPhYUBA3Zpaib6vGln8zY8huMaukHJ/d6d+p93wd WcLA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0N4UiLVNuTXeqHzmtZg0dVPO0ElxZvBm+KwSg5gDxHo=; b=js4RsTqkoUbUyl1hxjFKhW1deNU3FOm+QNiUXZUlASzYeY/ZG6T8Ma0wjEljgoINEV zK0LWAE+/uOTYVDW9UGJSsi4dmj+xpBZ+qX8q5681Cm0YhHJkHTuRbWW7olVUyypL2mh /+RovtHLQ++9TvZH4CK4Kh2pippbkagNxblTghfwGd/WgB1ufrxb4OlUmuUUifNYXY5d 91bE9+mTkFcB9w9iccyFwKmf9HCMmfoCx0xN/iLBPqwbpB+5m2IttVfD04ZVo/Mj7Iht yOtF3DOsf45FGCstL5TyEfxk4go8LoqIftyPsaLyYLzR7nnxQ3VKl96fWjzGsdm222XI vYHQ==
X-Gm-Message-State: AOUpUlGYzFGKZ724909p7C7MlkBErCr4H4HElvnUrmPwDq5KoRHSjwa5 EM2ExlxHpPLvLUNMbeMjWx7ZZHCF8MO2DZIJnPzIFA==
X-Google-Smtp-Source: AAOMgpf0hWhxjzX2Bk73KtI2l8Bddd6qVv/fPO8Z+aIqRTnryQ4rfeu/FUki2AeTRqJ3PQEyGHQj70zDlOFmySjJABI=
X-Received: by 2002:aca:d9c5:: with SMTP id q188-v6mr6579560oig.239.1532705723036; Fri, 27 Jul 2018 08:35:23 -0700 (PDT)
MIME-Version: 1.0
References: <CAD2i3WMMJPaZYonS-qcz8pwOKYmS2Xe+8WBZPuAqjiGoYePzSg@mail.gmail.com> <CAL0qLwapyX3U=0OqQWzx+dDELn3W0v=N_HyzDnSw49oWQ+SE5Q@mail.gmail.com>
In-Reply-To: <CAL0qLwapyX3U=0OqQWzx+dDELn3W0v=N_HyzDnSw49oWQ+SE5Q@mail.gmail.com>
From: Seth Blank <seth@sethblank.com>
Date: Fri, 27 Jul 2018 08:35:11 -0700
Message-ID: <CAD2i3WN90JSS8pzgRxrbokuKmhZaLUrimYRWqkZwzVDBxTczng@mail.gmail.com>
To: "Murray S. Kucherawy" <superuser@gmail.com>
Cc: IETF DMARC WG <dmarc@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000002acc310571fcdc33"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/6WuXMQlJY55hSEgsyVEUTqsTbSg>
Subject: Re: [dmarc-ietf] WGLC ARC-16 concern on Section 5.1.2 - cv=fail should sign greedily
X-BeenThere: dmarc@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: "Domain-based Message Authentication, Reporting, and Compliance \(DMARC\)" <dmarc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dmarc>, <mailto:dmarc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dmarc/>
List-Post: <mailto:dmarc@ietf.org>
List-Help: <mailto:dmarc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dmarc>, <mailto:dmarc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Jul 2018 15:35:27 -0000

On Fri, Jul 27, 2018 at 08:24 Murray S. Kucherawy <superuser@gmail.com>
wrote:

>  covering the ARC header fields in the failing chain, all the data in the
>> failed chain can be modified as it is not covered under the latest
>> signature.
>>
>
> I think it's weird that the body of content that gets hashed by the sealer
> in this case varies from what would normally happen.  A verifier might have
> to try two different verification algorithms if, for example, it doesn't
> determine that the chain is structurally invalid.
>
> If I receive a chain that was apparently valid at the last sealer and
> determine that it is no longer so, could we simply decline to re-seal it at
> all?
>
> -MSK
>
The verification algorithm is straightforward. If you receive a chain that
ends with cv=fail stop your evaluation, you’re done. There’s no separate
validation path here.

Additionally, I worry about the security implications of passing along a
known bad chain without terminating it. Right now, worst case, one
intermediary needs to evaluate and terminate a maliciously formed chain. If
it’s simply not Sealed, then everyone in the path must perform the
evaluation. I don’t know what new vectors this opens up, but I could
foresee some cascading issues.