Re: [saag] Improving the CHAP protocol

Yoav Nir <ynir.ietf@gmail.com> Sat, 21 September 2019 17:56 UTC

Return-Path: <ynir.ietf@gmail.com>
X-Original-To: saag@ietfa.amsl.com
Delivered-To: saag@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7561112004C for <saag@ietfa.amsl.com>; Sat, 21 Sep 2019 10:56:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 M1qjnc_NFYgJ for <saag@ietfa.amsl.com>; Sat, 21 Sep 2019 10:56:17 -0700 (PDT)
Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (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 EE93C120074 for <saag@ietf.org>; Sat, 21 Sep 2019 10:56:16 -0700 (PDT)
Received: by mail-wr1-x42e.google.com with SMTP id v8so9858251wrt.2 for <saag@ietf.org>; Sat, 21 Sep 2019 10:56:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=R5D4d6RReZY32QXWobpvD1WqEvMrnAslYGg9n09ONG8=; b=Om4Fb/SaCA7dqMUyiZzAzMeo1jSnBGBKaeEHhaR5NgpB2e8lQ7WxfHC9sHMX+fenLo b6f3zUf9CYoSdIjXmk9wSSYGa+GbnPACi8E+jyu5nLk8NDKBPqNpTT5a8/aauGuan59H d77QJFjuI5GJmZ+7j1IZNBZcLK95LKosxeBXWSxvd+dn7jCZCS4kJGNsxVV5KKN//sze CaLOs++f92KbbP7nQy/EL+t7F5k/ggXuL2T0FgiaeoNLsJzQ5Gxmi2HWa/oBt4yyskZ7 pi1032iEWi0krZeW5w0WNTEj5thKGpePqhqt6yGvp6/7zndmuBh+LmsjUZ6ol6sBmffP ak/Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=R5D4d6RReZY32QXWobpvD1WqEvMrnAslYGg9n09ONG8=; b=lyq4FiEZVQPnF5H0+UP9YjUT+S36U7Ie0ijmcg7LqhjQ2OTTBo/clFJs5V3K6tgoE2 2l5toy+yjtQAFJESwgXKkUyFDvCOt5Kjn4yMHisCOI4AxAG4KD3ycrip1pj7uEzcAU7c Ff7m2qeOIUh62lBbsngiA1ni1zLl/dCg1/q0HOziUPCLcJtqdQLwsO+hxDW+Hkf8y/5+ 1Q9zlM57c7KpIMUax0GCqg9/Xs4qxaU0eCIy0Q9qJRiCYyAu375OhMdHdNMwEIuyR0ba 26pXqmNEeo6JZ7UbJaz9yFU6jXooLG5Gt2HVUWS+63eO/aWrjMQgUGfWd2+USyoK6DhV FdVw==
X-Gm-Message-State: APjAAAW3P2zgWH4iK3JO8ziV/uM1Av+YmE0krueydht642D8J67Ny2YX frkxr6ij3JQeqdBVMT7Ru7M=
X-Google-Smtp-Source: APXvYqy/5+MumSZGcWRdxAn/vT28ECCHS03ThDM545gwUIsqsHAzGG8cwycX6BxjC+HqyctXyQrkNg==
X-Received: by 2002:a5d:6451:: with SMTP id d17mr9246635wrw.260.1569088575441; Sat, 21 Sep 2019 10:56:15 -0700 (PDT)
Received: from [192.168.1.12] ([46.120.57.147]) by smtp.gmail.com with ESMTPSA id 189sm5299606wmz.19.2019.09.21.10.56.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Sep 2019 10:56:14 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
From: Yoav Nir <ynir.ietf@gmail.com>
In-Reply-To: <1569087342890.52733@cs.auckland.ac.nz>
Date: Sat, 21 Sep 2019 20:56:11 +0300
Cc: Maurizio Lombardi <mlombard@redhat.com>, Security Area Advisory Group <saag@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <7DEB7775-B495-4269-AA60-386AD045BDAE@gmail.com>
References: <9641f69d-0ffb-1c1d-7fb6-98ef4a54ad2c@redhat.com> <1569087342890.52733@cs.auckland.ac.nz>
To: Peter Gutmann <pgut001@cs.auckland.ac.nz>
X-Mailer: Apple Mail (2.3445.104.11)
Archived-At: <https://mailarchive.ietf.org/arch/msg/saag/6mS7Rv9THP0X11FAjvwMYFhzDvk>
Subject: Re: [saag] Improving the CHAP protocol
X-BeenThere: saag@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Security Area Advisory Group <saag.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/saag>, <mailto:saag-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/saag/>
List-Post: <mailto:saag@ietf.org>
List-Help: <mailto:saag-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/saag>, <mailto:saag-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Sep 2019 17:56:19 -0000

FIPS is one advantage. The other is that MD5 is getting scarce in crypto libraries, while SHA-256 is everywhere.  Not everything is devices — there’s still software out there.

But yes, it’s still CHAP.

> On 21 Sep 2019, at 20:35, Peter Gutmann <pgut001@cs.auckland.ac.nz> wrote:
> 
> I think many people in this thread are missing the purpose of the exercise.
> CHAP is used because umpteen bajillion devices and systems need it, not
> because it's a very good protocol.  It's insecure because it's CHAP, not
> because it uses MD5.  Since it needs a one-way function, not a collision-
> resistant function, any hash function is as good - or bad since CHAP isn't
> very secure - as any other.  Switching from MD5 to polyquantumresistantind-
> ccaprovable2048bithash will make no difference whatsoever to its security.
> 
> What the original poster asked for is something FIPS compliant.  If you want
> to convince said umpteen bajillion devices to switch, you'd better use the
> universal-standard FIPS-compliant hash algorithm that everything supports,
> which is SHA-256, not a bunch of wierdo fashion-statement algorithms that
> nothing supports, which is most of the other stuff that's been suggested.
> 
> Having said that, you'll have to accept that the vast majority of users will
> keep going with MD5 more or less forever since there's no motive apart from
> FIPS to change, so perhaps it'd be best to pitch the update RFC as "FIPS
> compliance for CHAP" or something similar.
> 
> Peter.
> 
> _______________________________________________
> saag mailing list
> saag@ietf.org
> https://www.ietf.org/mailman/listinfo/saag