Re: [http-state] Welcome to http-state

"Adam Barth" <ietf@adambarth.com> Mon, 12 January 2009 23:08 UTC

Return-Path: <http-state-bounces@ietf.org>
X-Original-To: http-state-archive@ietf.org
Delivered-To: ietfarch-http-state-archive@core3.amsl.com
Received: from [127.0.0.1] (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D9FC53A67EA; Mon, 12 Jan 2009 15:08:55 -0800 (PST)
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 DA47E3A67EA for <http-state@core3.amsl.com>; Mon, 12 Jan 2009 15:08:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[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 RzYqJqic-ar1 for <http-state@core3.amsl.com>; Mon, 12 Jan 2009 15:08:54 -0800 (PST)
Received: from mail-ew0-f17.google.com (mail-ew0-f17.google.com [209.85.219.17]) by core3.amsl.com (Postfix) with ESMTP id A4C3A3A67C0 for <http-state@ietf.org>; Mon, 12 Jan 2009 15:08:53 -0800 (PST)
Received: by ewy10 with SMTP id 10so11779266ewy.13 for <http-state@ietf.org>; Mon, 12 Jan 2009 15:08:37 -0800 (PST)
Received: by 10.210.109.10 with SMTP id h10mr34797146ebc.39.1231801717374; Mon, 12 Jan 2009 15:08:37 -0800 (PST)
Received: by 10.210.18.3 with HTTP; Mon, 12 Jan 2009 15:08:37 -0800 (PST)
Message-ID: <7789133a0901121508y51bd1d87g2e89846794c8dcf7@mail.gmail.com>
Date: Mon, 12 Jan 2009 15:08:37 -0800
From: Adam Barth <ietf@adambarth.com>
To: Discuss HTTP State Management Mechanism <http-state@ietf.org>
In-Reply-To: <120206B6A348CA498C70E738A2E963514C0CD5@Nexus.cisecurity.lan>
MIME-Version: 1.0
Content-Disposition: inline
References: <49679299.6060703@corry.biz> <120206B6A348CA498C70E738A2E963514C0CCC@Nexus.cisecurity.lan> <7789133a0901121159u1da01de8w77edd52913857358@mail.gmail.com> <120206B6A348CA498C70E738A2E963514C0CD2@Nexus.cisecurity.lan> <7789133a0901121359p635972bod78e7a46a29c1a8b@mail.gmail.com> <120206B6A348CA498C70E738A2E963514C0CD5@Nexus.cisecurity.lan>
X-Google-Sender-Auth: c813f0e55c082502
Subject: Re: [http-state] Welcome to http-state
X-BeenThere: http-state@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: Discuss HTTP State Management Mechanism <http-state@ietf.org>
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/pipermail/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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: http-state-bounces@ietf.org
Errors-To: http-state-bounces@ietf.org

On Mon, Jan 12, 2009 at 2:58 PM, Blake Frantz <bfrantz@cisecurity.org> wrote:

(out of order)

> For the purpose of this
> group, I think we may have identified another bullet item in the list of
> things to accomplish - figure out the best way to protect the integrity
> of Secure cookies.

I'm not an expert on what is or is not in scope for this working
group, but I think its important to protect the integrity of Secure
cookies.  Most people fall out of their chair when they realize Secure
cookies lack integrity.

(Further comments for those interested in the details of this discussion.)

> If the user agent treated two otherwise equal cookies from disparate
> schemes distinctly then the attacker must control content in the HTTPS
> scheme to impact the integrity of the Secure cookie.

While technically true, this doesn't actually help in practice because
Secure and non-Secure cookies are serialized identically in the Cookie
header, make it impossible for the server to tell whether the cookie
was set over HTTP or HTTPS.

> Nice work. In support of this, it *may* be beneficial to modify existing
> XHR mechanisms such that they prevent the programmatic creation of a
> Cookie-Integrity header (http://www.w3.org/TR/XMLHttpRequest/#security).
> I haven't thought through this entirely, though.

XHR has a generic generic namespace of headers that can't be set by
script: those that begin with "Sec-".  We could simple name the header
"Sec-Cookie-Integrity" if we want this behavior.

>> 1) It is backwards compatible with existing servers who might
>> legitimately overwrite Secure cookies over HTTPS (for example, during
>> "logout").
>
> The cross scheme clobber prevention I'm attempting to get feedback on
> does not break this use case.

Oops.  Typo.  I meant "overwrite Secure cookies over HTTP (for
example, during logout)."  We could gather data how often this occurs,
but I suspect many sites that use both HTTP and HTTPS store auth
credentials in a Secure cookie, which they delete with an HTTP request
upon logout.

Adam
_______________________________________________
http-state mailing list
http-state@ietf.org
https://www.ietf.org/mailman/listinfo/http-state