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

Daniel Stenberg <daniel@haxx.se> Fri, 22 January 2010 11:01 UTC

Return-Path: <daniel@haxx.se>
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 9799A3A6868 for <http-state@core3.amsl.com>; Fri, 22 Jan 2010 03:01:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.189
X-Spam-Level:
X-Spam-Status: No, score=-2.189 tagged_above=-999 required=5 tests=[AWL=0.060, BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 4xADhIwxA6SE for <http-state@core3.amsl.com>; Fri, 22 Jan 2010 03:01:04 -0800 (PST)
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42]) by core3.amsl.com (Postfix) with ESMTP id 415753A67BD for <http-state@ietf.org>; Fri, 22 Jan 2010 03:01:04 -0800 (PST)
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42]) by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0MB0uxK008313; Fri, 22 Jan 2010 12:00:56 +0100
Date: Fri, 22 Jan 2010 12:00:56 +0100
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: Adam Barth <ietf@adambarth.com>
In-Reply-To: <7789133a1001220050m56cc438x35099b7972639331@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1001220957240.9467@tvnag.unkk.fr>
References: <7789133a1001220050m56cc438x35099b7972639331@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format="flowed"; charset="US-ASCII"
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: Fri, 22 Jan 2010 11:01:05 -0000

On Fri, 22 Jan 2010, 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.)

Even though this would be the best security option (and in general I think it 
makes more sense), I don't think we can neglect that one rather widely used 
implementation doesn't do it this way.

Sites out there that depend on this bug/feature in IE will break. And we know 
there exist many IE-crafted sites out there (although I guess nobody really 
knows how many of those that might depend on this particular thing).

I'm guessing this is a difference that simply will remain for a good while 
forward. The non-IE browsers won't do it this way due to security and IE does 
it this way by tradition and the good old "we won't change any behaviors since 
then something will break for our users".

So, I'm afraid I'm leaning towards (3): Allow both behaviors.

-- 

  / daniel.haxx.se