Re: [Acme] Signature misuse vulnerability in draft-barnes-acme-04

Richard Barnes <rlb@ipv.sx> Wed, 12 August 2015 22:54 UTC

Return-Path: <rlb@ipv.sx>
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 9F9041B29D5 for <acme@ietfa.amsl.com>; Wed, 12 Aug 2015 15:54:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.978
X-Spam-Level:
X-Spam-Status: No, score=-1.978 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7] 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 fD4wEto82d1R for <acme@ietfa.amsl.com>; Wed, 12 Aug 2015 15:54:18 -0700 (PDT)
Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E87CE1B29CE for <acme@ietf.org>; Wed, 12 Aug 2015 15:54:17 -0700 (PDT)
Received: by vkhl6 with SMTP id l6so11543026vkh.1 for <acme@ietf.org>; Wed, 12 Aug 2015 15:54:17 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Hk39MWL4St3MEYDKqgtvbXvjisudB3Jz/6OJmbWHcUE=; b=lsvfjK6bmeBH7miWyTY8yP5As/O/7K6DzKRXKwYXMTbcLiRO1WSEtRVaIG8jjUVc7R TKldkk/i0Y9jYCgN7qLPU+Ly0FlKtwIGyQkbytc1O9xVvYoRjNkwyHASeB5Mc9YJjFn3 Q/xMglfWpsFEc8STZ61ESAFV85yz3ZfZJ448VHjHIiCmN3bILHr4cLmZJdc7tVLJu2rX YHkRbFDsXOyjV4Z537dqC8i93l0K/ausa37ip0yGAiC5DAS1nmhLcHBZnEGoA1+aMxu7 unYs/+m87Rf2sNiT4J7/JPDBQbGkuCGViOG63x45hmfLzQWJD94iG8oxCIca9gZwnWF7 YvCA==
X-Gm-Message-State: ALoCoQkZEhil38azx8Gr4diazYdCsmEnLmNnJWADKF2G6aEbMwY3B0EJixwszP+BeNwre0lD+DmN
MIME-Version: 1.0
X-Received: by 10.52.69.241 with SMTP id h17mr44155775vdu.68.1439420057117; Wed, 12 Aug 2015 15:54:17 -0700 (PDT)
Received: by 10.31.164.207 with HTTP; Wed, 12 Aug 2015 15:54:17 -0700 (PDT)
In-Reply-To: <55CBB2D8.2080504@eff.org>
References: <20150811085205.bbcd37b3b0bb0482f6522b1a@andrewayer.name> <CAL02cgRf2M0Gkqymif-=rmNG0v9hhaMC2SBiXf-n5aYiRKBnmQ@mail.gmail.com> <55CBB2D8.2080504@eff.org>
Date: Wed, 12 Aug 2015 15:54:17 -0700
Message-ID: <CAL02cgTLiV1mW76ZDBZVmM49YogXnE7=N3qd2E5fm+bMZ+nE4Q@mail.gmail.com>
From: Richard Barnes <rlb@ipv.sx>
To: yan <yan@eff.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/J-wQjBFfGxDxqsztKcoUdumM914>
Cc: "acme@ietf.org" <acme@ietf.org>, Andrew Ayer <agwa@andrewayer.name>
Subject: Re: [Acme] Signature misuse vulnerability in draft-barnes-acme-04
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: Wed, 12 Aug 2015 22:54:22 -0000

On Wed, Aug 12, 2015 at 1:55 PM, yan <yan@eff.org> wrote:
>
>
> On 8/11/15 10:52 PM, Richard Barnes wrote:
>
>> Smallest diff change from the current document would be simply to
>> explicitly require validation value bound to account key that created
>> it -- not the one the signs the response.  Since the attack requires
>> that the attacker change keys (using recovery) after receiving the
>> token, the attack only works if the validation is done against the new
>> public key.  This option introduces non-trivial implementation
>> complexity, though, since the server now has to remember what key
>> signed the new-authorization request that caused the challenges to be
>> issued.
>
>
> Doesn't it already have to remember this? The current instructions for
> verifying a DNS challenge says: "1. Verify the validation JWS using the
> account key for which this challenge was issued."
>
> Since the challenge was issued before the attacker initiated account
> recovery to do the key change, the wording implies that the server remembers
> the original key at validation time.

Yeah, good point.  I still think that it would be better to simplify
things in the way Andrew suggested.

--Richard