Re: [pkix] Optimizing OCSP - Time for some spec work ?

Peter Gutmann <pgut001@cs.auckland.ac.nz> Thu, 31 October 2019 02:38 UTC

Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C5E001201A3 for <pkix@ietfa.amsl.com>; Wed, 30 Oct 2019 19:38:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.197
X-Spam-Level:
X-Spam-Status: No, score=-4.197 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=auckland.ac.nz
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 CZ6RWX304Fi6 for <pkix@ietfa.amsl.com>; Wed, 30 Oct 2019 19:38:10 -0700 (PDT)
Received: from mx4-int.auckland.ac.nz (mx4-int.auckland.ac.nz [130.216.125.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 14A8A12011F for <pkix@ietf.org>; Wed, 30 Oct 2019 19:38:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=mail; t=1572489491; x=1604025491; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=s/HQyo9wkyCUBs5jEDL3t2qLdOq+6XN2V4oNdQKtAEw=; b=q7n2yMMorHHPSvDXIjqXgf9EAC81XUoofMhjjlARw/EQapuAklU6hX24 8BQzRVr8x1CyDL/vDhSNthhxG7ToXaFCjcHmuo7q3oX1Q4Aksh4M4y5bG OVJuSzeYNW5EJ1GBCNHDpWDZpWw2G0DR2c4sNisC4o3DqcXku6NF1ijo7 mj7VgSgDeQW3Y+MIb404yjFLdqXt9yzIOt6ULniR8EGbQOprV1Lgy7ZYB N4qTxYLwVm9Jvt/F47XQGYqMw1kzymdvOMl2QLtCFtfzk/P7hlwhjjbhz ZEidGt2XUzQwT4a0qKnjXd0dJWyn8u3FLrQe2XZwf6ATHSuFrKITOK6an Q==;
X-IronPort-AV: E=Sophos;i="5.68,249,1569240000"; d="scan'208";a="97230597"
X-Ironport-HAT: MAIL-SERVERS - $RELAYED
X-Ironport-Source: 10.6.3.3 - Outgoing - Outgoing
Received: from smtp.uoa.auckland.ac.nz (HELO uxcn13-tdc-b.UoA.auckland.ac.nz) ([10.6.3.3]) by mx4-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 31 Oct 2019 15:38:07 +1300
Received: from uxcn13-ogg-d.UoA.auckland.ac.nz (10.6.2.5) by uxcn13-tdc-b.UoA.auckland.ac.nz (10.6.3.3) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 31 Oct 2019 15:38:06 +1300
Received: from uxcn13-ogg-d.UoA.auckland.ac.nz ([10.6.2.5]) by uxcn13-ogg-d.UoA.auckland.ac.nz ([10.6.2.5]) with mapi id 15.00.1395.000; Thu, 31 Oct 2019 15:38:06 +1300
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: Niklas Matthies <pkix@nmhq.net>, "pkix@ietf.org" <pkix@ietf.org>
Thread-Topic: [pkix] Optimizing OCSP - Time for some spec work ?
Thread-Index: AQHVinrq4I5nEcgfh0O9xU1lviUJBKdqnCAD///+JoCAAAZCgIACJUtogAFyqQCABdrKLw==
Date: Thu, 31 Oct 2019 02:38:05 +0000
Message-ID: <1572489485781.71048@cs.auckland.ac.nz>
References: <31256d2d-dcfb-85f7-3850-accb2b2d6b89@openca.org> <1571969278256.43657@cs.auckland.ac.nz> <a87cd195-8b26-6bbd-8e37-473478e1a956@openca.org> <20191025152019.pevdicon45ql6zml@nmhq.net> <1572088035404.16022@cs.auckland.ac.nz>, <20191027221258.ldl2f5a3anu7qyfy@nmhq.net>
In-Reply-To: <20191027221258.ldl2f5a3anu7qyfy@nmhq.net>
Accept-Language: en-NZ, en-GB, en-US
Content-Language: en-NZ
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [130.216.158.4]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/pkix/3PlIygc_Zdl_MpNUfrYA0T5KitY>
Subject: Re: [pkix] Optimizing OCSP - Time for some spec work ?
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 31 Oct 2019 02:38:13 -0000

Niklas Matthies <pkix@nmhq.net> writes:

>In my opinion that's highly dubious, as it reverses the chain of trust. Even
>if you trust the responder to have performed that check correctly, you first
>have to validate the responder's signature before you can trust the (signed)
>extension to be authentic, [...]

Given that the current near-universal use [0] is to trust a replayed, stale
response, typically applying only to the leaf cert, and frequently not even
from the OCSP responder but from an unrelated third party (RFC 6066), this is
a considerable improvement on the current state of practice.

>Suppose that the responder has been compromised (and that it has the ocsp-
>nocheck extension): Then if the CA certificate is revoked due to that
>compromise, a client trusting the extension won't notice, as the compromised
>responder will happily (and falsely) assert that it has successfully checked
>the CA chain.

That's not any worse than the current situation, where the CA cert isn't
checked at all (unless the third-party server implements RFC 6961 and replays
stale responses for the CA certs as well as stale responses for its own cert)
[0 again].  And that's the worst-case situation, for anything other than
worst-case it's an improvement.

Peter.

[0] By this I mean use in HTTPS, and I realise I'm now making the same flawed
    case that I've pointed out numerous times on the TLS WG list, assuming
    that the entire world is the web, but for OCSP this is the near-universal
    use.