Re: [websec] Decouple HSTS's two orthogonal effects?

Devdatta Akhawe <dev.akhawe@gmail.com> Thu, 24 March 2011 05:17 UTC

Return-Path: <dev.akhawe@gmail.com>
X-Original-To: websec@core3.amsl.com
Delivered-To: websec@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 110583A6807 for <websec@core3.amsl.com>; Wed, 23 Mar 2011 22:17:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 nMLMOmF+yTPW for <websec@core3.amsl.com>; Wed, 23 Mar 2011 22:16:59 -0700 (PDT)
Received: from mail-ww0-f44.google.com (mail-ww0-f44.google.com [74.125.82.44]) by core3.amsl.com (Postfix) with ESMTP id 0976D3A6823 for <websec@ietf.org>; Wed, 23 Mar 2011 22:16:58 -0700 (PDT)
Received: by wwa36 with SMTP id 36so7514077wwa.13 for <websec@ietf.org>; Wed, 23 Mar 2011 22:18:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=P97q4/ucxJANeMgpeYdxucSqUOg0NqiKIPtMQgdJ9B4=; b=JxH72BP/39if1mQu9bN48alrOuDWqaHjbQ1lIE6CkV8+34Wc3Z1nEh2sZOMhUAuGOB DxbDEeJ5liN4L/Q+5c8VzCS8Uty3ISxcKLcDZGE9c4hEd64UemIZFnI4v83/dIilr9ij H8C59Biatn4t47s89zMYta4C/6/rj28lLZIZk=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=qCKJ8394/prGu5mYIYpIbkFNWCxS1ntH93vSTvATwtZZ3Vmf3cLPO+QVii9LTZKLb7 PmlXCmCK9LZCwqr5bLqa2HT9v8MgJcuXKVWg0dmbLSYHyuKL+mj98XWT134tHn4T1BNf q7hegJrlITKtCeS4wZ9Bm4XagDHX8hgN4PB8o=
Received: by 10.216.142.199 with SMTP id i49mr798954wej.33.1300943912155; Wed, 23 Mar 2011 22:18:32 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.179.70 with HTTP; Wed, 23 Mar 2011 22:18:12 -0700 (PDT)
In-Reply-To: <AANLkTin7j63S3aV+7F-oXi_4Ju_AVJSYfTW+wnWMwoh8@mail.gmail.com>
References: <1300938396.2117.235.camel@localhost> <AANLkTin7j63S3aV+7F-oXi_4Ju_AVJSYfTW+wnWMwoh8@mail.gmail.com>
From: Devdatta Akhawe <dev.akhawe@gmail.com>
Date: Wed, 23 Mar 2011 22:18:12 -0700
Message-ID: <AANLkTi=C1WNt6zzyz9skdtqbyyK0qWSwNyVjbtrjq7ev@mail.gmail.com>
To: Tom Ritter <tom@ritter.vg>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: websec@ietf.org
Subject: Re: [websec] Decouple HSTS's two orthogonal effects?
X-BeenThere: websec@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Web Application Security Minus Authentication and Transport <websec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/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: Thu, 24 Mar 2011 05:17:00 -0000

What design principle is this ?

Seems to me that a design principle should be `don't mix orthogonal
design goals'. If a single goal has multiple effects, so be it. The
design goal is ensuring that interaction with website is not
vulnerable to MITM attacks. Since users click through cert warnings,
showing warnings is not enough (hence the effect 2). And because of
the way the web platform is designed, just switching half-way to SSL
doesn't really buy much security, hence effect 1. But the design goal
is just 1.

If the use cases you mentioned are compelling, then they should be
handled via a separate mechanism. I personally don't find them too
compelling. For Tom's intranet example, (or imagine a large
enterprise), the right thing might be to just add the cert issuer to
the browser CA store.


=devdatta


On 23 March 2011 21:22, Tom Ritter <tom@ritter.vg> wrote:
> I'm new to this list, so apologies if this has been discussed - but I
> was surprised and dismayed when I learned of the coupling of these two
> effects.  A very common situation I find myself in is adding an
> exception for a self-signed certificate or otherwise untrusted
> certificate, either for a personal machine, development machines, or
> intranet machines.  The individual cert is verified by fingerprint
> using out-of-band channels, added, and doesn't change for a while -
> and we'd like to use HSTS on these boxes.  But based off my simple
> testing in Chrome - coupling these effects prevents this workflow.
>
> -tom
> _______________________________________________
> websec mailing list
> websec@ietf.org
> https://www.ietf.org/mailman/listinfo/websec
>