Re: [http-state] Ticket 6: host-only cookies
Adam Barth <ietf@adambarth.com> Tue, 02 February 2010 06:59 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 C342B3A6A95 for <http-state@core3.amsl.com>; Mon, 1 Feb 2010 22:59:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.875
X-Spam-Level:
X-Spam-Status: No, score=-1.875 tagged_above=-999 required=5 tests=[AWL=0.102, 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 QY3-YSV7YFQm for <http-state@core3.amsl.com>; Mon, 1 Feb 2010 22:59:54 -0800 (PST)
Received: from mail-px0-f186.google.com (mail-px0-f186.google.com [209.85.216.186]) by core3.amsl.com (Postfix) with ESMTP id C7AA33A6A08 for <http-state@ietf.org>; Mon, 1 Feb 2010 22:59:54 -0800 (PST)
Received: by pxi16 with SMTP id 16so5712587pxi.29 for <http-state@ietf.org>; Mon, 01 Feb 2010 23:00:28 -0800 (PST)
MIME-Version: 1.0
Received: by 10.142.61.20 with SMTP id j20mr251119wfa.105.1265094028348; Mon, 01 Feb 2010 23:00:28 -0800 (PST)
In-Reply-To: <4C374A2653EB5E43AF886CE70DFC567213CE9BE2B4@34093-MBX-C03.mex07a.mlsrvr.com>
References: <7789133a1001220050m56cc438x35099b7972639331@mail.gmail.com> <4B59B834.3030500@gmail.com> <4C374A2653EB5E43AF886CE70DFC567213CE9BE2B4@34093-MBX-C03.mex07a.mlsrvr.com>
From: Adam Barth <ietf@adambarth.com>
Date: Mon, 01 Feb 2010 23:00:07 -0800
Message-ID: <7789133a1002012300k4627d9a2sad7f5b776c544487@mail.gmail.com>
To: Blake Frantz <bfrantz@cisecurity.org>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: 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: Tue, 02 Feb 2010 06:59:56 -0000
I've added the following text to the server section, as recommend by Dan Winship: <t>WARNING: Some legacy user agents treat an absent Domain attribute as if the Domain attribute were present and contained the current host name. For example, if example.com returns a Set-Cookie header without a Domain attribute, these user agents will send the cookie to www.example.com.</t> Adam On Mon, Feb 1, 2010 at 8:32 AM, Blake Frantz <bfrantz@cisecurity.org> wrote: > I support Dan's approach. > > B > -----Original Message----- > From: http-state-bounces@ietf.org [mailto:http-state-bounces@ietf.org] 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 > issues. > > -- Dan > _______________________________________________ > http-state mailing list > http-state@ietf.org > https://www.ietf.org/mailman/listinfo/http-state >
- [http-state] Ticket 6: host-only cookies Adam Barth
- Re: [http-state] Ticket 6: host-only cookies Daniel Stenberg
- Re: [http-state] Ticket 6: host-only cookies Dan Winship
- Re: [http-state] Ticket 6: host-only cookies Adam Barth
- Re: [http-state] Ticket 6: host-only cookies Adam Barth
- Re: [http-state] Ticket 6: host-only cookies Dan Winship
- Re: [http-state] Ticket 6: host-only cookies Adam Barth
- Re: [http-state] Ticket 6: host-only cookies Maciej Stachowiak
- Re: [http-state] Ticket 6: host-only cookies Roy T. Fielding
- Re: [http-state] Ticket 6: host-only cookies Adam Barth
- Re: [http-state] Ticket 6: host-only cookies Roy T. Fielding
- Re: [http-state] Ticket 6: host-only cookies Adam Barth
- Re: [http-state] Ticket 6: host-only cookies Bil Corry
- Re: [http-state] Ticket 6: host-only cookies Adam Barth
- Re: [http-state] Ticket 6: host-only cookies Eran Hammer-Lahav
- Re: [http-state] Ticket 6: host-only cookies Julian Reschke
- Re: [http-state] Ticket 6: host-only cookies Bil Corry
- Re: [http-state] Ticket 6: host-only cookies Adam Barth
- Re: [http-state] Ticket 6: host-only cookies Julian Reschke
- Re: [http-state] Ticket 6: host-only cookies Dan Winship
- Re: [http-state] Ticket 6: host-only cookies Lisa Dusseault
- Re: [http-state] Ticket 6: host-only cookies Blake Frantz
- Re: [http-state] Ticket 6: host-only cookies Adam Barth
- Re: [http-state] Ticket 6: host-only cookies Bil Corry
- Re: [http-state] Ticket 6: host-only cookies Adam Barth
- Re: [http-state] Ticket 6: host-only cookies Dave Kristol
- Re: [http-state] Ticket 6: host-only cookies Adam Barth
- Re: [http-state] Ticket 6: host-only cookies Dave Kristol
- Re: [http-state] Ticket 6: host-only cookies Adam Barth
- Re: [http-state] Ticket 6: host-only cookies Bil Corry
- Re: [http-state] Ticket 6: host-only cookies Mark Pauley