Re: Linking a cookie to an IP address is a very bad in 2015...
Zhong Yu <zhong.j.yu@gmail.com> Thu, 02 April 2015 16:21 UTC
Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2FC8D1B2D30 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 2 Apr 2015 09:21:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.412
X-Spam-Level:
X-Spam-Status: No, score=-6.412 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, J_CHICKENPOX_52=0.6, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n6Ck104gJgjU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 2 Apr 2015 09:21:39 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ADAD31ACCFD for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 2 Apr 2015 09:21:39 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Ydhpd-0007G8-9L for ietf-http-wg-dist@listhub.w3.org; Thu, 02 Apr 2015 16:19:01 +0000
Resent-Date: Thu, 02 Apr 2015 16:19:01 +0000
Resent-Message-Id: <E1Ydhpd-0007G8-9L@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.80) (envelope-from <zhong.j.yu@gmail.com>) id 1Ydhpa-0007Ay-FY for ietf-http-wg@listhub.w3.org; Thu, 02 Apr 2015 16:18:58 +0000
Received: from mail-ob0-f178.google.com ([209.85.214.178]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1YdhpZ-0007TT-GP for ietf-http-wg@w3.org; Thu, 02 Apr 2015 16:18:58 +0000
Received: by obbfy7 with SMTP id fy7so51555444obb.2 for <ietf-http-wg@w3.org>; Thu, 02 Apr 2015 09:18:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=GgzmexQh4pMi7rB5HE8Ama1lXejIa/nD/CE8Ku/JXaw=; b=V3RCjdeuMzb7uUWYkQd76vuK7EBUWg/vqjB+8gmAp47yqHnjVhOu4GVrQIdRUc98tS /ZufNsz8gGwCmRGfQAsmhn4cf2M+aDCIFcpg6Y/TtOy7Mh3VqJBCOdWvl3T8ztcZ9wv4 FndxFvGWxf1FXG1iND1KOlZlbal1a5qF93cpXsPNrR+sz10Eju+ug6w5PRdOngaMqk9d VXCt6s67Mt/n8qc/dOT2QkqA/Qe2pHjU4YXahEhjBlcHu5Eo/26X9eiAkoJEmRdLotvB 0xPL7Jx70yckl9NfTasdN4IURPa8lYn+sva8lKKeeYJvPfCcccQF1ql97WKspF/fDp36 voNQ==
MIME-Version: 1.0
X-Received: by 10.60.161.36 with SMTP id xp4mr39789139oeb.61.1427991510356; Thu, 02 Apr 2015 09:18:30 -0700 (PDT)
Received: by 10.76.175.9 with HTTP; Thu, 2 Apr 2015 09:18:30 -0700 (PDT)
In-Reply-To: <33D4BE4E-97DE-4F64-9CB3-53AF516960C6@apple.com>
References: <D141A3E5.4146E%evyncke@cisco.com> <20150401114608.GA7832@1wt.eu> <04DD393C-711F-4C9E-B21C-B184B8972DFC@apple.com> <20150401150716.GA7871@1wt.eu> <25C792A9-56D0-452D-A46C-561A44E4F229@manico.net> <20150401151634.GB7871@1wt.eu> <CABb0SYQ5=5BHSH-JQ5XsCi_bQ8h5FN=WNPvAYkzy94Bm=yTVwg@mail.gmail.com> <20150401195439.GC8021@1wt.eu> <CABb0SYTpk+rOB_1m5x5ahH1jDv30Ypx7Bu-k86wStg5mmO0R3w@mail.gmail.com> <D142AB83.41725%evyncke@cisco.com> <33D4BE4E-97DE-4F64-9CB3-53AF516960C6@apple.com>
Date: Thu, 02 Apr 2015 11:18:30 -0500
Message-ID: <CACuKZqFybQiGmwafArSFhtojYd1X=Pq++Dmm7V5dtaM_2qJnmg@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: Michael Sweet <msweet@apple.com>
Cc: "Eric Vyncke (evyncke)" <evyncke@cisco.com>, Max Bruce <max.bruce12@gmail.com>, Willy Tarreau <w@1wt.eu>, Jim Manico <jim@manico.net>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.214.178; envelope-from=zhong.j.yu@gmail.com; helo=mail-ob0-f178.google.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-1.696, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1YdhpZ-0007TT-GP 4413d1e6e385b711c55a7273eaabcea2
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Linking a cookie to an IP address is a very bad in 2015...
Archived-At: <http://www.w3.org/mid/CACuKZqFybQiGmwafArSFhtojYd1X=Pq++Dmm7V5dtaM_2qJnmg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/29218
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>
The HttpOnly flag is ... interesting. If a page contains injected scripts, game over, the attacker can do anything as the authorized user. The HttpOnly flag is like, you are walking in a thunderstorm? here, wear this tinfoil hat. Zhong Yu bayou.io On Thu, Apr 2, 2015 at 5:46 AM, Michael Sweet <msweet@apple.com> wrote: > The cookie info should not be accessible to JavaScript if the HttpOnly flag > is specified when the cookie is set... (Unless the browser is seriously > broken...) > > Sent from my iPad > > On Apr 2, 2015, at 2:18 AM, Eric Vyncke (evyncke) <evyncke@cisco.com> wrote: > > Using User-Agent appears to me as more stable than the IP address for sure > :-) > > And to reply to the suggestion of always using SSL (which is probably good > anyway): it is not enough as cookies can be stolen from the browser itself > if an attacker can inject some javascript into the browser (using the good > old cross site scripting for example) > > -éric > > From: Max Bruce <max.bruce12@gmail.com> > Date: mercredi 1 avril 2015 15:57 > To: Willy Tarreau <w@1wt.eu> > Cc: Jim Manico <jim@manico.net>, Michael Sweet <msweet@apple.com>, Eric > Vyncke <evyncke@cisco.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org> > Subject: Re: Linking a cookie to an IP address is a very bad in 2015... > > That's a great point. What about User-Agent checking? > > On Wed, Apr 1, 2015 at 12:54 PM, Willy Tarreau <w@1wt.eu> wrote: >> >> On Wed, Apr 01, 2015 at 12:48:36PM -0700, Max Bruce wrote: >> > What about linking to several? I wrote a session system for my Web >> > Server >> > that will only allow access to the original Session ID if the IP & >> > User-Agent has remained unchanged, in order to protect against session >> > hijacking. I've found it's highly effective, unless you IP Spoof. >> >> Sure it's highly effective. Just like it's highly effective in randomly >> denying access to people who browse using multiple WiFi access point or >> who switch between 3G and WiFi. >> >> Willy >> >
- Linking a cookie to an IP address is a very bad i… Eric Vyncke (evyncke)
- Re: Linking a cookie to an IP address is a very b… Willy Tarreau
- Re: Linking a cookie to an IP address is a very b… Willy Tarreau
- Re: Linking a cookie to an IP address is a very b… Eric Vyncke (evyncke)
- Re: Linking a cookie to an IP address is a very b… Michael Sweet
- Re: Linking a cookie to an IP address is a very b… Willy Tarreau
- Re: Linking a cookie to an IP address is a very b… Jim Manico
- Re: Linking a cookie to an IP address is a very b… Willy Tarreau
- Re: Linking a cookie to an IP address is a very b… Max Bruce
- Re: Linking a cookie to an IP address is a very b… Willy Tarreau
- Re: Linking a cookie to an IP address is a very b… Max Bruce
- Re: Linking a cookie to an IP address is a very b… Willy Tarreau
- Re: Linking a cookie to an IP address is a very b… Michael Sweet
- Re: Linking a cookie to an IP address is a very b… Michael Sweet
- Re: Linking a cookie to an IP address is a very b… Jim Manico
- Re: Linking a cookie to an IP address is a very b… Eric Vyncke (evyncke)
- Re: Linking a cookie to an IP address is a very b… Eric Vyncke (evyncke)
- Re: Linking a cookie to an IP address is a very b… Michael Sweet
- Re: Linking a cookie to an IP address is a very b… Zhong Yu
- Re: Linking a cookie to an IP address is a very b… Martin Thomson
- Re: Linking a cookie to an IP address is a very b… Zhong Yu
- Re: Linking a cookie to an IP address is a very b… Zhong Yu
- Re: Linking a cookie to an IP address is a very b… Martin Thomson
- Re: Linking a cookie to an IP address is a very b… Zhong Yu
- Re: Linking a cookie to an IP address is a very b… Michael Sweet
- Re: Linking a cookie to an IP address is a very b… Jim Manico
- Re: Linking a cookie to an IP address is a very b… Jim Manico
- Re: Linking a cookie to an IP address is a very b… Walter H.
- Re: Linking a cookie to an IP address is a very b… Willy Tarreau
- Re: Linking a cookie to an IP address is a very b… Walter H.
- Re: Linking a cookie to an IP address is a very b… Willy Tarreau
- Re: Linking a cookie to an IP address is a very b… Walter H.
- Re: Linking a cookie to an IP address is a very b… Max Bruce
- Re: Linking a cookie to an IP address is a very b… Walter H.
- Re: Linking a cookie to an IP address is a very b… Max Bruce
- Re: Linking a cookie to an IP address is a very b… Eric Vyncke (evyncke)
- Re: Linking a cookie to an IP address is a very b… Jim Manico
- Re: Linking a cookie to an IP address is a very b… Walter H.
- Re: Linking a cookie to an IP address is a very b… Walter H.
- Re: Linking a cookie to an IP address is a very b… Jim Manico
- Re: Linking a cookie to an IP address is a very b… Max Bruce
- Re: Linking a cookie to an IP address is a very b… Max Bruce
- Re: Linking a cookie to an IP address is a very b… Jim Manico
- Re: Linking a cookie to an IP address is a very b… Eric Vyncke (evyncke)
- Re: Linking a cookie to an IP address is a very b… Walter H.