[Bimi] What are "CGI scripts in Indicator payload" ?
Hanno Böck <hanno@hboeck.de> Wed, 08 May 2024 19:47 UTC
Return-Path: <hanno@hboeck.de>
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 2BAFDC14CF1E for <bimi@ietfa.amsl.com>; Wed, 8 May 2024 12:47:01 -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, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=hboeck.de
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 4zkvo2NL5Khy for <bimi@ietfa.amsl.com>; Wed, 8 May 2024 12:46:56 -0700 (PDT)
Received: from zucker.schokokeks.org (zucker.schokokeks.org [IPv6:2a01:4f8:121:1ffe:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 67C49C14CF0C for <bimi@ietf.org>; Wed, 8 May 2024 12:46:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hboeck.de; s=key1; t=1715197611; bh=Z9fPSuWvmaUL/fgn9g0k2ORYPJe3Y3Vc5NiKvQJXc2w=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; b=TNyZHQdNgYGeXtTrkupqvjD2HRJtt5n9KJlU/NJv9Y9om2WyJUKhslFqJTW3xCiMZ JY1Mscvt99oj4er/jhWe9RncCgA+Zqy2B1CDgKIt8Jg88/57Bo2JBEKT8NY1aM11j8 Z8WzPZ+UgNscWr/EGi0ZdljImnF1ahxnIZhSayQxHNZHYc9GAncAEhsw9nJBYWbp+6 sQqm5WluOGdKilCzVxCX6x0kKPLUeHTRzvARCq/FNVb0UDrCu2NbkV8yn5THPvjsBI PR4VDmL+YizZ2AKTqaYoDDjFdbihctmB6zUcP/nCqGIi2A9liPPztyWMbPfS5ZgVVS h9vtSHO90v65g==
Original-Subject: What are "CGI scripts in Indicator payload" ?
Author: Hanno Böck <hanno@hboeck.de>
Date: Wed, 08 May 2024 21:46:49 +0200
From: Hanno Böck <hanno@hboeck.de>
To: bimi@ietf.org
Message-ID: <20240508214649.67841261@computer>
X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: OI6IWPFT2T5EKHNYOGZTVHWCXZHPSCZQ
X-Message-ID-Hash: OI6IWPFT2T5EKHNYOGZTVHWCXZHPSCZQ
X-MailFrom: hanno@hboeck.de
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
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Bimi] What are "CGI scripts in Indicator payload" ?
List-Id: Brand Indicators for Message Identification <bimi.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/bimi/6qR1lLwcz9jMZzs4oHPAHLQ6glU>
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>
Hi, The BIMI draft, to be found at https://www.ietf.org/archive/id/draft-brand-indicators-for-message-identification-05.html contains the following paragraph in its "Security Considerations": "8.7. CGI scripts in Indicator payload MTAs and MVAs should aggressively police Indicators to ensure they are the Indicators they claim to be, are within appropriate size limits, and pass other sanity checks. Additionally, MTAs might cache good Indicators and serve them directly to their MUAs, which would in practice bypass any malicious dynamic payload set to trigger against an end user but not an MTA." I wanted to ask if anyone familiar with the spec can explain this. Particularly, I would like to understand what "CGI scripts in Indicator payloads" even means. I mean... I know what CGI scripts are. But I don't see how they are related to anything that is written here, or how they are even related at all to the BIMI spec. "payload in indicator" sounds like whoever wrote this wanted to address injection attacks via the indicators. As those are SVG files, a very plausible and likely risk are XSS attacks. And yes, the spec very likely should contain recommendations how to address them. (Point 4.2.2 also seems to contain some remarks addressing that, but again, it also contains a reference to the mysterious "elsewhere", where it seems all the important information about BIMI security can be found.) However... that would have nothing to do with CGI scripts. So... Can someone please explain to me what "CGI scripts in Indicator payload" means, and what exact scenario this part of the spec is trying to address? -- Hanno Böck - Independent security researcher https://itsec.hboeck.de/
- [Bimi] What are "CGI scripts in Indicator payload… Hanno Böck
- [Bimi] Re: What are "CGI scripts in Indicator pay… Brotman, Alex