[Bimi] Re: Possible security flaw in BIMI spec / interaction of BIMI-supporting MUA with non-BIMI-supporting MTA
Mauro De Gennaro <mauro@stalw.art> Fri, 24 May 2024 20:57 UTC
Return-Path: <mauro@stalw.art>
X-Original-To: bimi@ietfa.amsl.com
Delivered-To: bimi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ACEE9C14F6EE for <bimi@ietfa.amsl.com>; Fri, 24 May 2024 13:57:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.097
X-Spam-Level:
X-Spam-Status: No, score=-7.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=stalw.art header.b="ESCwnQyB"; dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=stalw.art header.b="Xnf6GBka"
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qq0G0VCLG1J0 for <bimi@ietfa.amsl.com>; Fri, 24 May 2024 13:57:47 -0700 (PDT)
Received: from mail.stalw.art (mail.stalw.art [135.181.195.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3E9FDC14F697 for <bimi@ietf.org>; Fri, 24 May 2024 13:57:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; s=202404r; d=stalw.art; c=relaxed/relaxed; h=To:Date:Subject:Message-Id:From; t=1716584259; bh=m1kclb1iZ/9vH+jKEKiXopM uUjYtehSpScwCK3Ao/qE=; b=ESCwnQyBoJfZUWc56jrr3suz5sVgew0CibTFYgN09SYARV6e/A OATOcTnEbwqQdDZ8bvumbEC99Ui7Ooe56fD3y9raag14BwijSfhOfgP0ocxSSaFFAwzhRcl+aSq u2Izz+VV0ZPmlpvqmaUJeY/986S88tkblx4P3ffq4Fgu1V+J3uNHJUnE5ko/qo0Q2ngfOs2oYVK 4XJkB96DAzqGyCIyzVu5oK2v8N+Z+1E70TI/Mg8IsGmr/RWZUpPoAb8/0FQcXY/sU7FEVacNGJe QbG5VevAWty2h9/csh5CUg1kX27yjdl4u97WWyom31CctO9Y+lR/MG/5gkLnd9WWAmA==;
DKIM-Signature: v=1; a=ed25519-sha256; s=202404e; d=stalw.art; c=relaxed/relaxed; h=To:Date:Subject:Message-Id:From; t=1716584259; bh=m1kclb1iZ/9vH+jKEKiXopM uUjYtehSpScwCK3Ao/qE=; b=Xnf6GBkaRsi3RRdbVBbJIV51KUNV2PySA5KQdASr36eeTgjPO0 jfBSBwUF5ezuGZIzQb1V9h5St/CxfeLJK2DA==;
From: Mauro De Gennaro <mauro@stalw.art>
Message-Id: <0FCC91A7-4A38-496A-860A-A1F9ED15D080@stalw.art>
Content-Type: multipart/alternative; boundary="Apple-Mail=_7070E572-04DB-4297-92F9-DCD88CDC7581"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.1\))
Date: Fri, 24 May 2024 22:57:28 +0200
In-Reply-To: <MN2PR11MB43512306CDBE744A244319F8F7F52@MN2PR11MB4351.namprd11.prod.outlook.com>
To: "Brotman, Alex" <Alex_Brotman=40comcast.com@dmarc.ietf.org>
References: <20240505132144.1b62ff64@computer> <f47170e3-66b2-4ccf-8dd7-179d84696d86@zone.ee> <ed09648a-18dc-41f5-98be-2cf6ee88d49a@dcrocker.net> <3C8290F9-3ED4-4CB3-97AE-DF55E29CE2C1@stalw.art> <e3217dce-0bec-48fe-b549-e29e73d6ea45@dcrocker.net> <9F3A05A8-2BDE-4894-855B-75FED09686EB@stalw.art> <MN2PR11MB43512306CDBE744A244319F8F7F52@MN2PR11MB4351.namprd11.prod.outlook.com>
X-Mailer: Apple Mail (2.3731.700.6.1.1)
Message-ID-Hash: AVDC76HR556UV3YAUAVP3JH2FEZCH2IK
X-Message-ID-Hash: AVDC76HR556UV3YAUAVP3JH2FEZCH2IK
X-MailFrom: mauro@stalw.art
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "dcrocker@bbiw.net" <dcrocker@bbiw.net>, "bimi@ietf.org" <bimi@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Bimi] Re: Possible security flaw in BIMI spec / interaction of BIMI-supporting MUA with non-BIMI-supporting MTA
List-Id: Brand Indicators for Message Identification <bimi.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/bimi/b2SsnEBUKANbf4OZ1s6ULfUU6h0>
List-Archive: <https://mailarchive.ietf.org/arch/browse/bimi>
List-Help: <mailto:bimi-request@ietf.org?subject=help>
List-Owner: <mailto:bimi-owner@ietf.org>
List-Post: <mailto:bimi@ietf.org>
List-Subscribe: <mailto:bimi-join@ietf.org>
List-Unsubscribe: <mailto:bimi-leave@ietf.org>
Alex, Sorry I missed the original post. I have just reviewed your draft and it closely aligns with my thoughts. However, I am particularly concerned about the injection of headers into an unaware MBP, as briefly discussed in sections 6.1.1 and 6.1.2. To address this issue, I propose an additional mechanism that enables the MUA to determine which BIMI-Receiver-Signature headers are trustworthy. This mechanism would involve validating BIMI-Receiver-Signature headers only if they are signed by a domain that either: - Appears in the IMAP greeting banner (or the JMAP session object). or, - Corresponds with the server name or matches one of the Subject Alternative Names in the certificate used to establish the TLS connection with the mail store. The latter option offers a more robust solution, ensuring a higher degree of security and reliability in the validation process. Best, Mauro De Gennaro Stalwart Labs Ltd. > On 24 May 2024, at 21:13, Brotman, Alex <Alex_Brotman=40comcast.com@dmarc.ietf.org> wrote: > > Mauro, > > A couple of weeks ago, I had posted a document to this list that may help with that scenario: > > https://mailarchive.ietf.org/arch/msg/bimi/n_n4N1ueDH8v2yqGzvW-o6_lXBk/ > > The rough gist is that the MTA adds a few more headers, and signs them all. There are mechanism for revocation as well. > > -- > Alex Brotman > Sr. Engineer, Anti-Abuse & Messaging Policy > Comcast > > From: Mauro De Gennaro <mauro=40stalw.art@dmarc.ietf.org> > Sent: Friday, May 24, 2024 2:24 PM > To: dcrocker@bbiw.net > Cc: bimi@ietf.org > Subject: [Bimi] Re: Possible security flaw in BIMI spec / interaction of BIMI-supporting MUA with non-BIMI-supporting MTA > > Hi Dave, > Some don't. Some do. The limitation is not inherent in the nature of MUAs. > > > Thanks for your feedback but I believe the opposite, that these limitations are indeed inherent. > > Even if a MUA were to attempt to replicate all BIMI validations independently, it inherently lacks access to crucial data such as the SMTP envelope or the IP address of the sending server. These elements are essential for assessing DMARC alignment, which is central to the BIMI validation process as we know. > > While it's true that this information might be available in the Authentication-Results headers, we circle back to the same foundational issue: it requires MUAs to implicitly trust the MTA. Unless you operate within an integrated environment like Gmail or Fastmail, where the MUA and MTA are closely coupled, this trust model poses significant challenges. > > The nature of most MUAs, being independent from the MTAs, restricts them from performing standalone, reliable BIMI validations without either implicit trust in the MTA or a robust mechanism to verify the trustworthiness of the information provided by the MTA. This was the rationale behind my suggestion to use ARC sealing as a method to pass down trust, ensuring both the authenticity and integrity of BIMI headers directly from the server. > > > Best, > Mauro De Gennaro > Stalwart Labs Ltd.
- Re: [Bimi] Possible security flaw in BIMI spec / … Stephen Farrell
- [Bimi] Re: Possible security flaw in BIMI spec / … John C Klensin
- [Bimi] Possible security flaw in BIMI spec / inte… Hanno Böck
- Re: [Bimi] Possible security flaw in BIMI spec / … Dave Crocker
- Re: [Bimi] Possible security flaw in BIMI spec / … J N
- Re: [Bimi] Possible security flaw in BIMI spec / … Dave Crocker
- Re: [Bimi] Possible security flaw in BIMI spec / … Dave Crocker
- Re: [Bimi] Possible security flaw in BIMI spec / … Brotman, Alex
- Re: [Bimi] Possible security flaw in BIMI spec / … Dave Crocker
- Re: [Bimi] Possible security flaw in BIMI spec / … Taavi Eomäe
- Re: [Bimi] Possible security flaw in BIMI spec / … Brotman, Alex
- [Bimi] Re: Possible security flaw in BIMI spec / … Dave Crocker
- [Bimi] Re: Possible security flaw in BIMI spec / … Taavi Eomäe
- [Bimi] Re: Possible security flaw in BIMI spec / … John C Klensin
- [Bimi] Re: Possible security flaw in BIMI spec / … Stephen Farrell
- [Bimi] Re: Possible security flaw in BIMI spec / … Taavi Eomäe
- [Bimi] Re: Possible security flaw in BIMI spec / … Murray S. Kucherawy
- [Bimi] Intentions for an IETF BIMI Working Group Seth Blank
- [Bimi] Re: Possible security flaw in BIMI spec / … Murray S. Kucherawy
- [Bimi] Re: Possible security flaw in BIMI spec / … Dave Crocker
- [Bimi] Re: Possible security flaw in BIMI spec / … Dave Crocker
- [Bimi] Re: Possible security flaw in BIMI spec / … Dave Crocker
- [Bimi] Re: Possible security flaw in BIMI spec / … Dave Crocker
- [Bimi] Re: Possible security flaw in BIMI spec / … Mauro De Gennaro
- [Bimi] Re: Possible security flaw in BIMI spec / … Dave Crocker
- [Bimi] Re: Possible security flaw in BIMI spec / … Mauro De Gennaro
- [Bimi] Re: Possible security flaw in BIMI spec / … Brotman, Alex
- [Bimi] Re: Possible security flaw in BIMI spec / … John C Klensin
- [Bimi] Re: Possible security flaw in BIMI spec / … Dave Crocker
- [Bimi] Re: Possible security flaw in BIMI spec / … Mauro De Gennaro
- [Bimi] Re: Possible security flaw in BIMI spec / … Mauro De Gennaro
- [Bimi] Re: Possible security flaw in BIMI spec / … Dave Crocker
- [Bimi] Re: Intentions for an IETF BIMI Working Gr… Murray S. Kucherawy
- [Bimi] Re: Intentions for an IETF BIMI Working Gr… John C Klensin
- [Bimi] Re: Intentions for an IETF BIMI Working Gr… Murray S. Kucherawy
- [Bimi] Re: Intentions for an IETF BIMI Working Gr… Wei Chuang
- [Bimi] Re: Intentions for an IETF BIMI Working Gr… Tim Hollebeek