Re: [TLS] external PSK identity enumeration Re: UPDATED Last Call: <draft-ietf-tls-tls13-24.txt> (The Transport Layer Security (TLS) Protocol Version 1.3) to Proposed Standard

Eric Rescorla <ekr@rtfm.com> Wed, 21 February 2018 14:22 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6D1D312D77E for <tls@ietfa.amsl.com>; Wed, 21 Feb 2018 06:22:42 -0800 (PST)
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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.com
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 IMGNxXkq8DYq for <tls@ietfa.amsl.com>; Wed, 21 Feb 2018 06:22:39 -0800 (PST)
Received: from mail-qt0-x241.google.com (mail-qt0-x241.google.com [IPv6:2607:f8b0:400d:c0d::241]) (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 78A5312D778 for <tls@ietf.org>; Wed, 21 Feb 2018 06:22:39 -0800 (PST)
Received: by mail-qt0-x241.google.com with SMTP id d26so2072309qtj.4 for <tls@ietf.org>; Wed, 21 Feb 2018 06:22:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zumiiiHUY7zPelPg7a+jFM7WAGoxrqQZvoVRO8Wb3Jw=; b=HrdUTao+jdsQwM7kN6bnBDT++TiY2Ln0By/UvfJWZhXGyvtNd3Esn3vO+MtKKJd/1T Dbs6Xctr6l8nttzZq8TcnaxFYuOQv36umJy0CRVgaB8x/217T7pgwkPKbhvc8inIwa/T tzCUxdsrNkGsehwpzVK5nlxRhZ6RVQab7NWTRCVTvPTw8/uEYswsxvCQvI73PdtGy/Yk IzK3p11rHVt2IxNOn12WK3lPOee+3fF63SePwidhuTdb9kA87RIuIG07SLE01toaYcfo onnJYLJStqUXxc4o7e3EtyPwz/KPUQkbWjDGlsAXGpPZNbgRPDz6TtuRQM8IQOcrYocb baLw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zumiiiHUY7zPelPg7a+jFM7WAGoxrqQZvoVRO8Wb3Jw=; b=ssUUWH/IttrHsV0W9F1VTRFd1JFZg+pgIFONuvtmWKnlMoVIid/lxsrMdgd0Gw8xdt hnHf6PKOAdqDwDzTjcqHEMcqgND8Uhj11tsyqqhdwrTV76fed5zFqVGl17uyiIauzVSM c2Ni9PE5t4xjUIKKtEyEMynGa4glKdIxDCO7GguMcP4cr0MM3wHqi3jWwyGuNLsAUQxP +z9ZP0oQBK/3i4rLNegNn/artOW0dvCQ6gBn8Zt7+/OimElNf1G54ML4EsV7d1S5kdGV kgjKNfzauFmTyJgIllwaQMscgbVYgF+H7IwREtW+BblYoiL0lhNx8vXdVCa1GV5F/UUi vo0w==
X-Gm-Message-State: APf1xPAzhPJfne3ExqRpYv3N8ovzOTI1PdCVHMjfUC22Sr7BJxeFzAT1 nf+fFp/thwXMsqOCsDjORfNcLkUqmHr4vrpeICSaYQ==
X-Google-Smtp-Source: AH8x227QY4U9Z2wJpZL3WkMIeBx6d+k0q5aF4oHwmiti4GmKJ8yM/+Z8HgyKsihWfxSRgVCBNrtkRwAcheVSpAUZzh8=
X-Received: by 10.200.13.9 with SMTP id q9mr5570741qti.133.1519222958547; Wed, 21 Feb 2018 06:22:38 -0800 (PST)
MIME-Version: 1.0
Received: by 10.200.37.176 with HTTP; Wed, 21 Feb 2018 06:21:58 -0800 (PST)
In-Reply-To: <1545738.SpB3f87gQo@pintsize.usersys.redhat.com>
References: <151880080195.1349.14035524657942875385.idtracker@ietfa.amsl.com> <1545738.SpB3f87gQo@pintsize.usersys.redhat.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Wed, 21 Feb 2018 06:21:58 -0800
Message-ID: <CABcZeBOXzXf32JZkOw51JkXz6e_RG5Y+n+XG-9Y=Fb=a-as-CQ@mail.gmail.com>
To: Hubert Kario <hkario@redhat.com>
Cc: draft-ietf-tls-tls13@ietf.org, "<tls@ietf.org>" <tls@ietf.org>
Content-Type: multipart/alternative; boundary="089e0822b6a4c77bee0565b9a8db"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/Y67iwsF60Xyf40SzoqR4tlZ55Xc>
Subject: Re: [TLS] external PSK identity enumeration Re: UPDATED Last Call: <draft-ietf-tls-tls13-24.txt> (The Transport Layer Security (TLS) Protocol Version 1.3) to Proposed Standard
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 21 Feb 2018 14:22:42 -0000

On Wed, Feb 21, 2018 at 6:13 AM, Hubert Kario <hkario@redhat.com> wrote:

> On Friday, 16 February 2018 18:06:41 CET The IESG wrote:
> > The IESG has received a request from the Transport Layer Security WG
> (tls)
> > to consider the following document: - 'The Transport Layer Security (TLS)
> > Protocol Version 1.3'
> >   <draft-ietf-tls-tls13-24.txt> as Proposed Standard
>
> The current draft states that if the server recognises an identity but is
> unable to verify corresponding binder, it "MUST abort the handshake"
>

Which text are you referring to here?

-Ekr

at the same time, they "SHOULD select as single PSK and validate solely the
> binder that corresponds to that PSK"
> (Page 60, draft-ietf-tls-tls13-24).
>
> That allows for trivial enumeration of externally established identities -
> the
> attacker just needs to send to the server a list of identity guesses, with
> random data as binders, if the server recognises any identity it will abort
> connection, if it doesn't, it will continue to a non-PSK handshake.
>
> Behaviour like this is generally considered a vulnerability:
> https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2003-0190
> https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-5229
>
> I was wondering if the document shouldn't recommend ignoring any and all
> identities for which binders do not verify to prevent this kind of attack.
> --
> Regards,
> Hubert Kario
> Senior Quality Engineer, QE BaseOS Security team
> Web: www.cz.redhat.com
> Red Hat Czech s.r.o., Purkyňova 115, 612 00  Brno, Czech Republic
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>
>