Re: [websec] #21: sniffing of text/html shouldn't override polyglot label of application/xhtml+xml

Philip Gladstone <pgladsto@cisco.com> Mon, 24 October 2011 16:23 UTC

Return-Path: <pgladsto@cisco.com>
X-Original-To: websec@ietfa.amsl.com
Delivered-To: websec@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0C2A321F8E27 for <websec@ietfa.amsl.com>; Mon, 24 Oct 2011 09:23:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level:
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 Ec0qHOlGbryl for <websec@ietfa.amsl.com>; Mon, 24 Oct 2011 09:23:37 -0700 (PDT)
Received: from mtv-iport-2.cisco.com (mtv-iport-2.cisco.com [173.36.130.13]) by ietfa.amsl.com (Postfix) with ESMTP id 16E6121F8E26 for <websec@ietf.org>; Mon, 24 Oct 2011 09:23:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=pgladsto@cisco.com; l=505; q=dns/txt; s=iport; t=1319473417; x=1320683017; h=message-id:date:from:mime-version:to:subject:references: in-reply-to:content-transfer-encoding; bh=ZhOsYjXFWgHU4ZPVXI6smARcWPJBvCs5GICXsssdHtw=; b=YJOn1GdEAs2y6TUuEGmzp4lLOAnjbY95+bZGgTNQytn3GujB/MaPIzCs lxYL4XVqaQMJLU8KLDMlq9AQXHkHwCu2jUDia57aKtirUnyy2NW+E9wlV paQyMeKlXZ4UuLU27DRcsca9XaXvausYkjSKY/mS5ncGyfup2EqWT7CfZ E=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AqUHACSQpU6rRDoI/2dsb2JhbABDhHWVH4x1ggmBBYFuAQEBAQMSARAVQBELGAICBRYLAgIJAwIBAgFFEwgBAR6dSwGMRZFLgTCFfIEUBJQJhSyMSw
X-IronPort-AV: E=Sophos;i="4.69,399,1315180800"; d="scan'208";a="9874412"
Received: from mtv-core-3.cisco.com ([171.68.58.8]) by mtv-iport-2.cisco.com with ESMTP; 24 Oct 2011 16:23:37 +0000
Received: from [161.44.106.139] (dhcp-161-44-106-139.cisco.com [161.44.106.139]) by mtv-core-3.cisco.com (8.14.3/8.14.3) with ESMTP id p9OGNaM0017735 for <websec@ietf.org>; Mon, 24 Oct 2011 16:23:36 GMT
Message-ID: <4EA59106.8020702@cisco.com>
Date: Mon, 24 Oct 2011 12:23:34 -0400
From: Philip Gladstone <pgladsto@cisco.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
MIME-Version: 1.0
To: websec@ietf.org
References: <059.3516e8c3cdad2665b7817e8e50a003a8@trac.tools.ietf.org>
In-Reply-To: <059.3516e8c3cdad2665b7817e8e50a003a8@trac.tools.ietf.org>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Subject: Re: [websec] #21: sniffing of text/html shouldn't override polyglot label of application/xhtml+xml
X-BeenThere: websec@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Web Application Security Minus Authentication and Transport <websec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/websec>, <mailto:websec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/websec>
List-Post: <mailto:websec@ietf.org>
List-Help: <mailto:websec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/websec>, <mailto:websec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 24 Oct 2011 16:23:38 -0000

On 10/23/2011 7:52 PM, websec issue tracker wrote:
>
>   (One still might want to sniff text/html when the type is labeled
>   text/plain, for example, but not for other polyglot cases.)
This would be a disaster. For security reasons, a web server needs to 
know when a document will be "executed" rather than "displayed". 
Currently, using text/plain will display any document literally. Causing 
a document that looks like html to be executed will open lots of web 
sites to XSS.

Philip