Re: [websec] cookie injection attack via superdomain of HSTS Host (was: [Technical Errata Reported] RFC6797 (4075)

Yoav Nir <ynir.ietf@gmail.com> Sat, 09 August 2014 21:46 UTC

Return-Path: <ynir.ietf@gmail.com>
X-Original-To: websec@ietfa.amsl.com
Delivered-To: websec@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 796A61A01D6 for <websec@ietfa.amsl.com>; Sat, 9 Aug 2014 14:46:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.7
X-Spam-Level:
X-Spam-Status: No, score=0.7 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] 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 FNztwHatOOB9 for <websec@ietfa.amsl.com>; Sat, 9 Aug 2014 14:46:42 -0700 (PDT)
Received: from mail-we0-x22e.google.com (mail-we0-x22e.google.com [IPv6:2a00:1450:400c:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F1CAB1A019A for <websec@ietf.org>; Sat, 9 Aug 2014 14:46:41 -0700 (PDT)
Received: by mail-we0-f174.google.com with SMTP id x48so7097426wes.19 for <websec@ietf.org>; Sat, 09 Aug 2014 14:46:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=B6jGKo6l7WaYsGQIlsmi7cMesSzx+CILqqkwtsudi4o=; b=Eeyge6yXuZbmth3wtWmJIbhzwhWeJl8OB5nyA0UZcaNgbNeqZbTjLK4KQCMPaqLOxf yVP1WaNxnXIDc23sX2y8tZGGZLsc8qUWrRmif3+8v1fz8oHrdwVa74VORHWvyPtJ5vSb sUI0rUyrdnUAjYrY2AB6JOj8SAW3O6gtCoxW8oD9PYFPU44MGCOeejCCuwEBkLFai0lF vGjelr0mTrhu8TfAtieFIvYDTZVe3vAs8y5LbMWp6Bf3ijU/ETqXEpssBLQYScvaVNo5 bajHIzHF8f0lNFQnDTTxUa1RvbT7PAwtx/0zVfGsMa7kVun3c+S994z0KCueUMrkX4Gn 1qHA==
X-Received: by 10.194.222.230 with SMTP id qp6mr41732917wjc.23.1407620800610; Sat, 09 Aug 2014 14:46:40 -0700 (PDT)
Received: from [192.168.1.100] (bzq-84-109-50-18.red.bezeqint.net. [84.109.50.18]) by mx.google.com with ESMTPSA id eb4sm23307043wic.16.2014.08.09.14.46.39 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 09 Aug 2014 14:46:40 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Content-Type: text/plain; charset="windows-1252"
From: Yoav Nir <ynir.ietf@gmail.com>
X-Priority: 3
In-Reply-To: <COL131-DS9E68224E55DB0534D47F5F0EF0@phx.gbl>
Date: Sun, 10 Aug 2014 00:46:41 +0300
Content-Transfer-Encoding: quoted-printable
Message-Id: <AA897446-295F-41AB-9976-5B6E5D87972B@gmail.com>
References: <53E572EA.3000301@KingsMountain.com> <COL131-DS9E68224E55DB0534D47F5F0EF0@phx.gbl>
To: Eric Lawrence <e_lawrence@hotmail.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/websec/1jSgWsRmOeYJssbhJ6gRkpWo60Y
Cc: IETF WebSec WG <websec@ietf.org>
Subject: Re: [websec] cookie injection attack via superdomain of HSTS Host (was: [Technical Errata Reported] RFC6797 (4075)
X-BeenThere: websec@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Web Application Security Minus Authentication and Transport <websec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/websec>, <mailto:websec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/websec/>
List-Post: <mailto:websec@ietf.org>
List-Help: <mailto:websec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/websec>, <mailto:websec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 09 Aug 2014 21:46:43 -0000

On Aug 9, 2014, at 8:46 PM, Eric Lawrence <e_lawrence@hotmail.com> wrote:

> 
> The best scenario, of course, is if a site's HSTS policy is pre-deployed to the browser

These things tend to work for big sites (Facebook, bank of america, Amazon) and not so well for smaller sites.  I wonder if a good modification to HSTS would be to have an “includeParent” directive. Of course we can’t let a subdomain specify a policy for a parent domain, but it could serve as a hint, triggering the UA to probe the parent domain as you suggested. 

That said, this is yet more evidence that cookies are hopelessly broken. 

Yoav
(not wearing any hats)