Re: [hybi] frame length encoding

John Tamplin <jat@google.com> Sun, 22 August 2010 23:07 UTC

Return-Path: <jat@google.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id DCDAE3A6890 for <hybi@core3.amsl.com>; Sun, 22 Aug 2010 16:07:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.873
X-Spam-Level:
X-Spam-Status: No, score=-105.873 tagged_above=-999 required=5 tests=[AWL=0.103, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZOagHl8rPpvH for <hybi@core3.amsl.com>; Sun, 22 Aug 2010 16:07:51 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 891B23A686B for <hybi@ietf.org>; Sun, 22 Aug 2010 16:07:48 -0700 (PDT)
Received: from wpaz29.hot.corp.google.com (wpaz29.hot.corp.google.com [172.24.198.93]) by smtp-out.google.com with ESMTP id o7MN8LM5003310 for <hybi@ietf.org>; Sun, 22 Aug 2010 16:08:21 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1282518501; bh=RgchJInxFZlhmdlPVcib0Sj0VLg=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pwNHpr+bvXfU2xPmX/06MKVRD3/QupM80QOuskU7KG13zhi0QrhNtSLU3PgmHW8Fl Nuhwn+FZ5WigjQm0Dq/kw==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:from:date:message-id: subject:to:cc:content-type:x-system-of-record; b=RLmOIxZejFyu06i6V3GUsA/Wz5l6ZBGI9gsL1SBO/uyal4fNSgBPCs+b5DSHd/Qu3 3xndiOkK8MFlwD4o1KCAg==
Received: from qwc9 (qwc9.prod.google.com [10.241.193.137]) by wpaz29.hot.corp.google.com with ESMTP id o7MN7oN0008771 for <hybi@ietf.org>; Sun, 22 Aug 2010 16:08:20 -0700
Received: by qwc9 with SMTP id 9so4499443qwc.3 for <hybi@ietf.org>; Sun, 22 Aug 2010 16:08:20 -0700 (PDT)
Received: by 10.224.112.73 with SMTP id v9mr2755250qap.327.1282518500146; Sun, 22 Aug 2010 16:08:20 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.229.17.130 with HTTP; Sun, 22 Aug 2010 16:08:00 -0700 (PDT)
In-Reply-To: <ef6d11756d22e21402bc1af152916120.squirrel@sm.webmail.pair.com>
References: <AANLkTimKbmcpgx8k0uXUWvCO=8w9pPrtV=3y4qh6363k@mail.gmail.com> <224b9ed365bd78fd5e316b8cb5f3f837.squirrel@sm.webmail.pair.com> <1282435214.2014.14.camel@tng> <AANLkTimo0MwZEMn1t1vrASfwC1bx82Q9Z_Ls3wVb-zUS@mail.gmail.com> <b95f074b65875865802f532bb5668ff2.squirrel@sm.webmail.pair.com> <AANLkTi=AXLFPSASV2zkBiUU=1StO=YSrKq_9AZ2ZnVHy@mail.gmail.com> <8cd6ecfebb4a073ecf94c8e1aa56e642.squirrel@sm.webmail.pair.com> <77aecf89c6c8673f1b999f80fa04e005.squirrel@sm.webmail.pair.com> <AANLkTik9tpCQr9LjK0qdLuA1KfJv1MN9yK2UZ1ytxfCW@mail.gmail.com> <fb8bfae1b88ade55cad4234af724004b.squirrel@sm.webmail.pair.com> <AANLkTimAu5de0PnujHRwR0nnXFBpqdJoRWZ=UvGrLVJ7@mail.gmail.com> <65fc5176b7cc6c775ec167f4404b43ed.squirrel@sm.webmail.pair.com> <bf7fd641553e15431d35d7352d023df2.squirrel@sm.webmail.pair.com> <AANLkTin=urXr0eAg3mrXfnCm5jQDb6yLSpkF-QLNQYq+@mail.gmail.com> <ef16e51dbbd45c735d21ce310063cf36.squirrel@sm.webmail.pair.com> <AANLkTimP6KOU49B_dhZhibJJ0-Mf0KkETfLLvEBcf85N@mail.gmail.com> <ef6d11756d22e21402bc1af152916120.squirrel@sm.webmail.pair.com>
From: John Tamplin <jat@google.com>
Date: Sun, 22 Aug 2010 19:08:00 -0400
Message-ID: <AANLkTimWTRw6zSWDbDg4JH9UBv-2a=S5obX2+jbLpGDL@mail.gmail.com>
To: shelby@coolpage.com
Content-Type: multipart/alternative; boundary="001485e7c92a9e89bb048e719b9d"
X-System-Of-Record: true
Cc: Hybi <hybi@ietf.org>
Subject: Re: [hybi] frame length encoding
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 22 Aug 2010 23:07:52 -0000

On Sun, Aug 22, 2010 at 6:58 PM, Shelby Moore <shelby@coolpage.com> wrote:

> That forces the receiver to check for the larger size.  See my prior post
> on the multi-core issue, that it would be more efficient in that case if
> the sender honored the maximum.
>
> Why can't the sender honor the agreed maximum size?
>

The receiver will still have to check, because the sender might be an
attacker hoping to take advantage of a receiver that only checks the first 2
bytes of the length while firewalls/etc would have filtered it had it been
correct.  Getting different entities to make different decisions about some
framing of data is a fundamental attack tactic.

-- 
John A. Tamplin
Software Engineer (GWT), Google