Re: content inspection in absence of media type, was: [apps-discuss] APPSDIR review of draft-ietf-httpbis-p2-semantics-24

Mark Nottingham <mnot@mnot.net> Thu, 31 October 2013 03:31 UTC

Return-Path: <mnot@mnot.net>
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 D764021E80BB; Wed, 30 Oct 2013 20:31:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.694
X-Spam-Level:
X-Spam-Status: No, score=-104.694 tagged_above=-999 required=5 tests=[AWL=-2.095, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4HrO5PMwto2O; Wed, 30 Oct 2013 20:31:41 -0700 (PDT)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by ietfa.amsl.com (Postfix) with ESMTP id 65E0921F9DE9; Wed, 30 Oct 2013 20:31:41 -0700 (PDT)
Received: from [192.168.1.64] (unknown [118.209.167.85]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 39FA922E2CA; Wed, 30 Oct 2013 23:31:31 -0400 (EDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
Subject: Re: content inspection in absence of media type, was: [apps-discuss] APPSDIR review of draft-ietf-httpbis-p2-semantics-24
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <6.2.5.6.2.20131030060359.0cb29068@elandnews.com>
Date: Thu, 31 Oct 2013 14:31:28 +1100
Content-Transfer-Encoding: quoted-printable
Message-Id: <B6CADE9A-2472-44B5-96E4-18B571D48CD6@mnot.net>
References: <6.2.5.6.2.20131027115007.07e32210@elandnews.com> <526E8B9E.8030006@gmx.de> <6.2.5.6.2.20131029050405.0caf8b40@elandnews.com> <526FC24D.7060704@gmx.de> <6.2.5.6.2.20131030060359.0cb29068@elandnews.com>
To: S Moonesamy <sm+ietf@elandsys.com>
X-Mailer: Apple Mail (2.1510)
Cc: Julian Reschke <julian.reschke@gmx.de>, draft-ietf-httpbis-p2-semantics.all@tools.ietf.org, ietf-http-wg@w3.org, apps-discuss@ietf.org, ietf@ietf.org
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.12
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: <http://www.ietf.org/mail-archive/web/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: Thu, 31 Oct 2013 03:31:47 -0000

SM,

Consensus around this text was particularly hard-won; unless there is a very good reason to make a change, I'd rather not risk falling into that rat-hole again.

Regards,


On 31/10/2013, at 2:49 AM, S Moonesamy <sm+ietf@elandsys.com> wrote:

> Hi Julian,
> At 07:12 29-10-2013, Julian Reschke wrote:
>> I consider that sentence to be useless - if I can't detect the type, what else but "treating as arbitrary data" is left as an option anyway?
> 
> I'll comment below.
> 
>> I still don't get what the issue is :-)
> 
> My preference is not to generate material which create more work for you.  It's better not to pursue this one. :-)
> 
>> The subsequent text is:
>> 
>> "In practice, resource owners do not always properly configure their origin server to provide the correct Content-Type for a given representation, with the result that some clients will examine a payload's content and override the specified type. Clients that do so risk drawing incorrect conclusions, which might expose additional security risks (e.g., "privilege escalation"). Furthermore, it is impossible to determine the sender's intent by examining the data format: many data formats match multiple media types that differ only in processing semantics. Implementers are encouraged to provide a means of disabling such "content sniffing" when it is used."
>> 
>> Do you think this is insufficient, or that it needs to move to a different part of the spec?
> 
> The subsequent text is, to put it simply, about an operational issue and security considerations.  The recommendation in Section 3.1.1.5 is to generate a Content-Type header field if the server knows the media type.  There are cases when the server does not know the media type.  In such cases the server sends the client "application/octet-stream".  There is where the user has to determine whether the server is operated by good person or a bad person (re. arbitrary data).  The user relies on the browser to perform some magic to determine that.  That magic does not always work well.
> 
> If it was my decision (and it is not) I would discuss about this under Security Considerations and mention that content sniffing can cause security problems.  Please note that there are different alternatives to tackle the issue.
> 
> Regards,
> S. Moonesamy 
> 

--
Mark Nottingham   http://www.mnot.net/