Re: legality of Transfer-Encoding: chunked bodies in HTTP/2
Amos Jeffries <squid3@treenet.co.nz> Fri, 08 August 2014 11:12 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5BFC81B2A6A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 8 Aug 2014 04:12:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.903
X-Spam-Level:
X-Spam-Status: No, score=-6.903 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
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 nAd2bDAjx3cd for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 8 Aug 2014 04:12:22 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BC03C1B2A42 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 8 Aug 2014 04:12:22 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1XFi2m-0006sQ-Qe for ietf-http-wg-dist@listhub.w3.org; Fri, 08 Aug 2014 11:09:08 +0000
Resent-Date: Fri, 08 Aug 2014 11:09:08 +0000
Resent-Message-Id: <E1XFi2m-0006sQ-Qe@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1XFi2T-0006rD-4r for ietf-http-wg@listhub.w3.org; Fri, 08 Aug 2014 11:08:49 +0000
Received: from 121-99-228-82.static.orcon.net.nz ([121.99.228.82] helo=treenet.co.nz) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1XFi2S-0004zw-21 for ietf-http-wg@w3.org; Fri, 08 Aug 2014 11:08:49 +0000
Received: from [192.168.2.97] (unknown [203.184.52.78]) by treenet.co.nz (Postfix) with ESMTP id 57080E6FB4 for <ietf-http-wg@w3.org>; Fri, 8 Aug 2014 23:08:17 +1200 (NZST)
Message-ID: <53E4AF9B.3020008@treenet.co.nz>
Date: Fri, 08 Aug 2014 23:08:11 +1200
From: Amos Jeffries <squid3@treenet.co.nz>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: ietf-http-wg@w3.org
References: <CAEn92Tq72TK9OrFqnLFpsAVi2+EFjsMEwHtMBg_195NoJg150w@mail.gmail.com> <CABkgnnXjV1JqunhmanK_ZXH_5CuZzD3SF2vLKTgXE157Esf7aw@mail.gmail.com> <CACuKZqHkQKzHGJcOHFWVgZNU_pX88APDrO6+Yr_qjDXb=CW41Q@mail.gmail.com> <b197816b29f64fae847132a8945ce0de@SN2PR03MB046.namprd03.prod.outlook.com> <0D91B271-EA17-4906-A723-277C069656DF@apple.com> <18711EE1-458B-4172-80B1-DA9E2D3FDBB5@mnot.net> <214054b7df3d43ddaaeae2d83f6b2283@SN2PR03MB046.namprd03.prod.outlook.com> <CABkgnnWTkkvuusTNfKA6wRy5XRU6S-LDMuYQ_h7ZbPe-Aj0Czg@mail.gmail.com> <396be2faeb7a4cd98a342a3b8fb3ea6a@SN2PR03MB046.namprd03.prod.outlook.com> <CABkgnnVvw2jKBpnZpUcUbNVSoQvaZFykO2EFR+eDyG9QskqZEw@mail.gmail.com> <1c2257e2b16f4156a4735c7f5af4e7c2@BL2PR03MB132.namprd03.prod.outlook.com> <CABkgnnX49p2KZC-pki2c-d01KmYxY+sKRhV3Ty8W1S3KMX8OvA@mail.gmail.com> <2C672249-F5C0-45A2-920C-68FE8D4EF2E8@mnot.net>
In-Reply-To: <2C672249-F5C0-45A2-920C-68FE8D4EF2E8@mnot.net>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=121.99.228.82; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.450, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TVD_RCVD_IP=0.001
X-W3C-Scan-Sig: maggie.w3.org 1XFi2S-0004zw-21 e53f33e3b23ef4125f29a19323af7ce0
X-Original-To: ietf-http-wg@w3.org
Subject: Re: legality of Transfer-Encoding: chunked bodies in HTTP/2
Archived-At: <http://www.w3.org/mid/53E4AF9B.3020008@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/26574
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>
On 8/08/2014 6:50 p.m., Mark Nottingham wrote: > Indeed. From <http://tools.ietf.org/html/draft-ietf-httpbis-http2-14#section-8.1>: > >> 3. zero or more DATA frames containing the message payload (see [RFC7230], Section 3.3) > > "payload" is a very specific term, and it is *not* processed for chunks. > Excellent. So the sender application just excludes Content-Length and chunked-encodes the representation. The framing layer DATA frames the chunks without inspecting to find where END_STREAM flag applies. * Applications (whether DoS generators or innocent bunglers) can now force recipients to hold onto HTTP/2 stream context indefinitely for up to 2^31-1 streams. Just by emitting chunked encoded byte stream for DATA encoding. It not being de-chunked to find the 0-chunk where END_STREAM applies. * request smugglers can now abuse h2->1.1 gateways. Just send without content-length and having a "0\r\n" prefix on the 1.1 message smuggled inside DATA. Amos
- legality of Transfer-Encoding: chunked bodies in … Johnny Graettinger
- Re: legality of Transfer-Encoding: chunked bodies… Martin Thomson
- Re: legality of Transfer-Encoding: chunked bodies… Zhong Yu
- RE: legality of Transfer-Encoding: chunked bodies… Osama Mazahir
- Re: legality of Transfer-Encoding: chunked bodies… Martin Thomson
- Re: legality of Transfer-Encoding: chunked bodies… Ryan Hamilton
- Re: legality of Transfer-Encoding: chunked bodies… Greg Wilkins
- Re: legality of Transfer-Encoding: chunked bodies… Michael Sweet
- Re: legality of Transfer-Encoding: chunked bodies… Mark Nottingham
- RE: legality of Transfer-Encoding: chunked bodies… Osama Mazahir
- RE: legality of Transfer-Encoding: chunked bodies… Mike Bishop
- Re: legality of Transfer-Encoding: chunked bodies… Martin Thomson
- RE: legality of Transfer-Encoding: chunked bodies… Osama Mazahir
- Re: legality of Transfer-Encoding: chunked bodies… Martin Thomson
- RE: legality of Transfer-Encoding: chunked bodies… Mike Bishop
- Re: legality of Transfer-Encoding: chunked bodies… Martin Thomson
- Re: legality of Transfer-Encoding: chunked bodies… Mark Nottingham
- Re: legality of Transfer-Encoding: chunked bodies… Amos Jeffries
- Re: legality of Transfer-Encoding: chunked bodies… Martin Thomson
- RE: legality of Transfer-Encoding: chunked bodies… Mike Bishop
- Re: legality of Transfer-Encoding: chunked bodies… Greg Wilkins
- Re: legality of Transfer-Encoding: chunked bodies… Jason Greene
- RE: legality of Transfer-Encoding: chunked bodies… K.Morgan
- Re: legality of Transfer-Encoding: chunked bodies… Martin Thomson
- Re: legality of Transfer-Encoding: chunked bodies… Ryan Hamilton
- Re: legality of Transfer-Encoding: chunked bodies… Greg Wilkins
- Re: legality of Transfer-Encoding: chunked bodies… Zhong Yu