Re: legality of Transfer-Encoding: chunked bodies in HTTP/2
Martin Thomson <martin.thomson@gmail.com> Fri, 08 August 2014 16:17 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 57F361B2BA6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 8 Aug 2014 09:17:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.003
X-Spam-Level:
X-Spam-Status: No, score=-7.003 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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 A7lzsKsMuz_w for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 8 Aug 2014 09:17:00 -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 B65BC1B2A68 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 8 Aug 2014 09:17:00 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1XFmnd-0000bL-EV for ietf-http-wg-dist@listhub.w3.org; Fri, 08 Aug 2014 16:13:49 +0000
Resent-Date: Fri, 08 Aug 2014 16:13:49 +0000
Resent-Message-Id: <E1XFmnd-0000bL-EV@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1XFmnE-0000XF-W3 for ietf-http-wg@listhub.w3.org; Fri, 08 Aug 2014 16:13:25 +0000
Received: from mail-we0-f177.google.com ([74.125.82.177]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1XFmnD-000740-R8 for ietf-http-wg@w3.org; Fri, 08 Aug 2014 16:13:24 +0000
Received: by mail-we0-f177.google.com with SMTP id w62so5859005wes.22 for <ietf-http-wg@w3.org>; Fri, 08 Aug 2014 09:12:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EBshhEcPDuxI6JsWpeZBTgrLs93b9bNa+WxBBm2WWaY=; b=nKGC+w6x8pwlwRPHvpeSy08HOXD7g7heTXwWGht/izGCnzmn7VP01wXXS5xJI3M0gP SGULH2dIxwp9My71yl/M8N5aiW1Gl9MRnhj7CNgnseyHy3r7g2sO4gSu5BlhlDzT1ite pN39skFgBTwNSDt2VhwI+eRoIZbBY3N2VfwQRXeDLuCVTFpVaOhs6+p8AfOUd9/+w3Tu Anlr3fVGdJpJBjCdFrLO+JjSXKK9os8cZ1SXrVZS3HvyZE01UdsnRintOdEecn16aSVm C1sHLjA+0kMBFiFnpNuLwjRl62oBG9FzI+5V7auilW2iB3dMJL5jpoOEPECZm/qbFj4Q erjg==
MIME-Version: 1.0
X-Received: by 10.194.205.70 with SMTP id le6mr21437951wjc.25.1407514377288; Fri, 08 Aug 2014 09:12:57 -0700 (PDT)
Received: by 10.194.6.229 with HTTP; Fri, 8 Aug 2014 09:12:57 -0700 (PDT)
In-Reply-To: <53E4AF9B.3020008@treenet.co.nz>
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> <53E4AF9B.3020008@treenet.co.nz>
Date: Fri, 08 Aug 2014 09:12:57 -0700
Message-ID: <CABkgnnWpYV4pBPw2goWtqDgRfwFeOo478s6RCwr3Q17xZ_nfng@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Amos Jeffries <squid3@treenet.co.nz>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=74.125.82.177; envelope-from=martin.thomson@gmail.com; helo=mail-we0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.743, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1XFmnD-000740-R8 1fe84654f6d2b4691e23f1ce5c940d76
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/CABkgnnWpYV4pBPw2goWtqDgRfwFeOo478s6RCwr3Q17xZ_nfng@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/26577
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 August 2014 04:08, Amos Jeffries <squid3@treenet.co.nz> wrote: > > 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. The complete opposite in fact. If you pack chunked encoding in, then that is (likely) garbage. That's all.
- 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… Martin Thomson
- Re: legality of Transfer-Encoding: chunked bodies… Ryan Hamilton
- 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
- 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… 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… 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