Re: p1: handling obs-fold

"Roy T. Fielding" <fielding@gbiv.com> Sun, 19 May 2013 22:34 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3A3DE21F8EC2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 19 May 2013 15:34:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 pfgZ4gBnObiE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 19 May 2013 15:34:28 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 40EF521F8F07 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 19 May 2013 15:34:27 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UeCAN-0007jK-M2 for ietf-http-wg-dist@listhub.w3.org; Sun, 19 May 2013 22:33:23 +0000
Resent-Date: Sun, 19 May 2013 22:33:23 +0000
Resent-Message-Id: <E1UeCAN-0007jK-M2@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <fielding@gbiv.com>) id 1UeCAB-0007fY-AW for ietf-http-wg@listhub.w3.org; Sun, 19 May 2013 22:33:11 +0000
Received: from caiajhbdccac.dreamhost.com ([208.97.132.202] helo=homiemail-a31.g.dreamhost.com) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <fielding@gbiv.com>) id 1UeCA6-00020R-HQ for ietf-http-wg@w3.org; Sun, 19 May 2013 22:33:11 +0000
Received: from homiemail-a31.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a31.g.dreamhost.com (Postfix) with ESMTP id D5C25202022; Sun, 19 May 2013 15:32:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=liXnxhVIUwU6p3OODrzJ06s/5qg=; b=zd7FgUyInQuwx/qJw9iazmDeTF90 m0xHPHJQeQ1vB2un6qHMOYFNGEL7BLOzF9fgb+iBTmdcQpH7ppSl9RKDuErqT4NK klSisXhvTAUeyT9IXZh+qm8A1nuDSubhI3UJSS/oEQxq898BWH+VwRgt6pq2ND/d e7mcPqvRI0NA0LQ=
Received: from [192.168.1.84] (99-21-208-82.lightspeed.irvnca.sbcglobal.net [99.21.208.82]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a31.g.dreamhost.com (Postfix) with ESMTPSA id 958C0202018; Sun, 19 May 2013 15:32:45 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1283)
Content-Type: text/plain; charset="windows-1252"
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <2118F2B3-643F-4D2E-85E9-60988EF6C839@mnot.net>
Date: Sun, 19 May 2013 15:32:54 -0700
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <2EE3132B-78D5-4BA7-BAEE-FFC916E1484D@gbiv.com>
References: <2118F2B3-643F-4D2E-85E9-60988EF6C839@mnot.net>
To: Mark Nottingham <mnot@mnot.net>
X-Mailer: Apple Mail (2.1283)
Received-SPF: none client-ip=208.97.132.202; envelope-from=fielding@gbiv.com; helo=homiemail-a31.g.dreamhost.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.414, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: maggie.w3.org 1UeCA6-00020R-HQ a40e541776026bb939ac3bd315e5fb45
X-Original-To: ietf-http-wg@w3.org
Subject: Re: p1: handling obs-fold
Archived-At: <http://www.w3.org/mid/2EE3132B-78D5-4BA7-BAEE-FFC916E1484D@gbiv.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18030
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Fixed in

http://trac.tools.ietf.org/wg/httpbis/trac/changeset/2260

....Roy

On Apr 19, 2013, at 9:07 PM, Mark Nottingham wrote:

> p1 3.2.4 defines requirements for handling obs-fold:
> 
>> When an obs-fold is received in a message, recipients MUST do one of:
>> 
>> 	• accept the message and replace any embedded obs-fold whitespace with either a single SP or a matching number of SP octets (to avoid buffer copying) prior to interpreting the field value or forwarding the message downstream;
>> 	• if it is a request, reject the message by sending a 400 (Bad Request) response with a representation explaining that obsolete line folding is unacceptable; or,
>> 	• if it is a response, discard the message and generate a 502 (Bad Gateway) response with a representation explaining that unacceptable line folding was received.
>> 
>> Recipients that choose not to implement obs-fold processing (as described above) MUST NOT accept messages containing header fields with leading whitespace, as this can expose them to attacks that exploit this difference in processing.
> 
> This seems to repeat itself; what is the difference between choosing to reject the request in the manner described in the last two bullet points, and not accepting the message?
> 
> I think that the last sentence can be removed.
> 
> 
> --
> Mark Nottingham   http://www.mnot.net/
> 
> 
> 
>