Re: [dmarc-ietf] third party authorization, not, was non-mailing list

"Murray S. Kucherawy" <superuser@gmail.com> Mon, 31 August 2020 05:54 UTC

Return-Path: <superuser@gmail.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 6100C3A0F20 for <dmarc@ietfa.amsl.com>; Sun, 30 Aug 2020 22:54:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham 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 Vub9EA3iA2Tl for <dmarc@ietfa.amsl.com>; Sun, 30 Aug 2020 22:54:16 -0700 (PDT)
Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) (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 BC8B53A0F1F for <dmarc@ietf.org>; Sun, 30 Aug 2020 22:54:16 -0700 (PDT)
Received: by mail-vs1-xe32.google.com with SMTP id q67so566285vsd.5 for <dmarc@ietf.org>; Sun, 30 Aug 2020 22:54:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=S5BKijYqEsUlnIrru6/iHWomYfSv+b4iVFsqUY8riwY=; b=lzwr4v/1bp3jFpDafm80q96QqFs871yni2Bayus+hL7cGdzRyK+OkLlcVWimT6napG ZKFYSWfiZ3Mx2heTRUPFIFdEpKbCgZGIu6uEReN0VJB8i9LbjQIQT/ORmaAYdrDpU8j2 0Bc21A0zYRAOe63Xa9pdK1HxKLIBIBMvzOe+qd4KIMAIhRbbUCP0D4xx1ofVHpVEF0qy ueuIyGPHEEo9/7RssIrzpwOuhJvxOQNZOVjccT83Qi5ERVBDkZo8Fi6Tt4A/DAt9EDYr n2PJvUYK/jzuOtwA/lq0YTYulzS/m6/6Qarv4GalSPBPByOBUnhDbihO3E3jdScdFZJU N+qQ==
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=S5BKijYqEsUlnIrru6/iHWomYfSv+b4iVFsqUY8riwY=; b=DiJeo9ew0xbeQjFtg13O7kkvW95r0xJ6UkvUdPK0bvP6ldPdHNiQodzr3tQBYVM3Xc VA/hLiM03LkbQZ3eI7yZO3h79jaKaT8gHDnqAhkjV1TFm3Ib8FtsbNgqf6dZlIpPgbee 4qU31Eqydh5lzMMYm5MlJqiPPKAD2FlTifzM9VLEqroUxZBvs4geYAj3Vwd12TzIdvj/ 7a5VOYHxIFmHk7IGOpzwa2cueS+WK0NGwbwXVToVi+iPrc21m1u0wynjZtwiRXoISiug 8UKccAhid2YCIk1TDHlQeDMJYK2DyLHsCzJSsDcB6+28Nvj64IwV/23nx1ha4v6dgbK8 JyFg==
X-Gm-Message-State: AOAM532s1uxz71+VC97aM7oFAYsUBnRtYfQ7GPacSfPow9Ei7Sa2UJMa x47x7nZM3zBS0jLYu6G4UKH5bvZNiWoJI8WfWw6WVDdjXeYoTA==
X-Google-Smtp-Source: ABdhPJyX/BobdqTRKXoeuyfUhUxgVQMcdD4sDPsngi2UgyxQ1UPIkCJxNFwgV0txqH1N15YE+1ZVUPmICeu5WX1AIq0=
X-Received: by 2002:a67:e1ce:: with SMTP id p14mr12144vsl.24.1598853255605; Sun, 30 Aug 2020 22:54:15 -0700 (PDT)
MIME-Version: 1.0
References: <7e71edd41d84410380879149d0962096@com> <f12f2a98-f21a-d0eb-0fdf-5c84d6e5d8d9@tana.it>
In-Reply-To: <f12f2a98-f21a-d0eb-0fdf-5c84d6e5d8d9@tana.it>
From: "Murray S. Kucherawy" <superuser@gmail.com>
Date: Sun, 30 Aug 2020 22:54:02 -0700
Message-ID: <CAL0qLwYuSD8ncf+HXU2B0z1NtrM7cT33vdVh2sUXJ-=RmLFb4w@mail.gmail.com>
To: Alessandro Vesely <vesely@tana.it>
Cc: IETF DMARC WG <dmarc@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000005930f605ae260877"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/lTC9glMtda3CD_49jYCfkP23oko>
Subject: Re: [dmarc-ietf] third party authorization, not, was non-mailing list
X-BeenThere: dmarc@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 31 Aug 2020 05:54:18 -0000

On Sun, Aug 30, 2020 at 9:11 AM Alessandro Vesely <vesely@tana.it> wrote:

> On Sun 30/Aug/2020 14:07:33 +0200 Douglas E. Foster wrote:
> > Since we are designing a system that allows a mediator to alter Subject
> and
> > Body, it should be no surprise that the conditional signature has the
> potential
> > for re-use.   A well behaved mediator must be assumed before any such
> trust
> > delegation is granted.
> >
> > I see no way to ensure that the conditional signature is single-use. As
> long as
> > all of the signature's hashed content can be replicated onto another
> message,
> > the signature can be reused.
>
> Yes.  That's true for any DKIM signature, in particular if using l=, which
> allows to append varying content.
>

Indeed, RFC 6376 discusses replay attacks in a number of places.  It would
be nice if we could reduce that, but I suggest that's not a roadblock to
this working group's progress since it's an acknowledged property of DKIM
already.

> DKIM uses the body content in two different hash calculations.  This
> severely
> > limits the ability of an attacker to find and exploit a hash collision.
>  The
> > conditional  signatures seem unlikely to have that strength.
>
> Even if the hash covers few data, finding a collision is not any easier.
>
> According to dkim-conditional, an attacker would need a private key of the
> domain pointed by !fs=.  That limits exploits substantially.  Using
> vanilla
> weak signatures (e.g. to be compatible with v=1 verifiers) allows
> replaying at
> recipient's discretion, a state of affairs loosely comparable to p=none.
>

The draft suggests use of "x=" as a way to limit exposure.  If you do that,
then an attacker would need to be able to generate mail through your signer
with an "!fs=" tag identifying a domain they control, and exploit the
replay before the time in the "x=" tag arrives.  Sure, it's time-limited,
but it only takes seconds for such an attack to succeed, and automation of
such an attack is easy.

If you attach a "!fs=" for any old domain, then the exposure is wide; if
you can somehow constrain the domains, the attack surface is considerably
smaller.  In either case, reputation of the target domain might help,
assuming that's a service to which the author domain's signer has access.

For the cases of employers that want their staff to participate in, say,
IETF lists, they might be willing to institute a program of registering
domains where lists exist, thus limiting the attack surface.  So you
register "ietf.org" with your IT department, and they start issuing weak
signatures on mail going to that domain for six months.  As the deadline
approaches, people are warned to re-register, else the registration expires
and the conditional signatures stop; destructive results resume.
Fraudulent registrations can be traced back to who made them.

But we still have the Yahoo/GMail sized use cases to consider.  I still
don't think any kind of registration system could be reasonably expected to
scale.  Auto-detection, maybe, but that's got to be prone to false
negatives (and destructive results) while the data warm up about a new
destination.

-MSK