Re: [Acme] ACME vulnerabilities in SimpleHTTP and DVSNI due to common webservers' default virtual host semantics

Michael Richardson <mcr@sandelman.ca> Thu, 24 September 2015 17:19 UTC

Return-Path: <mcr@sandelman.ca>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7CB1A1B2BC5 for <acme@ietfa.amsl.com>; Thu, 24 Sep 2015 10:19:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level:
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 OQYYxmHhnrbe for <acme@ietfa.amsl.com>; Thu, 24 Sep 2015 10:19:40 -0700 (PDT)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 993971B2B3E for <acme@ietf.org>; Thu, 24 Sep 2015 10:19:40 -0700 (PDT)
Received: from sandelman.ca (obiwan.sandelman.ca [209.87.249.21]) by tuna.sandelman.ca (Postfix) with ESMTP id 3D91F2009E; Thu, 24 Sep 2015 13:20:52 -0400 (EDT)
Received: by sandelman.ca (Postfix, from userid 179) id D16D7637F8; Thu, 24 Sep 2015 13:19:38 -0400 (EDT)
Received: from sandelman.ca (localhost [127.0.0.1]) by sandelman.ca (Postfix) with ESMTP id B1551637F7; Thu, 24 Sep 2015 13:19:38 -0400 (EDT)
From: Michael Richardson <mcr@sandelman.ca>
To: Peter Eckersley <pde@eff.org>
In-Reply-To: <20150924165249.GP28925@eff.org>
References: <20150922215258.GJ17243@eff.org> <CAL02cgTaaaEtX1mcLrP6fxqMp_Q+9y+f+E0DYFedzMaJ5nXDRw@mail.gmail.com> <20150923211646.38db2ba94b986acac6caa431@andrewayer.name> <20150924045234.GL28925@eff.org> <30503.1443103383@sandelman.ca> <20150924165249.GP28925@eff.org>
X-Mailer: MH-E 8.6; nmh 1.3-dev; GNU Emacs 24.4.2
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha1"; protocol="application/pgp-signature"
Date: Thu, 24 Sep 2015 13:19:38 -0400
Message-ID: <7277.1443115178@sandelman.ca>
Sender: mcr@sandelman.ca
Cc: Richard Barnes <rlb@ipv.sx>, "acme@ietf.org" <acme@ietf.org>, Andrew Ayer <agwa@andrewayer.name>
Subject: Re: [Acme] ACME vulnerabilities in SimpleHTTP and DVSNI due to common webservers' default virtual host semantics
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Sep 2015 17:19:42 -0000

Peter Eckersley <pde@eff.org> wrote:
    >> > Boulder does indeed follow redirects, so that's our current plan.
    >>
    >> So, if the verifier follows an HTTP redirect to an HTTPS site (does it
    >> even have to be same name?), which has a (at that point) bogus
    >> certificate, and Boulder can cope with that, when why bother having
    >> the SimpleHTTP check method at all?
    >>
    >> Why not just always use SimpleHTTPS?

    > Because it is common for webservers to be configured with HTTPS vhosts
    > that are a strict subset of the HTTP ones, plus a misallocted
    > default/wildcard HTTPS vhost that is controlled by the
    > tenant/hypothetical attacker.

Ah, so the attacker can control the wildcard HTTPS, and therefore get HTTPS
certificates for the vhosts that do not have their own HTTPS vhost.

I got it.

--
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        | network architect  [
]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [