Re: MIME sniffing

Keith Moore <moore@network-heretics.com> Wed, 02 December 2020 13:13 UTC

Return-Path: <moore@network-heretics.com>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E53253A13CD for <ietf@ietfa.amsl.com>; Wed, 2 Dec 2020 05:13:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.918
X-Spam-Level:
X-Spam-Status: No, score=-1.918 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_NONE=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=messagingengine.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 nDMImpv6aDfC for <ietf@ietfa.amsl.com>; Wed, 2 Dec 2020 05:13:24 -0800 (PST)
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5B8BE3A13C6 for <ietf@ietf.org>; Wed, 2 Dec 2020 05:13:24 -0800 (PST)
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 83FD95C018C for <ietf@ietf.org>; Wed, 2 Dec 2020 08:13:23 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 02 Dec 2020 08:13:23 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=MH0ILi 3JTz/aX9O8/hrnDKOaYnv/UgkrRijWfIQx7AI=; b=kAmpGNHo1WNwjr46fMUXwq pPz3hXjgBT/lH2uGxc5DUM/GgEAf2XTkdKzBzhoLFIaQhQ5uOt9RwIyVO1pd/PH1 ctTnyG85WnOfhQhPDf7BhH5OGQhdnzkQfybKSy6zrABdHxksQm/qjcc3oEuf+Pkt 1vhyianAFQ9QuTE0/0wtaauMovW7W2YWWqk9dHdhk8Dv73bMLTDdgP1eiSl0MhMU HbUVyl+DKitws51G2+JzAplrLj5FwIuWrzzh1lVzTAuC+WolQOGHMch7TJqPF9mb k/sx+i0W+6/+7ail4oomKlRVBAuiBJtb5r7rmz/W91ZoiT+id22slRQAztdcF/4Q ==
X-ME-Sender: <xms:85LHX5pgaSN-n5d7VS1EZ_tA5_3woiFZrLvlH1aMqhfYlxHbZwUjqw> <xme:85LHX7qZlqLEzM0rjnGaiqIh1eSGfIllDgEtkeYoiU_Z-xqaTndNMO2EaONmft1j0 U9cExYHXJsQrw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeigedgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgesrgdtre ertdefjeenucfhrhhomhepmfgvihhthhcuofhoohhrvgcuoehmohhorhgvsehnvghtfiho rhhkqdhhvghrvghtihgtshdrtghomheqnecuggftrfgrthhtvghrnhepveefteduieegtd elvddvtddufeejjeffvdefteejieeulefgtdfggedtffektedunecukfhppedutdekrddv vddurddukedtrdduheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehmohhorhgvsehnvghtfihorhhkqdhhvghrvghtihgtshdrtghomh
X-ME-Proxy: <xmx:85LHX2PoFINtyIQQfwxiArYN6VPkfSQYvHKuJ5O03cnDW6RkCnedRA> <xmx:85LHX05Q1_JiC2A7wPc5-DRZ4zRfj5M3ck90zfTZja1zNfAeKgoUDA> <xmx:85LHX44J_7-W9dBAAhLpz6K8pKNyKyzNprzoTAP-L4LuRfuxVwI6ww> <xmx:85LHX_LxrSHweR5SQmEL0_pTEuKqX0vsAOMxH8t4XvuE0uYF0Z7ZBw>
Received: from [192.168.1.85] (108-221-180-15.lightspeed.knvltn.sbcglobal.net [108.221.180.15]) by mail.messagingengine.com (Postfix) with ESMTPA id DDC5624005C for <ietf@ietf.org>; Wed, 2 Dec 2020 08:13:22 -0500 (EST)
Subject: Re: MIME sniffing
To: ietf@ietf.org
References: <AA1E0A8464BC45FB4FA44684@PSB> <2D63A357-E253-462C-864D-2BF96D3E2E18@tzi.org> <F4CD3381C5D0E24C91FC4A91@PSB> <20201201030759.GJ5364@mit.edu> <5720F933910C959C9278EBCF@PSB> <CAMm+LwgpcLxSdzgfJy2441hjNWP=Fui-f8Oq1bZB=2QdZeOUNQ@mail.gmail.com> <160f4b58-cec3-d742-508b-d8bcb9017da4@network-heretics.com> <7e48ca6a-eae9-252b-f79b-f9b5ea57cf2a@gmx.de>
From: Keith Moore <moore@network-heretics.com>
Message-ID: <ceedfb6c-257d-a8a3-91ff-34f5fd7e9d3c@network-heretics.com>
Date: Wed, 02 Dec 2020 08:13:22 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <7e48ca6a-eae9-252b-f79b-f9b5ea57cf2a@gmx.de>
Content-Type: multipart/alternative; boundary="------------0455E7580E5ED04713690947"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf/wscZwskXJ2crZgsj2wsEiH6eYo0>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 02 Dec 2020 13:13:26 -0000

On 12/2/20 7:24 AM, Julian Reschke wrote:

>> The fundamental problem there is that the server doesn't have a reliable
>> way of knowing the content-type.   The server can't reliably tell it
>
> In which case it shouldn't send any. 

And the client ends up needing MIME sniffing code (and probably using 
it) anyway.

MIME email has the same problem; arguably the web inherited this problem 
from email.

Keith