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

Blake Frantz <> Mon, 01 February 2010 16:32 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id CC8BC3A695E for <>; Mon, 1 Feb 2010 08:32:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.265
X-Spam-Status: No, score=-2.265 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id dd-Hc94VR+gh for <>; Mon, 1 Feb 2010 08:32:21 -0800 (PST)
Received: from ( []) by (Postfix) with ESMTP id 277573A672E for <>; Mon, 1 Feb 2010 08:32:21 -0800 (PST)
Received: from (localhost []) by (SMTP Server) with ESMTP id 30DAD30B04E1; Mon, 1 Feb 2010 11:32:55 -0500 (EST)
Received: from ( []) by (SMTP Server) with ESMTPS id 19B2E30B02D6; Mon, 1 Feb 2010 11:32:54 -0500 (EST)
Received: from ([]) by ([]) with mapi; Mon, 1 Feb 2010 10:32:46 -0600
From: Blake Frantz <>
To: Dan Winship <>, Adam Barth <>
Date: Mon, 01 Feb 2010 10:32:42 -0600
Thread-Topic: [http-state] Ticket 6: host-only cookies
Thread-Index: AcqbcHjjyC+7JvC3T/WCHxIewvwEigH65L1A
Message-ID: <>
References: <> <>
In-Reply-To: <>
Accept-Language: en-US
Content-Language: en-US
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: http-state <>
Subject: Re: [http-state] Ticket 6: host-only cookies
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Discuss HTTP State Management Mechanism <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Mon, 01 Feb 2010 16:32:24 -0000

I support Dan's approach.

-----Original Message-----
From: [] On Behalf Of Dan Winship
Sent: Friday, January 22, 2010 6:38 AM
To: Adam Barth
Cc: http-state
Subject: Re: [http-state] Ticket 6: host-only cookies

On 01/22/2010 03:50 AM, Adam Barth wrote:
> 1) Specify host-only cookies to match Firefox, Chrome, Safari, and
> Opera.  This is best for security, and I think there's a good chance
> that IE will adopt host-only cookies in future, but I don't have any
> citable evidence for this belief.  (The draft currently matches this
> proposal.)

The other argument in favor of this is that the host-only cookie rule
was part of the original Netscape spec, so this isn't just a case of
unspecified behavior where some browsers do one thing and others do
another, or of clients being-liberal-in-what-they-accept to work around
server problems. IE is just doing it wrong.

> 3) Allow both behaviors.  This alternative is the worst for security
> because it makes the cookie protocol less predictable.  When all the
> other browsers agree on a behavior that's better than the IE behavior,
> I think we can require the non-IE behavior.

Well... allowing both behaviors doesn't *make* the protocol less
predictable, because the protocol already *is* less predictable, and
will continue to be for several years at least, regardless of what we
say. So we should document the unpredictability, so that server authors
will know that they have to take steps to protect themselves against
unintended cookie leakage in some cases.

So my vote is, require clients to implement host-only cookies (as the
Netscape spec did), but note in the corresponding server-side section
that some clients don't do this, with some discussion of the security

-- Dan
http-state mailing list