Re: Design Issue: Overlong Frames

William Chan (陈智昌) <willchan@chromium.org> Fri, 10 May 2013 19:57 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 E948621F90EA for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 10 May 2013 12:57:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.676
X-Spam-Level:
X-Spam-Status: No, score=-9.676 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, 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 zwKfRtPbHgnW for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 10 May 2013 12:57:14 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1A88321F8F6E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 10 May 2013 12:57:14 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UatRA-0007Ul-PQ for ietf-http-wg-dist@listhub.w3.org; Fri, 10 May 2013 19:57:04 +0000
Resent-Date: Fri, 10 May 2013 19:57:04 +0000
Resent-Message-Id: <E1UatRA-0007Ul-PQ@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <willchan@google.com>) id 1UatQz-0007Q9-LT for ietf-http-wg@listhub.w3.org; Fri, 10 May 2013 19:56:53 +0000
Received: from mail-qa0-f44.google.com ([209.85.216.44]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <willchan@google.com>) id 1UatQs-0006xK-Dl for ietf-http-wg@w3.org; Fri, 10 May 2013 19:56:49 +0000
Received: by mail-qa0-f44.google.com with SMTP id o13so523682qaj.10 for <ietf-http-wg@w3.org>; Fri, 10 May 2013 12:56:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=UnE7lOtFKZwFS4HU0ReBQf/WFogcr2xlyKWV3GF7rDg=; b=Cm+KY3qTeEdPC/1UPj9e+5/XbHdv/Y9ONACK7GX6R76o4S3H8Hnwsbryqp/0wSy/4q zpB5AUR/Q+KoZCeS5pp1exSmmHBO0K4eGACSkf84N0ZVFCRFg5/GfCVXvWpQ9KJBvBkf 8NAuiuy+3NAYCjXqam2aSF674FUBLvLg+tTDJubJHCvi+FGTdxm6zHXv1wur9RYKv1QM cEEG5Md9/75xKv9abqBRntw0ty1x9xV9q1eywYhfgVMyw69sqcj/qLo/aWHs15DJYly+ 4lMKU9Lhs0nrhW1uTmo7KtK60jVErYT9GTbFg+d38y3q7fgRQ2jHYIq2Ms3hDTU2eqdV +pOA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=UnE7lOtFKZwFS4HU0ReBQf/WFogcr2xlyKWV3GF7rDg=; b=JgXHzvp4MyWh4l8OY5/1rUh5odURVy5A4nQRB3oCikt3gRMNC59WxjQet/KMCHbyhP 5uKV6QdmkMqs7tYYu6niaVKjwXFyd3fb6JxESJlRkLUSV7pYfYNkxEZ/5CF79Bk1tv7H ajvtdMshYtPIhJdOAq0ZnrjdcYYOFotXaebHg=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=UnE7lOtFKZwFS4HU0ReBQf/WFogcr2xlyKWV3GF7rDg=; b=OfgPAW0TUKOyu8PA9aiHYBaKllT2RIrdhmKM+wLCDmmGkRYEI0xHqP0Xt5Qdh4/67p H2V1zDGuL8bmBopKG/8LC4TaT8Z2JXr5jd14JD88VEGN5ZjGrVb2EjbWhsR7J+CL6cT8 wNWBasWtOo5uKQ64QZ5j2M4QEf4EMEqIB/RiPkMBWxrE0OUH4mHUD0v5nMfiBRzKJ+lK yskEGj9sDy0+SQPdjdgy4R52lNcWdqcb1Q579CjbsNEXmDKYJolhIFDCFxp/XIyOrqZd 45o422cAwfn/zLgRsXslZMp8VCg9J5Kgb0QlpW7G07853Hnk2WztXM5dxZY98lOf0/fU ZHtQ==
MIME-Version: 1.0
X-Received: by 10.224.222.14 with SMTP id ie14mr12926895qab.34.1368215780623; Fri, 10 May 2013 12:56:20 -0700 (PDT)
Sender: willchan@google.com
Received: by 10.229.180.4 with HTTP; Fri, 10 May 2013 12:56:20 -0700 (PDT)
In-Reply-To: <CABP7RbeciZeqz=YQKDSQ3gEe-UUXZn_YigdQiB7y5QTiPC2=_w@mail.gmail.com>
References: <CABP7RbewOju850tE2GV2U4JZVawGTFGoWoYF7LaofGdKcXYqZg@mail.gmail.com> <CABkgnnXZY7aSRmVb-GsfDVpq3+cNXRh_MeUipWGVHUwQreUV6g@mail.gmail.com> <CABP7RbcUuYVG9v6aoC1m1qkHw6M2xb4eOzY32QgieKDznDZefg@mail.gmail.com> <CABkgnnX=bFRg39aK6Ba4XzcKEz84oyt7GL+US7zHw+wonQve6g@mail.gmail.com> <CABP7RbeciZeqz=YQKDSQ3gEe-UUXZn_YigdQiB7y5QTiPC2=_w@mail.gmail.com>
Date: Fri, 10 May 2013 16:56:20 -0300
X-Google-Sender-Auth: Xss-D90Npkmiy6yXS9leYQPlFjo
Message-ID: <CAA4WUYi0dsLZ9vdTHmaZsteK=fcGTYdwO+tn6L7SM0qYQTX0Dg@mail.gmail.com>
From: "William Chan (陈智昌)" <willchan@chromium.org>
To: James M Snell <jasnell@gmail.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="20cf3074b45c94b56004dc628f41"
X-Gm-Message-State: ALoCoQmDzrkxvxPLB0r+RuiSW0gOxHrfFrzIVhLOWZj8t0BnZx+GZPon5FwfqrucTrqHFMavMYUK5Vzn2uX+zBBoQnQnmDq0xcPxUVis2+sZcawAi32y1gyN6JNlx7ffhISPcp1v08ajdZMrQhM0vFhc3Qa/pCyXKUsRpllH0mv7UPzorI5WRWqwTEyN+i67RpstWK3Mht6/
Received-SPF: pass client-ip=209.85.216.44; envelope-from=willchan@google.com; helo=mail-qa0-f44.google.com
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-2.058, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-1.315, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1UatQs-0006xK-Dl 50e1a545ef674f07f6c3a4717f528c56
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Design Issue: Overlong Frames
Archived-At: <http://www.w3.org/mid/CAA4WUYi0dsLZ9vdTHmaZsteK=fcGTYdwO+tn6L7SM0qYQTX0Dg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17934
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>

Non-theoretical reason for extending GOAWAY: adding debug strings
explaining an error in more detail.

No comment on extensibility mechanisms.


On Fri, May 10, 2013 at 4:40 PM, James M Snell <jasnell@gmail.com> wrote:

>
> On May 10, 2013 12:00 PM, "Martin Thomson" <martin.thomson@gmail.com>
> wrote:
> >
> > On 10 May 2013 11:29, James M Snell <jasnell@gmail.com> wrote:
> > > On Fri, May 10, 2013 at 10:36 AM, Martin Thomson
> > > <martin.thomson@gmail.com> wrote:
> > >> On 9 May 2013 10:26, James M Snell <jasnell@gmail.com> wrote:
> > >>> Recommendation: Adding a short statement that a PROTOCOL_ERROR MUST
> be
> > >>> returned if a frame contains more bytes than what is expressly
> > >>> specified in the frame definition.
> > >>
> > >> That would prevent extension unnecessarily.  And it doesn't do
> > >> anything to improve security.
> > >
> > > How does it prevent extension? If someone wants to extend an existing
> > > frame to include new data, it can define a new frame type.
> >
> > I can't extend GOAWAY.  Who knows, maybe I might want to be more
> > specific about the streams that will be processed prior to session
> > end.
> >
>
> If there are non-theoretical reasons for why one may wish to extend a
> frame like goaway, then extensibility should be expressly included in the
> design as part of the format.
>
> - James
>
> > >> When you want to harden security, you need to consider what equivalent
> > >> options are available to an attacker.  If I wanted to send you more
> > >> data, then I will use DATA frames.  Unless you can find a way to
> > >> curtail DATA I see no reason to clamp down here.
> > >
> > > In my experience, it's generally better to limit the exploitation
> options ;-)
> >
> > It doesn't limit options in any meaningful way.  This would be
> > analogous to double-deadlocking the front door while leaving the
> > adjacent windows wide open.  I know that the extension argument isn't
> > especially strong, for a range of reasons, but I see no point in
> > over-engineering this aspect.
>