Re: [Acme] http-01 and jws thumbnail

Stefan Eissing <stefan@eissing.org> Tue, 16 July 2019 21:16 UTC

Return-Path: <stefan@eissing.org>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0CD3412011B for <acme@ietfa.amsl.com>; Tue, 16 Jul 2019 14:16:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=greenbytes.de header.b=PRpX3rMC; dkim=pass (1024-bit key) header.d=greenbytes.de header.b=Yxx5xj9j
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 fWx-SfiotmGW for <acme@ietfa.amsl.com>; Tue, 16 Jul 2019 14:16:26 -0700 (PDT)
Received: from mail.greenbytes.de (mail.greenbytes.de [217.91.35.233]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EBF4212006A for <acme@ietf.org>; Tue, 16 Jul 2019 14:16:25 -0700 (PDT)
Received: by mail.greenbytes.de (Postfix, from userid 117) id 4782315A2EE1; Tue, 16 Jul 2019 23:16:24 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greenbytes.de; s=mail; t=1563311784; bh=QsD8hKoROq8dtV2N5PTntsMN1HSHDUaE0JYGhtvGiME=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=PRpX3rMC6NuEESjNeBBIfmd3mUagO/nyPNwsC/oVwhc7Q83J9rHOonu1y6KxmobPb D1Si7b0x963cU2dVI6IRLdKJFLfB83J72wVlXyXx46aoLDTNKzs2lni9aOH8PGNnFU Fb0BnAfyHyzxzw2B0BWmHvx6VNiJnY7KWya7LCPc=
Received: from [192.168.178.61] (unknown [93.207.146.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.greenbytes.de (Postfix) with ESMTPSA id E69BB15A2EE1; Tue, 16 Jul 2019 23:16:22 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greenbytes.de; s=mail; t=1563311783; bh=QsD8hKoROq8dtV2N5PTntsMN1HSHDUaE0JYGhtvGiME=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Yxx5xj9j5OLAzQg0KyOaMDc+OtS9xOa7RbJPEil0RBNXksCjH8aJ1GpVLD80ydfFt 912XOhkyEnMuyZgA9FE47egOOwjlHevWAe6YHPP/YJ6HC6yiZYrFU3e1oqfR+9S1Cf xXY4sfi5FCmNqKKZdXZzcn7XNN3xTEnwrGnsp6o4=
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (1.0)
From: Stefan Eissing <stefan@eissing.org>
X-Mailer: iPhone Mail (16F203)
In-Reply-To: <d4fa1127-82a2-aefd-3467-ff2f54c67e45@eff.org>
Date: Tue, 16 Jul 2019 23:16:22 +0200
Cc: Alan Doherty <ietf@alandoherty.net>, Stefan Eissing <stefan.eissing@greenbytes.de>, acme@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <EE6F4F17-B409-45F0-9FC2-A66BB2C4F0B6@eissing.org>
References: <41AA2F57-A9B7-4A12-9D74-432528BFEBF6@greenbytes.de> <E1hnSI4-0000hg-8u@bigsvr.orionnetworks.ie> <d4fa1127-82a2-aefd-3467-ff2f54c67e45@eff.org>
To: Jacob Hoffman-Andrews <jsha@eff.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/acme/wpYU6UgucPYvnZfO03YMw8fv_Wg>
Subject: Re: [Acme] http-01 and jws thumbnail
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 16 Jul 2019 21:16:28 -0000

Thanks for the replies. I do not plan to make this general behaviour, maybe as an opt-in by an admin.

Cheers, Stefan

> Am 16.07.2019 um 20:39 schrieb Jacob Hoffman-Andrews <jsha@eff.org>:
> 
> 
>> At 11:55 16/07/2019  Tuesday, Stefan Eissing wrote:
>>> A user of my Apache ACME client asked about a feature where the security implications are not clear to me:
>>> 
>>> - he has several server instances that may receive the CA's http-01 challenge request. He therefore would like all servers to answer to all challenges like the solution proposed by acme.sh: <https://github.com/Neilpang/acme.sh/wiki/Stateless-Mode>
>>> 
>>> server {
>>> ....
>>>  location ~ ^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$ {
>>>    default_type text/plain;
>>>    return 200 "$1.6fXAG9VyG0IahirPEU2ZerUtItW2DHzDzD9wZaEKpqd";
>>>  }
>>> 
>>> which sends the thumbnail back to anyone asking. Is this an example to follow? It feels very open...
> I can't find anything terribly wrong with it. The two most important things are (a) it binds to the account key fingerprint, so it doesn't let some other person get a certificate for you, and (b) it filters by a narrow set of valid characters, which prevents this from being an XSS vector (https://labs.detectify.com/2018/09/04/xss-using-quirky-implementations-of-acme-http-01/).
> 
> Still, it seems like other clients get along fine with a stateful mode, which narrows the realm of possible unforeseen problems with this approach.
> 
> _______________________________________________
> Acme mailing list
> Acme@ietf.org
> https://www.ietf.org/mailman/listinfo/acme