Re: [dmarc-ietf] Spirit of RFC8601 section 5 for invalid A-R headers

Brandon Long <blong@google.com> Fri, 03 April 2020 19:59 UTC

Return-Path: <blong@google.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 7A2C53A0746 for <dmarc@ietfa.amsl.com>; Fri, 3 Apr 2020 12:59:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.599
X-Spam-Level:
X-Spam-Status: No, score=-17.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 qVmiVrLA77_X for <dmarc@ietfa.amsl.com>; Fri, 3 Apr 2020 12:59:45 -0700 (PDT)
Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) (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 CBB043A074B for <dmarc@ietf.org>; Fri, 3 Apr 2020 12:59:45 -0700 (PDT)
Received: by mail-vs1-xe2e.google.com with SMTP id w14so5757042vsf.7 for <dmarc@ietf.org>; Fri, 03 Apr 2020 12:59:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=itVulPW9TYmryHuB9mdJN9iRK8tXVl3FR/vPOQBo3AQ=; b=tvpO98yt10Q3p53ofUD7dIglRmi9GvjtunnP0pLIjbOkut4+EAEUp9X97d/1FSSCnI QaZSS/P+u90BOeM6DAU9O0gHFSI8PizuBcM8s9vqPd7zCMKwA+8xnUerHrmkLnlArxhl Z1+TATSy+UcD8QZl73cjkeF5R2+54vfui6E+NoQzS8xeS9x7R7uyA4QPfaocMhH7C1Eb /OMjTvvNLLmPbGGwUvMma7TSrRwfFSeotxiy1jWC7129+5oJb5aofUuLm/tempBgoUHk nHWDWAPYcBroEX0Zxhe9aTfh+VeOi5VpM26r/1TdOh5HjpBHyKdC1bjeL8oPot3ax8YR jtqw==
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=itVulPW9TYmryHuB9mdJN9iRK8tXVl3FR/vPOQBo3AQ=; b=ZTdz91qO/KQDInr4iQNhgNo6O4RLseAWyxjmB6QEh1+ihIrHXVdYyVp3rJAMLrIVsV rMG3GkznkNnSOcdC9howa/KagtaMhtwUXqAr6fVZiHBZsx0LgcI1UE1Rzl4FrPJAW5Nj 5paXLfba6y98H3tgdCxtizOjbA1lGeHz+CR3WjjOlkHOVtK+7pa0vKTJ8u0hg9ftRvaD INvP88K/r4fmT81FBEvDRFk1K5NX7nz7zTLQvZJ1T4N5HmWdNTwh7OcMHWxWfaBFPo/T d40qOEb33bguZugzuZpYsMSvAlnJzGjDOve7RC32nRToyV/khG97Y/JTeIuLscBRVqei DBPw==
X-Gm-Message-State: AGi0PuYA0Z7EfEc/dN+BqRhbASXaPw7DWdwAUUzdgwrPh7QjZDZiZNky AkgSH7pjztCZb71oGOMY6T81YrL0Yn/F30Xi84hOtdY=
X-Google-Smtp-Source: APiQypKo9pzQAJgeRh/it6pnNUzfaa38XxcN3rBXiu5EGd0ucHUEBQT0oDut7ydqzqldPO/IRdr8Gmcu0G+YDmMNr/I=
X-Received: by 2002:a67:2ed2:: with SMTP id u201mr8353700vsu.209.1585943984266; Fri, 03 Apr 2020 12:59:44 -0700 (PDT)
MIME-Version: 1.0
References: <e2bd3117-2217-1206-0c0c-f06a35d49dca@arcsin.de>
In-Reply-To: <e2bd3117-2217-1206-0c0c-f06a35d49dca@arcsin.de>
From: Brandon Long <blong@google.com>
Date: Fri, 03 Apr 2020 12:59:31 -0700
Message-ID: <CABa8R6sbHLfkzHD4gaPBxQbgNy57J1eLXt2sPyAfaTYAY3tG-Q@mail.gmail.com>
To: Damian Lukowski <rfc@arcsin.de>
Cc: IETF DMARC WG <dmarc@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000d13f0c05a2685bf5"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/6QcERvEsuaoUL3GG0YO3Z3ejkJw>
Subject: Re: [dmarc-ietf] Spirit of RFC8601 section 5 for invalid A-R headers
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: Fri, 03 Apr 2020 19:59:48 -0000

I can see there being an issue here if the inbound smtp server that would
normally remove existing AuthRes headers for its admd before adding its own
uses a different algorithm than any downstream systems used.

In particular, theoretically the inbound smtp server may use software from
a different source than the spam system or the clients which consume this
header.

In practice, I don't know how common it is for clients to consume this
header.

Also, any mis-handling should be treated as a bug.

The system should remove the quotes when comparing, and should also do any
decoding to get the admds into the same format.

Brandon

On Fri, Apr 3, 2020 at 9:10 AM Damian Lukowski <rfc@arcsin.de> wrote:

> RFC8601 sec 5 states:
>
> any MTA conforming to
> this specification MUST delete any discovered instance of this header
> field that claims, by virtue of its authentication service
> identifier, to have been added within its trust boundary but that did
> not come directly from another trusted MTA.
>
> In my opinion, a header that does not conform to the specified
> authres-header-field in the RFC, is not an Authentication-Results header,
> has no authentication service identifier, and as such cannot claim anything
> in the context of the RFC. So suppose there is a mail system with an
> UTF-8-non-ASCII authserv-id. When creating its own A-R headers, it puts the
> authserv-id into quotes, because it cannot use it without them, as
> discussed in the separate thread.
>
> What should the system do with an A-R header of an inbound message that
> incorporates the system's authentication service identifier without using
> quotes, but that otherwise would be syntactically correct?
>
> Again in my opinion, the system needs to keep the header, but what is the
> RFCs intention?
> _______________________________________________
> dmarc mailing list
> dmarc@ietf.org
> https://www.ietf.org/mailman/listinfo/dmarc
>