Re: delta encoding and state management

Roberto Peon <grmocg@gmail.com> Tue, 22 January 2013 22:35 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 C2BDA21F875C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 22 Jan 2013 14:35:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.286
X-Spam-Level:
X-Spam-Status: No, score=-10.286 tagged_above=-999 required=5 tests=[AWL=0.312, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zxSdS6JNlgAr for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 22 Jan 2013 14:35:00 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1985C21F874B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 22 Jan 2013 14:35:00 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TxmQL-0007bi-5F for ietf-http-wg-dist@listhub.w3.org; Tue, 22 Jan 2013 22:34:33 +0000
Resent-Date: Tue, 22 Jan 2013 22:34:33 +0000
Resent-Message-Id: <E1TxmQL-0007bi-5F@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1TxmQF-0007av-9t for ietf-http-wg@listhub.w3.org; Tue, 22 Jan 2013 22:34:27 +0000
Received: from mail-lb0-f178.google.com ([209.85.217.178]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1TxmQE-0001NY-H7 for ietf-http-wg@w3.org; Tue, 22 Jan 2013 22:34:27 +0000
Received: by mail-lb0-f178.google.com with SMTP id n1so3279733lba.37 for <ietf-http-wg@w3.org>; Tue, 22 Jan 2013 14:33:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=uSC7m68A7uf6kdNbprcZaGV3kLO4Aywr9RVnpWCmGr0=; b=esnqhQ5PUJCsu8fttVfFo5dDhwjmAqtWOZiBjlSZdONujsOzl1LaSssWOmsbaXF5zm yg1i47Fuxwt4BJ+jjGGMp6KeOvW2hkxgaJgM7otWzLegeZ0Evj/w4IKQ2M4TiDo98qjg 9lFVjs+OYj+pjcby+gsWnxkKCifaYCaHCbOzypqCfI4TaRu4KtzVuiFKuuxuWFS6HyyX uR6RQfDHH0EHDQQIkE+hflONU4LclORhkGIhJIDWRvW2mRjIH7xtnCyTXcxtTImpi+7T 0pYqEEe03K5DnVswo671flI5eepb6q1r9LhZnkIjicqKjJuJ2VzfNNuFDOYvdABO3Yfy Y/Hg==
MIME-Version: 1.0
X-Received: by 10.112.38.164 with SMTP id h4mr6949719lbk.123.1358894039811; Tue, 22 Jan 2013 14:33:59 -0800 (PST)
Received: by 10.112.81.5 with HTTP; Tue, 22 Jan 2013 14:33:59 -0800 (PST)
In-Reply-To: <20130122222945.GN30692@1wt.eu>
References: <CAP+FsNcmLH6fWQoptBoP3a1x-zSpbP8piCFz1fg5KuF+6R3jjg@mail.gmail.com> <CAK3OfOj3ZgOZnzcQCifhb9f2One7vBUNGv7yhidkZqRzaeZYvQ@mail.gmail.com> <CAP+FsNfswUN-CK6heRGqEnSJatHGo3q2mZZLTrPnjapCZz2sTg@mail.gmail.com> <CABP7RbfDZcRH-0_AaN9iYjPN-v6QjU6_Xdy5o1BHYnDFWHtuAg@mail.gmail.com> <CAK3OfOh0xqZsPYcb0uRLnebKWTKO7ARkJ4joFZoqjiBSTmwBTA@mail.gmail.com> <CABP7Rbeb6MOYmYPhhsKFFtQwE0JxuPyShXY0zpkA5YX2JPSY_w@mail.gmail.com> <CAA4WUYhg2qt_z_TrOAH0ax6mUpYPNeG4x740CgQi5Voq=50K_Q@mail.gmail.com> <20130122212748.GJ30692@1wt.eu> <CAP+FsNfgLBYjn7D5rgTRvPnaRuAi4rNB_E6vXE4b3B=_dtx=-w@mail.gmail.com> <CAP+FsNcm_VBOsbptkLoOQXfgM-xAfYiZuqZusDm2YkoiszUfxA@mail.gmail.com> <20130122222945.GN30692@1wt.eu>
Date: Tue, 22 Jan 2013 14:33:59 -0800
Message-ID: <CAP+FsNeAMmKvH6i6Vk=igLefLjtr2Q5nBZ92GEgfWuf2+jZ6Ww@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: Willy Tarreau <w@1wt.eu>
Cc: "William Chan (?????????)" <willchan@chromium.org>, James M Snell <jasnell@gmail.com>, Nico Williams <nico@cryptonector.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="e0cb4efe2f8087c72d04d3e82c97"
Received-SPF: pass client-ip=209.85.217.178; envelope-from=grmocg@gmail.com; helo=mail-lb0-f178.google.com
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-2.624, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TxmQE-0001NY-H7 135ea6fb5e296a918c211474aa6180d3
X-Original-To: ietf-http-wg@w3.org
Subject: Re: delta encoding and state management
Archived-At: <http://www.w3.org/mid/CAP+FsNeAMmKvH6i6Vk=igLefLjtr2Q5nBZ92GEgfWuf2+jZ6Ww@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16120
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>

Yup. There might be some modicum of safety in there if the path prefix for
a group never changes once defined, and it was impossible for an attacker
to define a group and include elements from something else in it, but it is
definitely the kind of thing that tickles my funnybone and makes me run to
security folks :)
-=R


On Tue, Jan 22, 2013 at 2:29 PM, Willy Tarreau <w@1wt.eu> wrote:

> On Tue, Jan 22, 2013 at 01:54:18PM -0800, Roberto Peon wrote:
> > The thing that isn't in delta, etc. already is the idea of 'rooting' the
> > path space with the single request (which I like, but... it is subject to
> > the CRIME exploit if path-prefix grouping is done automatically by the
> > browser (instead of being defined by the content-developer)).
>
> I think that if the path-prefix only contains complete path components (not
> just some chars), then we're fine with the CRIME attack because in order to
> make the browser merge requests, the attacker has to brute-force each path
> component's name. Also, as long as it remains a path, it doesn't unveil
> what
> is located behind, which generally contains the most interesting stuff.
>
> > IF we take your proposal for eliminating much of the common-path prefix
> and
> > ensure that it isn't subject to CRIME, that is a winner in any scheme.
>
> Let's face it, the CRIME attack is against optimizations for redundant
> elements. We probably need to spend more time analysing all the failures
> involved in the attack itself than refraining from optimizing redundancy.
> I mean, how a forged request from an attacker slips in the middle of valid
> requests and how we can prevent it from being merged, or at least have it
> in its own group.
>
> Willy
>
>