Re: [http-state] Ticket 6: host-only cookies

Adam Barth <ietf@adambarth.com> Fri, 22 January 2010 19:16 UTC

Return-Path: <adam@adambarth.com>
X-Original-To: http-state@core3.amsl.com
Delivered-To: http-state@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 0D98928C0DB for <http-state@core3.amsl.com>; Fri, 22 Jan 2010 11:16:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.915
X-Spam-Level:
X-Spam-Status: No, score=-1.915 tagged_above=-999 required=5 tests=[AWL=0.062, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 aJYMFQcBbkFD for <http-state@core3.amsl.com>; Fri, 22 Jan 2010 11:16:32 -0800 (PST)
Received: from mail-pz0-f183.google.com (mail-pz0-f183.google.com [209.85.222.183]) by core3.amsl.com (Postfix) with ESMTP id 293BB3A6936 for <http-state@ietf.org>; Fri, 22 Jan 2010 11:16:32 -0800 (PST)
Received: by pzk13 with SMTP id 13so340488pzk.29 for <http-state@ietf.org>; Fri, 22 Jan 2010 11:16:25 -0800 (PST)
MIME-Version: 1.0
Received: by 10.142.75.1 with SMTP id x1mr2250510wfa.194.1264187785257; Fri, 22 Jan 2010 11:16:25 -0800 (PST)
In-Reply-To: <4B59F805.8060508@gmail.com>
References: <7789133a1001220050m56cc438x35099b7972639331@mail.gmail.com> <alpine.DEB.2.00.1001220957240.9467@tvnag.unkk.fr> <7789133a1001220949l24c0f774t7ff0f0ab10a3dfa4@mail.gmail.com> <4B59F805.8060508@gmail.com>
From: Adam Barth <ietf@adambarth.com>
Date: Fri, 22 Jan 2010 11:16:05 -0800
Message-ID: <7789133a1001221116r3ea1ab8dxe3dd44ebb4527838@mail.gmail.com>
To: Dan Winship <dan.winship@gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: Daniel Stenberg <daniel@haxx.se>, http-state <http-state@ietf.org>
Subject: Re: [http-state] Ticket 6: host-only cookies
X-BeenThere: http-state@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Discuss HTTP State Management Mechanism <http-state.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/http-state>, <mailto:http-state-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/http-state>
List-Post: <mailto:http-state@ietf.org>
List-Help: <mailto:http-state-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/http-state>, <mailto:http-state-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 22 Jan 2010 19:16:33 -0000

On Fri, Jan 22, 2010 at 11:09 AM, Dan Winship <dan.winship@gmail.com> wrote:
> On 01/22/2010 12:49 PM, Adam Barth wrote:
>> In this case, we see that every non-IE user agent has decided to
>> support host-only cookies.  Given the collective market share of these
>> user agents, that's strong evidence that the behavior is sufficiently
>> interoperable with existing servers.
>
> In this case the problem isn't whether the client behavior is
> interoperable with servers, it's whether the server behavior (of
> expecting host-only cookies to actually be treated as host-only) is
> interoperable with clients. And more than 50% of the time, it's not.
>
>> Also, there is a large security
>> benefit to implementing host-only cookies.
>
> But there's a large security FAIL for servers if their security model
> assumes that clients will implement host-only cookies, and then it turns
> out that some clients don't. And since we already know that some
> (/many/most) clients don't, sites that want to be secure have to find
> some other way to protect themselves and their users that doesn't depend
> on having working host-only cookies. (Because, as recently demonstrated,
> hackers can do plenty of damage even if they can only hack IE users. :)

Indeed.  I think you're arguing that we should warn servers about IE's
behavior in the specification directly instead of referring to a
second document.  I'd be inclined to note this behavior where we
explain host-only cookies and again in the security consideration
section.  Those should be the two most common places folks will look
for this kind of information.

Adam