
From nobody Wed Nov  3 10:43:46 2021
Return-Path: <rharwood@redhat.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 16AE33A0CD8 for <kitten@ietfa.amsl.com>; Wed,  3 Nov 2021 10:43:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.101
X-Spam-Level: 
X-Spam-Status: No, score=-2.101 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, 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=redhat.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 4x2ZT_1nAVgN for <kitten@ietfa.amsl.com>; Wed,  3 Nov 2021 10:43:40 -0700 (PDT)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 9CE853A08B9 for <kitten@ietf.org>; Wed,  3 Nov 2021 10:43:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635961418; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OWWhhEaQCafZEhLK3HpFUCpDFzXTuXAHDCq/i2zdsaw=; b=UZ3f+V6HFVG/46tKwqJyAqvmVKFW7n2b9J6wConsoKkmPORKNTJd5auuW2L1eajp0yuK8R SJ1bzL2qCVud15tkuuxOd0rBqW+/To79OIaPFn0tXDF8gaujCDuJqhaB7bx72MtaL7N6A/ 2DCmcuh64NzVSuXibqWgEn8vq2wl/Os=
Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-420-K1YFkejOMFqGgsLI9_CwsQ-1; Wed, 03 Nov 2021 13:43:37 -0400
X-MC-Unique: K1YFkejOMFqGgsLI9_CwsQ-1
Received: by mail-qv1-f69.google.com with SMTP id o15-20020a0cc38f000000b0038455e36f89so3422367qvi.6 for <kitten@ietf.org>; Wed, 03 Nov 2021 10:43:37 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=OWWhhEaQCafZEhLK3HpFUCpDFzXTuXAHDCq/i2zdsaw=; b=foD7wmlZFHnW/7+4mhtIayYy2NZvE7A4nxfJGZMiZPrAQzufDVmyGnBdNxmFFsTBbS Tn7Pviq4KO+zfOJxWS7q8FqyVBNY0T4xFfVJeiG8J8oVyu3TWm4/KNQMra7SjR1Z6RLa m+kVU9RRHqHrVhCZS/iKIvNAn+005jRGujM/y2jXt4FGAri2y7PPCuJ0EQCW2WqCVl7+ ar9dv8le6dbiL/u42w+lRRyHrrE4rGPEWFoh6AKjIjsJGQJATeFnZ2hRryH6TSP20Lmd 3WaxEppX7o42lIMNO5mxGPOxOgraDPBNjxmHpOP4EUpAhk3+JZoga+qEgDMRrsr67xp2 LYCg==
X-Gm-Message-State: AOAM533ZlUgdD7IhIYUqYBrfDpHnq84nurJGANwwxdOrvv1Z7Kzu8V72 vZznABLn6X61sMogiKAx7oAXaZOXcJNAu3gbr7Ek5fWQnPGy1XK9yuRfpRIKSqjxSSze9ylSyNv A4Qbmk3M=
X-Received: by 2002:a05:622a:1208:: with SMTP id y8mr38276476qtx.214.1635961416567;  Wed, 03 Nov 2021 10:43:36 -0700 (PDT)
X-Google-Smtp-Source: ABdhPJwF1lln2pVa9QRnHG1wdT41eEaIe3opfSkcAKTRDhGJgHFUeg1I2Ku1QBqj4fCfgvYuRjfrCA==
X-Received: by 2002:a05:622a:1208:: with SMTP id y8mr38276445qtx.214.1635961416303;  Wed, 03 Nov 2021 10:43:36 -0700 (PDT)
Received: from localhost ([2601:184:4181:74c0:862e:5809:ed9e:e10e]) by smtp.gmail.com with ESMTPSA id u18sm2054148qki.69.2021.11.03.10.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 10:43:35 -0700 (PDT)
From: Robbie Harwood <rharwood@redhat.com>
To: Simon Josefsson <simon@josefsson.org>, Alexey Melnikov <alexey.melnikov@isode.com>
Cc: "kitten@ietf.org" <kitten@ietf.org>
In-Reply-To: <87ilxjo6e1.fsf@latte.josefsson.org>
References: <4a14c16b-644f-ac40-7b3a-a1712c9aa3d2@isode.com> <87ilxjo6e1.fsf@latte.josefsson.org>
Date: Wed, 03 Nov 2021 13:43:34 -0400
Message-ID: <jlgpmrhi189.fsf@redhat.com>
MIME-Version: 1.0
Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=rharwood@redhat.com
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/sB8ysPwGuqDOuUzoyKca4n_HhcU>
Subject: Re: [kitten] Requesting WG adoption of several SCRAM related documents
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Nov 2021 17:43:45 -0000

--=-=-=
Content-Type: text/plain

Simon Josefsson <simon@josefsson.org> writes:

> Hi.  I'm not strongly opposed to these work items, but I do feel
> publishing these documents without adressing high-level concerns have
> a risk of causing problems during deployment.  I think the WG should
> understand and consider the implication before adopting the documents
> - maybe there is alternative work that needs to happen before/instead.

Hi Simon, do you have any further thoughts on this in light of Ruslan's
and Alexey's comments in reply?

Be well,
--Robbie

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEA5qc6hnelQjDaHWqJTL5F2qVpEIFAmGCykYUHHJoYXJ3b29k
QHJlZGhhdC5jb20ACgkQJTL5F2qVpEJx/Q//feDRVscL1USheAkqd8D+Ji+ZdF4l
gKGXu7rhipI0Vd67fgV4IgyF06RiS0pzH88WyFpeOD0/lxz331ryy05g1GVVVdKT
mC7hAn0fXafrJqRy0zcWUbp47+s4+cIXiCw0MeDf2DBLC16BYTfO4OpEZirsjIFy
NaPBA8YR1JNSf/OFKQHE3p5cTpmL1f7XclScc6RAEJwYyEHVvFJJVv9hc2QTZC2D
yfUzmBDi9w3zg1UnEzSD9NHSWJfSqx420p287XsiNvc05yzFUH6A6aSMGoAtGo4/
8LV6aMUgDtBmsESjDNA77dckoZEYUL1MKocqRFX+IzmlUGliYUclILTxc4pFSEWo
TgujSsyCqO6T91pwUQBAxmmxAhuMoJh12UCC0gtliSwp8VilpGUlXnzL7szAyOsT
CG/kWglE0KMsgCn+y61XPZPkmmpbbmlBx65HsnxZNXJu9WMuqJPSOnPXk71llink
LqmJmyC2+gfByhxaDmonEOh7KGtAYgEBPQ4jssDqnaGcBRMq63aGPG6WL2V7GUJf
o/YfwYzvg8Lakg6Ab/fcw58wdtU5sWSHpRVNxWvlwJU6fS8k1nSqvhMdRHWe07yi
71UeqLFwWhi6xw8+hMBXiAq4AMRzbz3/DdrenFR59BYsDfsnCcQRJCsEPvw6b2ii
d1LGckPWsyb1QRE=
=22cQ
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Nov  3 13:31:49 2021
Return-Path: <simon@josefsson.org>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 00E343A10F9 for <kitten@ietfa.amsl.com>; Wed,  3 Nov 2021 13:31:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level: 
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=josefsson.org header.b=P+gqHIMD; dkim=pass (2736-bit key) header.d=josefsson.org header.b=YCSQNdu/
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 540eTjWElGaZ for <kitten@ietfa.amsl.com>; Wed,  3 Nov 2021 13:31:40 -0700 (PDT)
Received: from uggla.sjd.se (uggla.sjd.se [IPv6:2001:9b1:8633::107]) (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 7BA883A10F8 for <kitten@ietf.org>; Wed,  3 Nov 2021 13:31:39 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=ed2110; h=To:In-Reply-To:Cc:References:Message-Id:Date: Subject:Mime-Version:From:Content-Transfer-Encoding:Content-Type:Sender: Reply-To:Content-ID:Content-Description; bh=zxW3fRyI1JFBT/l0x4ql+Y87G1/oPhJpRgb36kBbSbw=; t=1635971500; x=1637181100;  b=P+gqHIMDI8b8ETIP+CBJjCV+6ZIiShVYu0+gox9rCGuNj403OUqtD2LNgdZ3lj/zx5T8vkqisiT DmFP/TT1CAw==;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=rsa2110; h=To:In-Reply-To:Cc:References:Message-Id:Date: Subject:Mime-Version:From:Content-Transfer-Encoding:Content-Type:Sender: Reply-To:Content-ID:Content-Description; bh=zxW3fRyI1JFBT/l0x4ql+Y87G1/oPhJpRgb36kBbSbw=; t=1635971500; x=1637181100;  b=YCSQNdu/tWWmdUqZrPQNJxK7u30rb5M3k/vk3Ur7mIpdQD86CA2mSakgok/SBF7kHKJDp2T8H0F 3dLDalxPj+B7ECXCIpEijE1CPMdN1Q5Uzl+ePcqdd1IiwnQDZuZfCBDVcv//cYo4tCNnWN5RO04Wj JVpsXk0ODJsGdodCgJMf297PNPxKIA5c1rhMZTuRgqV6stSU+ldEaSnvAyppJQ9cLYlAsliWefPrp fRhEIhngzC0OZhES+C/98rgVqtJI+sk1JVWCwdzp3Rtiys4K9rX6GuoeWEkc8n8eUly2SJfJrzaKo MiOQi7ITlB4n23/rfkwj2xLmR93nfArDvML6d6Z85FCjPLRbLbpSCZzXIULmEHocoyQIayhgjKm3S PgzyyYB6BXcFwRYN24ukwCT86PWvN/ANrEabTCdkP3/Gojzo/Mtj0L7NIvMutWFdXiGOP3H26;
Received: from static-169-27-85-188.ipcom.comunitel.net ([188.85.27.169]:49867 helo=smtpclient.apple) by uggla.sjd.se with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <simon@josefsson.org>) id 1miMux-006ewo-UK; Wed, 03 Nov 2021 21:31:31 +0100
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
From: Simon Josefsson <simon@josefsson.org>
Mime-Version: 1.0 (1.0)
Date: Wed, 3 Nov 2021 20:31:30 +0000
Message-Id: <139AC3E2-92B1-433A-A8AE-28C7DECFB619@josefsson.org>
References: <jlgpmrhi189.fsf@redhat.com>
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, kitten@ietf.org
In-Reply-To: <jlgpmrhi189.fsf@redhat.com>
To: Robbie Harwood <rharwood@redhat.com>
X-Mailer: iPhone Mail (19A404)
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/GagZJXDtypK_yPc__bZ5JbXg1rs>
Subject: Re: [kitten] Requesting WG adoption of several SCRAM related documents
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Nov 2021 20:31:47 -0000

3 nov. 2021 kl. 17:43 skrev Robbie Harwood <rharwood@redhat.com>:
>=20
> =EF=BB=BFSimon Josefsson <simon@josefsson.org> writes:
>=20
>> Hi.  I'm not strongly opposed to these work items, but I do feel
>> publishing these documents without adressing high-level concerns have
>> a risk of causing problems during deployment.  I think the WG should
>> understand and consider the implication before adopting the documents
>> - maybe there is alternative work that needs to happen before/instead.
>=20
> Hi Simon, do you have any further thoughts on this in light of Ruslan's
> and Alexey's comments in reply?

No.  I agree with what the replies, and haven=E2=80=99t changed my opinion. =
 I=E2=80=99d rather see work on addressing the problems that were brought up=
, or stronger mechanisms, instead. But things aren=E2=80=99t a zero-sum game=
, so if enough people wants these drafts published, that=E2=80=99s what will=
 happen.

/Simon=


From nobody Thu Nov  4 05:06:39 2021
Return-Path: <sam@samwhited.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3387D3A108F for <kitten@ietfa.amsl.com>; Thu,  4 Nov 2021 05:06:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.12
X-Spam-Level: 
X-Spam-Status: No, score=-2.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-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=samwhited.com header.b=F70jrso6; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=RujUvWkS
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 FuAAzO7v_WXJ for <kitten@ietfa.amsl.com>; Thu,  4 Nov 2021 05:06:32 -0700 (PDT)
Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9508E3A1085 for <kitten@ietf.org>; Thu,  4 Nov 2021 05:06:32 -0700 (PDT)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 9C44B5C0102 for <kitten@ietf.org>; Thu,  4 Nov 2021 08:06:31 -0400 (EDT)
Received: from imap42 ([10.202.2.92]) by compute6.internal (MEProxy); Thu, 04 Nov 2021 08:06:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samwhited.com; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type:content-transfer-encoding; s=fm1; bh=gQ8Y+ iAe0RmR3ebclha2nKBqGdjyP0UlBkyUdrwNxHg=; b=F70jrso6+M74SPSGZRqkC KWIeuVQa/X9mKZlhJTp8ozjkUnP8qOVXh7VMieV1roeU7WI7sK/fRYDWrv/n1l1k h02DAWgGdUmTNiXovM60Cuw3kw7cGgMks1AJFwMVEPS5ERp3p7z0acT57IHw7P/K eywHeMGn4fZiMZ1x2dBa0SZ4JJjyaLs1mmVPDeHyWgp3n+GuwzQh8LAyYggbfiQP 3utCN3LTpVzvWsK1GjgRDw4A+SO5va4bEM8rVXEZQTgEjphEyhSU8nfPmNkw0JI4 X45NUaZ3UWOO3ZYlMO7XyBXuXtA5BbwyFckTGMjzK6Pu1DsL1s68VRKAnb5OE4n8 Q==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=gQ8Y+iAe0RmR3ebclha2nKBqGdjyP0UlBkyUdrwNx Hg=; b=RujUvWkSKzOzczolrrt9NVkva7phNelrjA5PZidXpm2A8g0of4V1drJTp w5YVjkQ/le34xEsS+xpYvfBa3P9pfmPsRVyY8k4YJjXW7e1rwzPyaRjlut7lHQT2 jhkLlwBqEfJHd7yvlb9YeycO3CycLI54RWVo6M9vWZviACJIh3JxoXyc6ft3vzST CWsHohJQ/gzmSzfVrgF0cmv1rUMQj61laRBQbpvBgoipRUxiTwn/a4zKoWpEXMAa Iv3V3hj4qdtHG49+HPPduivpVLc4siC4UdPRBhJ7l5yT3U7om7l4K8ewvGbM439x 30xy1SO24ldmuKFDrynJRuSwGopTw==
X-ME-Sender: <xms:x8yDYaIUVHsoW9UzgJI85Raf5XlLi0Gk4Nc_LMLwLjXVs3T62d62Gg> <xme:x8yDYSJxpNbc_iQfxQPclpTVaK4gs27ghCubRQ-5LmA1z4xA_P4_a1tVmICooJBM- 0wGg7uUA7Azuo8bbQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrtdeggdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfurghm ucghhhhithgvugdfuceoshgrmhesshgrmhifhhhithgvugdrtghomheqnecuggftrfgrth htvghrnhepfeduudekkeeuteeuleefgeeuvdeuvdffhedvveeiffeghefhjefftdevveeu vdffnecuffhomhgrihhnpehivghtfhdrohhrghenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmsehsrghmfihhihhtvggurdgtohhm
X-ME-Proxy: <xmx:x8yDYasPYeDufkHDTSEHKxdJYQ8sIAHs9jP3fTSqT3BWYWtkxzBeUQ> <xmx:x8yDYfa57r3VPddvixfWzvcjUhdbFT5jYxLKk2Ew59LzuXFng8QvXA> <xmx:x8yDYRb2w1jSdWQZi8BU7TZj21265pG-BNtbjraFICq4Io7kF-im4A> <xmx:x8yDYamxYUSPp_dsgOiMF1kTreTHxeo8f-JeieB4JCkrRohHkR1FKQ>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 630C12180078; Thu,  4 Nov 2021 08:06:31 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.5.0-alpha0-1369-gd055fb5e7c-fm-20211018.002-gd055fb5e
Mime-Version: 1.0
Message-Id: <72bf2b21-86db-4975-ab8f-b367d863f1f0@www.fastmail.com>
In-Reply-To: <139AC3E2-92B1-433A-A8AE-28C7DECFB619@josefsson.org>
References: <jlgpmrhi189.fsf@redhat.com> <139AC3E2-92B1-433A-A8AE-28C7DECFB619@josefsson.org>
Date: Thu, 04 Nov 2021 08:06:11 -0400
From: "Sam Whited" <sam@samwhited.com>
To: "KITTEN Working Group" <kitten@ietf.org>
Content-Type: text/plain;charset=utf-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/E07ARSH4LZp68QWUUEsp9HOhyaI>
Subject: Re: [kitten] Requesting WG adoption of several SCRAM related documents
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Nov 2021 12:06:37 -0000

Having reconsidered this in light of some of these comments, I think I
agree in terms of SCRAM-SHA-512 and SCRAM-SHA3. While I'm certainly not
*against* publishing these mechanisms (as I mentioned, I have
implemented them and used them already in some places) I do think SCRAM-=
SHA-
256, for example, is likely strong enough for now. It doesn't show any
signs of weakness, so we might want to focus on a mechanism that has its
own hash/CB negotiation instead and is extensible enough to add 2FA
later (or whatever other requirements this group comes up with: better
hash agility comes to mind). I suppose I've changed to being neutral on
publishing the new SCRAM mechanisms.

As for the 2FA document I think that represents something that's missing
from *current* mechanisms and should likely move forward. If we were to
focus on new mechanisms that could implement 2FA I think we'd be doing a
disservice to existing SASL/SCRAM users who may not be able to evaluate
and update to a new mechanism, but may be able to add 2FA to their
existing setup more quickly.

=E2=80=94Sam

On Wed, Nov 3, 2021, at 16:31, Simon Josefsson wrote:
> 3 nov. 2021 kl. 17:43 skrev Robbie Harwood <rharwood@redhat.com>:
>>
>> =EF=BB=BFSimon Josefsson <simon@josefsson.org> writes:
>>
>>> Hi.  I'm not strongly opposed to these work items, but I do feel
>>> publishing these documents without adressing high-level concerns
>>> have a risk of causing problems during deployment.  I think the WG
>>> should understand and consider the implication before adopting the
>>> documents
>>> - maybe there is alternative work that needs to happen
>>>   before/instead.
>>
>> Hi Simon, do you have any further thoughts on this in light of
>> Ruslan's and Alexey's comments in reply?
>
> No.  I agree with what the replies, and haven=E2=80=99t changed my opi=
nion.
> I=E2=80=99d rather see work on addressing the problems that were broug=
ht
> up, or stronger mechanisms, instead. But things aren=E2=80=99t a zero-=
sum
> game, so if enough people wants these drafts published, that=E2=80=99s=
 what
> will happen.
>
> /Simon
> _______________________________________________
> Kitten mailing list Kitten@ietf.org
> https://www.ietf.org/mailman/listinfo/kitten

--=20
Sam Whited


From nobody Fri Nov  5 04:08:57 2021
Return-Path: <alexey.melnikov@isode.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B38C33A0CD2 for <kitten@ietfa.amsl.com>; Fri,  5 Nov 2021 04:08:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.429
X-Spam-Level: 
X-Spam-Status: No, score=-5.429 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-3.33, 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=isode.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 7P4g12X-m4Ko for <kitten@ietfa.amsl.com>; Fri,  5 Nov 2021 04:08:49 -0700 (PDT)
Received: from waldorf.isode.com (waldorf.isode.com [62.232.206.188]) by ietfa.amsl.com (Postfix) with ESMTP id 876053A0CD1 for <kitten@ietf.org>; Fri,  5 Nov 2021 04:08:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1636110524; d=isode.com; s=june2016; i=@isode.com; bh=jwd2LSaReEleeBSbhnENpwtcSEDO2s0uLaOrAU4WKjM=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=CpsO0Hv79YNMXWs0xg94JjDOyO4HsaWlyFczqDhoAia/yc2QBVHqS0bUl2alWNn4jYcLcc M91PsvdLrvHpBibZVliOkazJffeqcAGUm+M+5Kn5D0jhJl/lSax99byzPrE45YSAP6k7V+ t7mSjhrL6bxVawaYOcRD7Cl884yZCa8=;
Received: from [192.168.1.222] (host5-81-100-95.range5-81.btcentralplus.com [5.81.100.95])  by waldorf.isode.com (submission channel) via TCP with ESMTPSA  id <YYUQvAAF4ju6@waldorf.isode.com>; Fri, 5 Nov 2021 11:08:44 +0000
To: Sam Whited <sam@samwhited.com>, KITTEN Working Group <kitten@ietf.org>
References: <jlgpmrhi189.fsf@redhat.com> <139AC3E2-92B1-433A-A8AE-28C7DECFB619@josefsson.org> <72bf2b21-86db-4975-ab8f-b367d863f1f0@www.fastmail.com>
From: Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <ed2cbbaf-98bc-ea16-8c48-b3ddb02c845a@isode.com>
Date: Fri, 5 Nov 2021 11:08:42 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0
In-Reply-To: <72bf2b21-86db-4975-ab8f-b367d863f1f0@www.fastmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-transfer-encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/qaeLYBjuUMwrx4lM7J0h942lNR4>
Subject: Re: [kitten] Requesting WG adoption of several SCRAM related documents
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Nov 2021 11:08:55 -0000

On 04/11/2021 12:06, Sam Whited wrote:
> Having reconsidered this in light of some of these comments, I think I
> agree in terms of SCRAM-SHA-512 and SCRAM-SHA3. While I'm certainly not
> *against* publishing these mechanisms (as I mentioned, I have
> implemented them and used them already in some places) I do think SCRAM-SH=
A-
> 256, for example, is likely strong enough for now.
I am happy to defer decision on bringing them into the WG till a later date.
> It doesn't show any
> signs of weakness, so we might want to focus on a mechanism that has its
> own hash/CB negotiation instead and is extensible enough to add 2FA
> later (or whatever other requirements this group comes up with: better
> hash agility comes to mind). I suppose I've changed to being neutral on
> publishing the new SCRAM mechanisms.
>
> As for the 2FA document I think that represents something that's missing
> from *current* mechanisms and should likely move forward. If we were to
> focus on new mechanisms that could implement 2FA I think we'd be doing a
> disservice to existing SASL/SCRAM users who may not be able to evaluate
> and update to a new mechanism, but may be able to add 2FA to their
> existing setup more quickly.

I feel the same.

So my update proposal is to work on the following in the WG:

1) SCRAM 2FA extension

2) Something like draft-cridland-kitten-clientkey for SASL=20
re-authentication that can be used with SCRAM or similar mechanisms

3) A possible informational document about best SASL implementation=20
practices, in particular how to deal with some SASL mechanisms only=20
being available for some users.

Best Regards,

Alexey

> =E2=80=94Sam
>
> On Wed, Nov 3, 2021, at 16:31, Simon Josefsson wrote:
>> 3 nov. 2021 kl. 17:43 skrev Robbie Harwood <rharwood@redhat.com>:
>>> =EF=BB=BFSimon Josefsson <simon@josefsson.org> writes:
>>>
>>>> Hi.  I'm not strongly opposed to these work items, but I do feel
>>>> publishing these documents without adressing high-level concerns
>>>> have a risk of causing problems during deployment.  I think the WG
>>>> should understand and consider the implication before adopting the
>>>> documents
>>>> - maybe there is alternative work that needs to happen
>>>>    before/instead.
>>> Hi Simon, do you have any further thoughts on this in light of
>>> Ruslan's and Alexey's comments in reply?
>> No.  I agree with what the replies, and haven=E2=80=99t changed my opinio=
n.
>> I=E2=80=99d rather see work on addressing the problems that were brought
>> up, or stronger mechanisms, instead. But things aren=E2=80=99t a zero-sum
>> game, so if enough people wants these drafts published, that=E2=80=99s wh=
at
>> will happen.
>>
>> /Simon
>> _______________________________________________
>> Kitten mailing list Kitten@ietf.org
>> https://www.ietf.org/mailman/listinfo/kitten


From nobody Fri Nov  5 08:34:22 2021
Return-Path: <jonathan.hoyland@gmail.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BF85F3A10CA; Fri,  5 Nov 2021 08:34:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level: 
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, 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 (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 bbqjz0xaUWuh; Fri,  5 Nov 2021 08:34:14 -0700 (PDT)
Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (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 84B253A10EF; Fri,  5 Nov 2021 08:34:13 -0700 (PDT)
Received: by mail-qt1-x82f.google.com with SMTP id o12so7485123qtv.4; Fri, 05 Nov 2021 08:34:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GpF1GDD6Ii8oF/LfDKZhdTaV4m+RASNs0nASNo6HR74=; b=faG22hewV3fGPOTROIdBpiNTXmQ7lhq9ClRpDUsElB2BVyDjFO9+AwIyVx7m2YObfV ypyFhZLTMgYfGVgb09bMStGe/m1GWUdwCLR2HiPV1bC36jFRb2M5YJKrSTnaR8ABEAqv Zttga1mfZF7hk5u3wP7HiNpsd8LsUJm3M+d6lFtZP7Wge2xWidqCQmIjaPcbnq0gVaHS sbMwlPH9/j4ZNl2G74GFqill+l50T+q/6/1P3sydqno0irfi7y/y62/1T+qVUg5Px04M +PfXkMZ/xoiqWKuoruNom/P1nC4ufzKwW+2fqHfbWtdcdUSSwRZIe7ML+MdRcZLiwBUC Re+A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GpF1GDD6Ii8oF/LfDKZhdTaV4m+RASNs0nASNo6HR74=; b=XfylhfqwgxAA7WGp9+m0iM26td+S/KElJ/YVpb5U1i7yYzfW8zH2P9rH2orb6gW/qO 5g/AvSzrWOGmb+0RfDAr7p50HsHWTG6nsTDyIua6+QYhaWFP+YJI30wN/tWoAmAXe6mV 3SchJVeyv4C+8lgD3J/sPSW85F/R8yG/Lfy8zLGF1Id0QsXz6G8YITGG4daAsUQoYZEa zWshr0CCXgzZxaR3Nkl2xhs+SHhfuys6ezKkLdePb5/Ox1kpwEmULhSFDBeJB9AeqS2T uV1XKlWGMldDp5M5vIYvYyGFYBao8OMLHZtF2awTECCS23p2aaK0/AVWxnOdPkVttl3T yZ6A==
X-Gm-Message-State: AOAM533CeguFy0dKTaP22I57/7gSegDHkaty9fPpL9Bx4rMIk0UjFT/l vu1rttne8M2tt+IQvKd8YJyAV20kf/q623zBSTo=
X-Google-Smtp-Source: ABdhPJz4Ahpee6Q7yCB+ceb6Rf/fLYTQopnxiWs8+MRp1rOITH4ZDDCTLHHEhdvtJu77GjLVGaFSduRQwzWj+yELO+Y=
X-Received: by 2002:ac8:5f4d:: with SMTP id y13mr62363838qta.16.1636126451252;  Fri, 05 Nov 2021 08:34:11 -0700 (PDT)
MIME-Version: 1.0
References: <163311243544.13917.11736165165419008870@ietfa.amsl.com> <20211001190002.GC98042@kduck.mit.edu> <CABcZeBPQG82xJdwMrmj4-=9aJymo1xts=D6VZedBW5X9k+34cQ@mail.gmail.com> <92ed26c1-bfde-43c1-93f4-2bbdbd4f6ec1@www.fastmail.com> <CAChr6Sw6Rs42DfS8KgD3qasPcWM_gGZhWN5C4b7W7JsPy0wDzw@mail.gmail.com> <8796f867-12b8-41f8-b124-82b3ab0e2d32@www.fastmail.com> <CAChr6SyKAnBcE9t68coGGXFt9WPLuDuWtVKoCXrK+QrwAVtPXw@mail.gmail.com> <f1bcd676-13ad-49b3-a8e8-8a272e0124e3@www.fastmail.com> <CABcZeBNo0gKjNZOKPYJYraioaw6G=z5ibTqh-o9GkWsDkfDmSQ@mail.gmail.com> <c4d6f2e5-0712-42a6-aef5-0cbada7e149e@www.fastmail.com> <CABcZeBM6y-6ZqaLGZ=8qr+uBnWOOgczhcx=ruy5S=n-YrHweKg@mail.gmail.com> <ca676a77-b2c9-4926-9842-d1d6587206ed@www.fastmail.com> <CACykbs11rHUweXmR1NSU0N2rRjcQ8Sf1S+DY2LO7T+e6cLt+5w@mail.gmail.com> <e9570c02c4f703780a4e317b26607ac124a3b595.camel@ruff.mobi> <CACykbs3v0FC50WQHNqq-oXwKDE=Jha-o0P=Mgr92OgyeKPS6Ug@mail.gmail.com> <7e862904cee5f86e4b77fce23c451c2abe0dc720.camel@ruff.mobi> <CACykbs2V0mgxDz_MK2EiqSDBGWWfvq0TAX+UpLSEZKwOoFc8HQ@mail.gmail.com> <e682da42c5ccd32d1d184970db631624eb6ee507.camel@redhat.com>
In-Reply-To: <e682da42c5ccd32d1d184970db631624eb6ee507.camel@redhat.com>
From: Jonathan Hoyland <jonathan.hoyland@gmail.com>
Date: Fri, 5 Nov 2021 15:34:00 +0000
Message-ID: <CACykbs1biupGfYaxrBykYk+=cFZxqVLVbFvcynnjCUzxLh4pmg@mail.gmail.com>
To: Simo Sorce <simo@redhat.com>
Cc: "Ruslan N. Marchenko" <rufferson@gmail.com>, KITTEN Working Group <kitten@ietf.org>, "<tls@ietf.org>" <tls@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000ef452705d00c5f14"
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/VT1pu5aoWU2eyM_BIkt_NtfDYQs>
Subject: Re: [kitten] [TLS] Fwd: Last Call: <draft-ietf-kitten-tls-channel-bindings-for-tls13-09.txt> (Channel Bindings for TLS 1.3) to Proposed Standard
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Nov 2021 15:34:20 -0000

--000000000000ef452705d00c5f14
Content-Type: text/plain; charset="UTF-8"

Hi Simo,

As I said in my email to Sam, my language here was sloppy, I meant that the
channel binding is included in the key derivation process, and thus the
output keys will be related to each other.
The term channel bindings has two different meanings using in very similar
contexts, which leads to great confusion and is why I prefer the term
compound authentication (see Chapter 4.4 of my thesis)
<https://pure.royalholloway.ac.uk/portal/files/33074422/2018HoylandJGPhD.pdf>.

A channel binding is a "name" of a channel as you say, but it is also used
to mean using one channel to authenticate another.
Very specifically if channel `a` is bound to channel `b` then that means
that if channel `b` is securely authenticated then channel `a` was formed
honestly (i.e. even if all of the long term key material for channel `a`
has been leaked, I can be sure that my channel `a` peer is the same actor
as my channel `b` peer.)

Channel bindings that aren't bound to a specific session are less secure
than ones that are, so yes, you can use them, but that doesn't mean they
have the security properties you need.
The purpose of binding a protocol to an underlying TLS session is to
leverage some of the security guarantees offered by the TLS layer.
If those guarantees are never necessary because the over-the-top protocol
is always perfectly secure, just run the protocol on the wire and drop the
TLS complication.
If those guarantees are at least sometimes necessary then you need to
securely bind the two channels together.

Channel binding does more than simply guarantee that the messages were the
same, it also guarantees that the identity of the actors at each layer
remains the same, and that the keys derived in each layer match.
With an appropriately designed channel binding you can use TLS's protection
against MITM attacks to protect insecure protocols run over the top.
Having now looked at SCRAM a little bit, using the TLS channel binding
guarantees that some malicious server isn't passing the client's messages
off to another server and performing a malicious authentication there.
Using a unique string from SCRAM means that messages from some other
protocol won't be compatible.
If you don't require a unique string I could write a new protocol SCRAM++
with cross-compatible messages, but different security guarantees, and use
that to compromise SCRAM clients.
Obviously that's a patently malicious example, but it's perfectly possible
that some new version of SCRAM produces messages that an old version of
SCRAM misinterprets.
It's even highly likely that a server that supports old versions of SCRAM
for backwards compatibility would use the same key material for all
versions.

Requiring a unique string makes the messages totally unrelated.

I don't find the arguments "It's always been insecure in the past" or "We
have bad APIs" especially compelling.

Regards,

Jonathan


On Fri, 29 Oct 2021 at 14:55, Simo Sorce <simo@redhat.com> wrote:

> Hi Jonathan,
>
> On Thu, 2021-10-28 at 18:46 +0100, Jonathan Hoyland wrote:
> > Hi Ruslan,
> >
> > Yes, two distinct TLS connections having the same exporter key would be
> > really bad, but I'm specifically talking about two runs of some protocol
> > bound to a single TLS session.
> > A single TLS session will return the same key (modulo rekeying,
> resumption
> > etc.) if you call the Exporter API with the same label.
> > This means that the channel bindings it produces, which will then be used
> > to derive the keys of the higher layer protocol, will produce related
> keys.
> >
> > The key reason for making the binding retrieval context-specific is to
> make
> > sure that different protocols run in the same TLS session produce
> disjoint
> > keys.
>
> Note, Channel Bindings are *not* a key and should never used as such,
> so I think you are using a false premise here.
> Channel Bindings are, at most, a unique value associated with a session
> (keep in mind that often Channel Bindings do not even bind to a
> specific session, see 'tls-server-end-point' which is used in
> preference in many cases within HTTPS endpoints because of the way
> server termination is built in some scalable architectures).
>
> > When someone tries to copy a message from a SCRAM handshake into some
> > GSS-API run on a single TLS connection I want to be sure that it will be
> > rejected, without having to understand exactly how every version of SCRAM
> > and GSS-API ever (including ones that will be drafted in the future)
> works
> > (not to mention every other protocol past, present, and future that uses
> > the same string.)
>
> Both SCRAM and GSS-API are authentication mechanisms that use shared
> keys for authentication. Both protocols are inherently resistant to
> message swapping because the chances of producing a message on one
> protocol that can be successfully decrypted/HMACed on the other are
> astronomically low (they must be or the protocols are broken).
>
> Channel bindings are just a way to tie those authentications to the
> specific channel used underneath. I can't see how using the same value
> for both protocols can lead to any compromise (see again 'tls-server-
> end-point', where there isn't even a "same" channel guarantee, or
> previous CBs where the binding was done to an IP address or other clear
> text session value).
>
> If passing an arbitrary channel binding values could suddenly (and
> predictably?) allow one protocol to be swapped for the other or have
> one protocol generate derived session keys that are usable with the
> other, it would mean those authentication mechanisms (SCRAM,GSS-
> API,...) are completely broken, as that would mean the keys and
> derivations used in those protocols are not providing the necessary
> security guarantees.
>
> > In the same way that we include strings in the TLS key schedule to ensure
> > that handshake messages can't be confused with each other or with earlier
> > versions of TLS, or even with Exported Authenticators, or MLS, or any
> other
> > protocol that uses keys, we should use channel bindings to separate
> > protocols run over the top of TLS.
>
> Yes, this is done because those messages are not further confounded
> with additional private keys, but the situation is substantially
> different when you talk about authentication mechanism that already use
> additional key material, key derivation and random challenges.
>
> HTH,
> Simo.
>
> > Regards,
> >
> > Jonathan
> >
> > On Wed, 27 Oct 2021 at 19:39, Ruslan N. Marchenko <rufferson@gmail.com>
> > wrote:
> >
> > > Hi Jonathan,
> > >
> > > Am Mittwoch, dem 27.10.2021 um 18:02 +0100 schrieb Jonathan Hoyland:
> > > > Hi Ruslan,
> > > >
> > > > Without digging into the guts of GSS-API and SCRAM I can't give you a
> > > > concrete attack, the issue is that all our assumptions about protocol
> > > > security assume that different protocols use totally separate key
> > > > material.
> > > > For example if I have one protocol that signs arbitrary blobs and
> > > > another that requires me to sign a challenge to prove I know a
> private
> > > > key then even if they're both perfectly secure on their own they are
> > > > totally broken in composition.
> > > > This separation of keys is one of the core reasons for the use of
> > > > HKDFs, it lets us take some source randomness and use it to generate
> > > > independent keys.
> > > >
> > > > Designing a channel binding that explicitly suggests people use the
> > > > same key material for different things is bad practice and poor
> > > > protocol design.
> > > > Pretty much every attack is on the table if you have multiple
> protocols
> > > > using the same keys, message forgery, improper authentication, key
> > > > leakage, etc.
> > > > The reason for separation of keys is to simply rule out this entire
> > > > class of vulnerability.
> > >
> > > Sorry maybe I'm missing something but why would two unrelated protocols
> > > have same key? The binding is derived from TLS session key, if two
> > > unrelated TLS sessions are having the same key this is the problem by
> > > itself, and binding material is not amplifying it, just falling to the
> > > same problem bucket. And if they are related (eg resumed) then protocol
> > > muxing should perhaps be part of applicaiton stack and it should still
> > > be happy with a common security context.
> > >
> > > > If you don't separate the keys then whenever you make any change to
> any
> > > > protocol you have to consider its security in composition with every
> > > > other protocol, including ones that you don't know about or that
> > > > haven't been written yet.
> > > >
> > > > Using different labels for different purposes shouldn't require
> > > > anything complicated, as it's just changing the input literals to the
> > > > API call.
> > > >
> > > There's a difference in telling TLS stack "give me binding of that
> > > type" - which is pretty much high level abstract call, and asking TLS
> > > to perform key derivation (export) for specific label - which requires
> > > speaking native TLS implementation api. Now that we have a bunch of TLS
> > > implementations and several abstractions and all other binding types
> > > are independent of the higher protocol - it may be challenging changing
> > > the API to make the binding retrieval context-specific. Not that it is
> > > impossible to make such change, but why?
> > >
> > >
> > >
> > >
> > _______________________________________________
> > Kitten mailing list
> > Kitten@ietf.org
> > https://www.ietf.org/mailman/listinfo/kitten
>
> --
> Simo Sorce
> RHEL Crypto Team
> Red Hat, Inc
>
>
>
>
>

--000000000000ef452705d00c5f14
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div>Hi Simo,</div><div><br></div><div>As=
 I said in my email to Sam, my language here was sloppy, I meant that the c=
hannel binding is included in the key derivation process, and thus the outp=
ut keys will be related to each other.</div><div>The term channel bindings =
has two different meanings using in very similar contexts, which leads to g=
reat confusion and is why I prefer the term compound authentication <a href=
=3D"https://pure.royalholloway.ac.uk/portal/files/33074422/2018HoylandJGPhD=
.pdf">(see Chapter 4.4 of my thesis)</a>. <br></div><div>A channel binding =
is a &quot;name&quot; of a channel as you say, but it is also used to mean =
using one channel to authenticate another. <br></div><div>Very specifically=
 if channel `a` is bound to channel `b` then that means that if channel `b`=
 is securely authenticated then channel `a` was formed honestly (i.e. even =
if all of the long term key material for channel `a` has been leaked, I can=
 be sure that my channel `a` peer is the same actor as my channel `b` peer.=
)</div><div><br></div><div>Channel bindings that aren&#39;t bound to a spec=
ific session are less secure than ones that are, so yes, you can use them, =
but that doesn&#39;t mean they have the security properties you need.</div>=
<div>The purpose of binding a protocol to an underlying TLS session is to l=
everage some of the security guarantees offered by the TLS layer. <br></div=
><div>If those guarantees are never necessary because the over-the-top prot=
ocol is always perfectly secure, just run the protocol on the wire and drop=
 the TLS complication.</div><div>If those guarantees are at least sometimes=
 necessary then you need to securely bind the two channels together.</div><=
div><br></div><div>Channel binding does more than simply guarantee that the=
 messages were the same, it also guarantees that the identity of the actors=
 at each layer remains the same, and that the keys derived in each layer ma=
tch. <br></div><div>With an appropriately designed channel binding you can =
use TLS&#39;s protection against MITM attacks to protect insecure protocols=
 run over the top. <br></div><div>Having now looked at SCRAM a little bit, =
using the TLS channel binding guarantees that some malicious server isn&#39=
;t passing the client&#39;s messages off to another server and performing a=
 malicious authentication there.</div><div>Using a unique string from SCRAM=
 means that messages from some other protocol won&#39;t be compatible.</div=
><div>If you don&#39;t require a unique string I could write a new protocol=
 SCRAM++ with cross-compatible messages, but different security guarantees,=
 and use that to compromise SCRAM clients. <br></div><div>Obviously that&#3=
9;s a patently malicious example, but it&#39;s perfectly possible that some=
 new version of SCRAM produces messages that an old version of SCRAM misint=
erprets. <br></div><div>It&#39;s even highly likely that a server that supp=
orts old versions of SCRAM for backwards compatibility would use the same k=
ey material for all versions. <br></div><div><br></div><div>Requiring a uni=
que string makes the messages totally unrelated. <br></div><div><br></div><=
div>I don&#39;t find the arguments &quot;It&#39;s always been insecure in t=
he past&quot; or &quot;We have bad APIs&quot; especially compelling. <br></=
div><div><br></div><div>Regards,</div><div><br></div><div>Jonathan<br></div=
><div><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">On Fri, 29 Oct 2021 at 14:55, Simo Sorce &lt;<a href=3D"mai=
lto:simo@redhat.com">simo@redhat.com</a>&gt; wrote:<br></div><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid=
 rgb(204,204,204);padding-left:1ex">Hi Jonathan,<br>
<br>
On Thu, 2021-10-28 at 18:46 +0100, Jonathan Hoyland wrote:<br>
&gt; Hi Ruslan,<br>
&gt; <br>
&gt; Yes, two distinct TLS connections having the same exporter key would b=
e<br>
&gt; really bad, but I&#39;m specifically talking about two runs of some pr=
otocol<br>
&gt; bound to a single TLS session.<br>
&gt; A single TLS session will return the same key (modulo rekeying, resump=
tion<br>
&gt; etc.) if you call the Exporter API with the same label.<br>
&gt; This means that the channel bindings it produces, which will then be u=
sed<br>
&gt; to derive the keys of the higher layer protocol, will produce related =
keys.<br>
&gt; <br>
&gt; The key reason for making the binding retrieval context-specific is to=
 make<br>
&gt; sure that different protocols run in the same TLS session produce disj=
oint<br>
&gt; keys.<br>
<br>
Note, Channel Bindings are *not* a key and should never used as such,<br>
so I think you are using a false premise here.<br>
Channel Bindings are, at most, a unique value associated with a session<br>
(keep in mind that often Channel Bindings do not even bind to a<br>
specific session, see &#39;tls-server-end-point&#39; which is used in<br>
preference in many cases within HTTPS endpoints because of the way<br>
server termination is built in some scalable architectures).<br>
<br>
&gt; When someone tries to copy a message from a SCRAM handshake into some<=
br>
&gt; GSS-API run on a single TLS connection I want to be sure that it will =
be<br>
&gt; rejected, without having to understand exactly how every version of SC=
RAM<br>
&gt; and GSS-API ever (including ones that will be drafted in the future) w=
orks<br>
&gt; (not to mention every other protocol past, present, and future that us=
es<br>
&gt; the same string.)<br>
<br>
Both SCRAM and GSS-API are authentication mechanisms that use shared<br>
keys for authentication. Both protocols are inherently resistant to<br>
message swapping because the chances of producing a message on one<br>
protocol that can be successfully decrypted/HMACed on the other are<br>
astronomically low (they must be or the protocols are broken).<br>
<br>
Channel bindings are just a way to tie those authentications to the<br>
specific channel used underneath. I can&#39;t see how using the same value<=
br>
for both protocols can lead to any compromise (see again &#39;tls-server-<b=
r>
end-point&#39;, where there isn&#39;t even a &quot;same&quot; channel guara=
ntee, or<br>
previous CBs where the binding was done to an IP address or other clear<br>
text session value).<br>
<br>
If passing an arbitrary channel binding values could suddenly (and<br>
predictably?) allow one protocol to be swapped for the other or have<br>
one protocol generate derived session keys that are usable with the<br>
other, it would mean those authentication mechanisms (SCRAM,GSS-<br>
API,...) are completely broken, as that would mean the keys and<br>
derivations used in those protocols are not providing the necessary<br>
security guarantees.<br>
<br>
&gt; In the same way that we include strings in the TLS key schedule to ens=
ure<br>
&gt; that handshake messages can&#39;t be confused with each other or with =
earlier<br>
&gt; versions of TLS, or even with Exported Authenticators, or MLS, or any =
other<br>
&gt; protocol that uses keys, we should use channel bindings to separate<br=
>
&gt; protocols run over the top of TLS.<br>
<br>
Yes, this is done because those messages are not further confounded<br>
with additional private keys, but the situation is substantially<br>
different when you talk about authentication mechanism that already use<br>
additional key material, key derivation and random challenges.<br>
<br>
HTH,<br>
Simo.<br>
<br>
&gt; Regards,<br>
&gt; <br>
&gt; Jonathan<br>
&gt; <br>
&gt; On Wed, 27 Oct 2021 at 19:39, Ruslan N. Marchenko &lt;<a href=3D"mailt=
o:rufferson@gmail.com" target=3D"_blank">rufferson@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt; <br>
&gt; &gt; Hi Jonathan,<br>
&gt; &gt; <br>
&gt; &gt; Am Mittwoch, dem 27.10.2021 um 18:02 +0100 schrieb Jonathan Hoyla=
nd:<br>
&gt; &gt; &gt; Hi Ruslan,<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Without digging into the guts of GSS-API and SCRAM I can&#39=
;t give you a<br>
&gt; &gt; &gt; concrete attack, the issue is that all our assumptions about=
 protocol<br>
&gt; &gt; &gt; security assume that different protocols use totally separat=
e key<br>
&gt; &gt; &gt; material.<br>
&gt; &gt; &gt; For example if I have one protocol that signs arbitrary blob=
s and<br>
&gt; &gt; &gt; another that requires me to sign a challenge to prove I know=
 a private<br>
&gt; &gt; &gt; key then even if they&#39;re both perfectly secure on their =
own they are<br>
&gt; &gt; &gt; totally broken in composition.<br>
&gt; &gt; &gt; This separation of keys is one of the core reasons for the u=
se of<br>
&gt; &gt; &gt; HKDFs, it lets us take some source randomness and use it to =
generate<br>
&gt; &gt; &gt; independent keys.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Designing a channel binding that explicitly suggests people =
use the<br>
&gt; &gt; &gt; same key material for different things is bad practice and p=
oor<br>
&gt; &gt; &gt; protocol design.<br>
&gt; &gt; &gt; Pretty much every attack is on the table if you have multipl=
e protocols<br>
&gt; &gt; &gt; using the same keys, message forgery, improper authenticatio=
n, key<br>
&gt; &gt; &gt; leakage, etc.<br>
&gt; &gt; &gt; The reason for separation of keys is to simply rule out this=
 entire<br>
&gt; &gt; &gt; class of vulnerability.<br>
&gt; &gt; <br>
&gt; &gt; Sorry maybe I&#39;m missing something but why would two unrelated=
 protocols<br>
&gt; &gt; have same key? The binding is derived from TLS session key, if tw=
o<br>
&gt; &gt; unrelated TLS sessions are having the same key this is the proble=
m by<br>
&gt; &gt; itself, and binding material is not amplifying it, just falling t=
o the<br>
&gt; &gt; same problem bucket. And if they are related (eg resumed) then pr=
otocol<br>
&gt; &gt; muxing should perhaps be part of applicaiton stack and it should =
still<br>
&gt; &gt; be happy with a common security context.<br>
&gt; &gt; <br>
&gt; &gt; &gt; If you don&#39;t separate the keys then whenever you make an=
y change to any<br>
&gt; &gt; &gt; protocol you have to consider its security in composition wi=
th every<br>
&gt; &gt; &gt; other protocol, including ones that you don&#39;t know about=
 or that<br>
&gt; &gt; &gt; haven&#39;t been written yet.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Using different labels for different purposes shouldn&#39;t =
require<br>
&gt; &gt; &gt; anything complicated, as it&#39;s just changing the input li=
terals to the<br>
&gt; &gt; &gt; API call.<br>
&gt; &gt; &gt; <br>
&gt; &gt; There&#39;s a difference in telling TLS stack &quot;give me bindi=
ng of that<br>
&gt; &gt; type&quot; - which is pretty much high level abstract call, and a=
sking TLS<br>
&gt; &gt; to perform key derivation (export) for specific label - which req=
uires<br>
&gt; &gt; speaking native TLS implementation api. Now that we have a bunch =
of TLS<br>
&gt; &gt; implementations and several abstractions and all other binding ty=
pes<br>
&gt; &gt; are independent of the higher protocol - it may be challenging ch=
anging<br>
&gt; &gt; the API to make the binding retrieval context-specific. Not that =
it is<br>
&gt; &gt; impossible to make such change, but why?<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; _______________________________________________<br>
&gt; Kitten mailing list<br>
&gt; <a href=3D"mailto:Kitten@ietf.org" target=3D"_blank">Kitten@ietf.org</=
a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/kitten" rel=3D"norefe=
rrer" target=3D"_blank">https://www.ietf.org/mailman/listinfo/kitten</a><br=
>
<br>
-- <br>
Simo Sorce<br>
RHEL Crypto Team<br>
Red Hat, Inc<br>
<br>
<br>
<br>
<br>
</blockquote></div></div>

--000000000000ef452705d00c5f14--


From nobody Fri Nov  5 08:42:12 2021
Return-Path: <dave@cridland.net>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DF0DD3A109A for <kitten@ietfa.amsl.com>; Fri,  5 Nov 2021 08:42:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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=cridland.net
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 15e8Q88xov4H for <kitten@ietfa.amsl.com>; Fri,  5 Nov 2021 08:42:07 -0700 (PDT)
Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 C6DFF3A1097 for <kitten@ietf.org>; Fri,  5 Nov 2021 08:42:06 -0700 (PDT)
Received: by mail-wm1-x334.google.com with SMTP id y84-20020a1c7d57000000b00330cb84834fso9848995wmc.2 for <kitten@ietf.org>; Fri, 05 Nov 2021 08:42:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cridland.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=srWjw5YuJVecQsmzYISvdCx10fTgzYjwyG/qyqMDm4k=; b=TPxyZmK9DobTJf6dVH6IeLo/y0XMBbIf7GLMmYjtkL+qovshPswHRoe2OkS2aV+80m toF2PsYk/vqyn2oDJVXrbfeVWQv7tUFEqoDnGMzCb0hIHWLsvhBPwTS6sT6L4AOPzKJt WlQVB8z95tl4SU3/PWSZhYZWWYUUnrho+BWSg=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=srWjw5YuJVecQsmzYISvdCx10fTgzYjwyG/qyqMDm4k=; b=k2a85RCJjWY+9yYx2Qukecun5LO+ODGaGTJMN9PB8LZY3XXn2RICqoXOeegCqiIZ39 L3dsEIMu+7ErMmlST99G8724UBSk653KiDVBnZFd1nOUNw1f5+LE1CT8z/vOyq2tC1Ed XP2vfbNw2sjitUh3vPR2S+1Dglhr/deYjtRtZsi0fRQ+3Xymik1ix6TAY6G7Huphu8bI fOnDvCtL/vBGYG9o6vRu3zIMpgntmJ4ZhYpCKvqmKEw/uisfYqT5yFo1TEk7udCLLHA1 LmU3f5HMZwd/YT88Ut2EWVtVkMpMhfjuutNif2QFhBgY7eYftR0rtnCS+w/Zk+jMcqSI TkLA==
X-Gm-Message-State: AOAM532hf8l7RRgZZzeE3DW1pdXFri1eDskljkVpUW7JZWsDaedAzdN2 Rat5p3rVoF/O+K1+dzy0yi2xy4uleM1a6XFSK63hYg==
X-Google-Smtp-Source: ABdhPJyl+Bc1mHdWeQsMU2h9qQwU6qFHUaB3gxcoVhMHd3I6R39sP6Go+GjdmeijaOf/eTE+wk+cxWW1Yu4hbil8EIc=
X-Received: by 2002:a1c:f402:: with SMTP id z2mr31625652wma.53.1636126924587;  Fri, 05 Nov 2021 08:42:04 -0700 (PDT)
MIME-Version: 1.0
References: <4a14c16b-644f-ac40-7b3a-a1712c9aa3d2@isode.com>
In-Reply-To: <4a14c16b-644f-ac40-7b3a-a1712c9aa3d2@isode.com>
From: Dave Cridland <dave@cridland.net>
Date: Fri, 5 Nov 2021 15:41:53 +0000
Message-ID: <CAKHUCzwUZJOi0KsSYcyVjHHQkc8EaRHT6=59UhXc2EWDTUi00w@mail.gmail.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Cc: "kitten@ietf.org" <kitten@ietf.org>, Robbie Harwood <rharwood@redhat.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/PvOUVDH3pRpHyl0bpYJCmZK0J70>
Subject: Re: [kitten] Requesting WG adoption of several SCRAM related documents
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Nov 2021 15:42:12 -0000

On Tue, 26 Oct 2021 at 11:43, Alexey Melnikov <alexey.melnikov@isode.com> wrote:
>
> Dear Kitten WG participants,
>
> I would like to request WG adoption of several SCRAM related documents:
>
> 1) Extensions to Salted Challenge Response (SCRAM) for 2 factor
> authentication
> <https://datatracker.ietf.org/doc/draft-melnikov-scram-2fa/>
>
> There were some earlier discussions of this document and it seems to be
> in scope for the current charter.
>

Three years ago I was working on a 2FA (and more specifically, TOTP)
approach for XMPP. The route described here was my first approach - a
way of passing both factors in a single exchange seemed like the
optimal path.

But on early implementation, it became obvious that UX factors render
the saved round-trips insignificant, and also the client-driven
approach this design mandates becomes undesirable. Finally, it
necessitates that every mechanism you want to have TOTP used with
needs TOTP added, and while Alexey's approach does side-step the
creation of an actual new mechanism,

The rough outline seems to be:

* Some users will have enrolled in 2FA (and therefore created a TOTP
secret), whereas others will not have.
* Sometimes, administrators will want to enforce TOTP for all users,
other times, they will wish to make it optional.
* If a TOTP secret exists on the server, its use should ordinarily be
mandatory by a client using a password, and this must be enforced by
the server.
* But, if a client is performing some form of subsequent
reauthentication, you don't want to use it or enforce it.
* Except when you do - it can be useful to re-request a TOTP code
every month, or the reverse, and choose not to re-request TOTP even
when a password mechanism is re-requested.
* Where a TOTP is required, the client will always perform some kind
of user interaction; so asking for the TOTP code as an additional RTT
is fine.

Negotiating second factors as an additional negotiation therefore
became the design, since this provided most flexibility in deployment.

Hence XEP-0388 - https://xmpp.org/extensions/xep-0388.html -
colloquially known as SASL2 which replaces the existing XMPP SASL
profile with a newer profile which is not only more extensible (useful
for other reasons in XMPP), but also has a concept of secondary
authentication "tasks".

Originally these were going to be chained mechanisms - so TOTP would
be modelled as a SASL mechanism, and usable in any order. This felt
very clever, but it turns out that "tasks" are different from
"mechanisms" is various ways - mostly in as much as they do not change
the authorization identifier, and so do not need it as an input or
output.

So what XEP-388 provides ends up being a SASL profile that has a
mechanism selection phase for authentication, then the mechanism
exchanges, but then instead of only resulting in success or failure,
also results in a continue, which presents some more tasks, one of
which must be selected and run through.

In practical terms, this gives an opportunity after the initial SCRAM,
PLAIN, etc to use TOTP, or a mandatory password change, or TOTP
initialization.

We defined the TOTP tasks in XEP-0400, and also defined a generalized
"subsequent reauthentication" system which ended up being clientkey
(draft-cridland-kitten-clientkey, and also XEP-0399). Defining
subsequent reauthentication around a SASL mechanism and associated
application-layer support gives useful flexibility, and felt more
generically useful than building it into the mechanisms, but in
retrospect it'd be nice to avoid the necessity for the application
protocol support (even if it's a nice-to-have). An option here would
be to introduce optional tasks in XEP-0388, which the existing design
doesn't have, which could then be used to token initialization.

Finally, to complete the work we were actually trying to do, we also
wrote a "pseudo-mechanism" for clients to request password resets, and
a SASL2 task for mandatory password changes.

The obvious downside of the approach we took is that it requires
changes to the SASL profiles of the application protocols - this is
certainly undesirable. It could be side-stepped by providing a
meta-mechanism, which in turn handled the enhanced exchange
internally, but this is very much a compatibility layer and (I
suspect) less efficient. In any case, XEP-0388 provides a better
profile for XMPP for various unrelated reasons.

The upside of the approach is that - I feel - it matches the
requirements of practical TOTP deployment considerably better, and
provides a flexible framework for 2FA which conforms to the design of
SASL itself.

> 2) SCRAM-SHA-512 and SCRAM-SHA-512-PLUS Simple Authentication and
> Security Layer (SASL) Mechanisms
> <https://datatracker.ietf.org/doc/draft-melnikov-scram-sha-512/>
>
> This is already implemented in Cyrus SASL, so it would be good to have
> stable documentation.
>
> 3) SCRAM-SHA3-512 and SCRAM-SHA3-512-PLUS Simple Authentication and
> Security Layer (SASL) Mechanisms
> <https://datatracker.ietf.org/doc/draft-melnikov-scram-sha3-512/>

These two look good, and we should most certainly get them published
on the standards track.

Dave.


From nobody Fri Nov  5 08:50:14 2021
Return-Path: <alexey.melnikov@isode.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 217533A0D6B for <kitten@ietfa.amsl.com>; Fri,  5 Nov 2021 08:50:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.429
X-Spam-Level: 
X-Spam-Status: No, score=-5.429 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-3.33, 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=isode.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 yWWfWoZrSAPP for <kitten@ietfa.amsl.com>; Fri,  5 Nov 2021 08:50:08 -0700 (PDT)
Received: from waldorf.isode.com (waldorf.isode.com [62.232.206.188]) by ietfa.amsl.com (Postfix) with ESMTP id CAA033A10DD for <kitten@ietf.org>; Fri,  5 Nov 2021 08:50:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1636127405; d=isode.com; s=june2016; i=@isode.com; bh=pKSTkml2HUmrwpfZAd9tjj46FCUAhkETSA3JkZ2AwTM=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=NR7Ao8dCEEqTPUsYWM2nlWnRsbcbHbpipUR/TIlOmoqjBHewYFqefbgthcEjguM4n83+jN hlqPnygDqioGedrlkub8WA90EPuwhUx3dJGoVnFHUkZKljtrXkgRF46iAWBemDxdAufioj GDFPCPaVpLbaAe2uRxlFvBEaUjGjAEk=;
Received: from [192.168.1.222] (host5-81-100-95.range5-81.btcentralplus.com [5.81.100.95])  by waldorf.isode.com (submission channel) via TCP with ESMTPSA  id <YYVSrAAF4rzn@waldorf.isode.com>; Fri, 5 Nov 2021 15:50:05 +0000
To: Dave Cridland <dave@cridland.net>
Cc: "kitten@ietf.org" <kitten@ietf.org>, Robbie Harwood <rharwood@redhat.com>
References: <4a14c16b-644f-ac40-7b3a-a1712c9aa3d2@isode.com> <CAKHUCzwUZJOi0KsSYcyVjHHQkc8EaRHT6=59UhXc2EWDTUi00w@mail.gmail.com>
From: Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <dc5a6e3f-6024-0578-e417-7ebe589ccd3b@isode.com>
Date: Fri, 5 Nov 2021 15:49:57 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0
In-Reply-To: <CAKHUCzwUZJOi0KsSYcyVjHHQkc8EaRHT6=59UhXc2EWDTUi00w@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-GB
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/tEZELZFh40ZW4RdJIVdYij9UBsk>
Subject: Re: [kitten] Requesting WG adoption of several SCRAM related documents
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Nov 2021 15:50:13 -0000

Dave,

On 05/11/2021 15:41, Dave Cridland wrote:
> The obvious downside of the approach we took is that it requires
> changes to the SASL profiles of the application protocols - this is
> certainly undesirable.

I like your approach of stacking mechanisms, but I fear this is going to 
be a multi-year approach to implement and deploy.

So yes, happy to work on this as well, but I am not happy to not work on 
simpler/quicker ways to deploy 2FA with SCRAM that can be done in a 
couple of months time.

> It could be side-stepped by providing a
> meta-mechanism, which in turn handled the enhanced exchange
> internally, but this is very much a compatibility layer and (I
> suspect) less efficient. In any case, XEP-0388 provides a better
> profile for XMPP for various unrelated reasons.

Best Regards,

Alexey


From nobody Fri Nov  5 10:08:21 2021
Return-Path: <dave@cridland.net>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F04483A125C for <kitten@ietfa.amsl.com>; Fri,  5 Nov 2021 10:08:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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=cridland.net
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 EWiE263D99C8 for <kitten@ietfa.amsl.com>; Fri,  5 Nov 2021 10:08:15 -0700 (PDT)
Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (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 2F4D13A1256 for <kitten@ietf.org>; Fri,  5 Nov 2021 10:08:15 -0700 (PDT)
Received: by mail-wm1-x335.google.com with SMTP id 67-20020a1c1946000000b0030d4c90fa87so6903926wmz.2 for <kitten@ietf.org>; Fri, 05 Nov 2021 10:08:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cridland.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nS1/wYygz/X4KpSKKzfa5qOOUmPtgEi386TwUw2yuFU=; b=VgcjanbTrFF6ezjDnTwa/7iT3AqEudiL62wWW/QqBKvgHP7rwzy+YAef40W27uWjl/ 5q1KHB5zKhQgxiSJN512zomlDXxnB5qRoTuINzdttBXrWW82jtlmLrerCDYGjn3QB/N/ rSZCBybOHvhLVyqZSBZRQf8AE5vU4Q0I5aUoA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nS1/wYygz/X4KpSKKzfa5qOOUmPtgEi386TwUw2yuFU=; b=U3YPfKn2anhGvVDBENQ03xPwCWyfPeDA9h97Cjr8ufh9dWljv8SuKBJq9PhNO1FfCZ WNNkjfPvAV30LEhs0fXqf7ERIOG5xx9qbCoM5vvwsgV/qHzg8Ws9aUPww6U65CyysTQy Wlg0/7UBYrmIGrJOVIfo63VytLyy51hPRXq711NlWDFskkZG9Vjvu3DJV7QDh6FedLOj UXPM0P/sMRqyEfbKNkAS+vIHrv76/mWk+wJZGSqFdB+Kk9E+WGJk21pTDUyBR19f5vQV ofxz2TTeh4/5J+N3D/mPjRZOFe4z0Dzhvt41hPYvSjWJwTpNi0VV1oDWcvZEb4L+qJ8+ aKfg==
X-Gm-Message-State: AOAM531OqzyBBffy8FulT5TN6xRz6XayZ0R0oXCyImrkIYaufM4rsjtD 659d0BxFHe8auWlwqaOAxcka/f2EopgyR0CkAOBXs2sxa3o=
X-Google-Smtp-Source: ABdhPJyB46UW1k+m66/tc4ZWyvHbBfN5mRjSUiGD9XgRv9Tbgoq/vxZWDION6arVK5YhJfxt6og11tuCLVLXmh2HHzg=
X-Received: by 2002:a05:600c:b46:: with SMTP id k6mr11608497wmr.45.1636132092243;  Fri, 05 Nov 2021 10:08:12 -0700 (PDT)
MIME-Version: 1.0
References: <4a14c16b-644f-ac40-7b3a-a1712c9aa3d2@isode.com> <CAKHUCzwUZJOi0KsSYcyVjHHQkc8EaRHT6=59UhXc2EWDTUi00w@mail.gmail.com> <dc5a6e3f-6024-0578-e417-7ebe589ccd3b@isode.com>
In-Reply-To: <dc5a6e3f-6024-0578-e417-7ebe589ccd3b@isode.com>
From: Dave Cridland <dave@cridland.net>
Date: Fri, 5 Nov 2021 17:08:01 +0000
Message-ID: <CAKHUCzwAV+gSX9dSTGM-W_NetPduGN9JRBU_+JPCJ3QoUTagjA@mail.gmail.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Cc: "kitten@ietf.org" <kitten@ietf.org>, Robbie Harwood <rharwood@redhat.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/COzPB_49jiYBsXNPtZLRYsompDA>
Subject: Re: [kitten] Requesting WG adoption of several SCRAM related documents
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Nov 2021 17:08:20 -0000

Hi Alexey,

On Fri, 5 Nov 2021 at 15:50, Alexey Melnikov <alexey.melnikov@isode.com> wrote:
>
> Dave,
>
> On 05/11/2021 15:41, Dave Cridland wrote:
> > The obvious downside of the approach we took is that it requires
> > changes to the SASL profiles of the application protocols - this is
> > certainly undesirable.
>
> I like your approach of stacking mechanisms, but I fear this is going to
> be a multi-year approach to implement and deploy.
>
> So yes, happy to work on this as well, but I am not happy to not work on
> simpler/quicker ways to deploy 2FA with SCRAM that can be done in a
> couple of months time.
>

OK, and I understand your motive for something rapidly deployable -
but what about encapsulating the XEP-0388 SASL flow within another
mechanism?

This would mean a mechanism where the messages were:

Client Send First: username, optional wrapped-mechname, optional
client-send-first for wrapped-mechanism
Server: wrapped-mechname, wrapped-exchange OR mechanisms-list
Client: ...
Server: ...
Client: ...
Server: success, optional success-data OR failure OR continue,
optional success-data, task list

[etc]

That would mean you could wrap SCRAM within it and where TOTP was
required by the server, it could force that and the UX flow would be
as expected - thus functionally equivalent to your design but also
more or less as easy to deploy (in as much as it could be written as a
Cyrus SASL mechanism plugin I think - one that itself would then make
mechanism calls).

But it would also be equivalent in terms of SASL itself to XEP-0388,
thus allowing TOTP to be used with PLAIN, and HOTP or even SMS codes
to be used in lieu of TOTP (in principle).

The only real change from yours is that there's an additional RTT
involved for TOTP, but that's irrelevant when the user is having to
fumble about for their phone anyway.

If you're interested in exploring further I'm happy to describe this
approach more formally (ie, put together an I-D).

> > It could be side-stepped by providing a
> > meta-mechanism, which in turn handled the enhanced exchange
> > internally, but this is very much a compatibility layer and (I
> > suspect) less efficient. In any case, XEP-0388 provides a better
> > profile for XMPP for various unrelated reasons.
>
> Best Regards,
>
> Alexey
>


From nobody Fri Nov  5 16:02:09 2021
Return-Path: <me@ruff.mobi>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 783F13A096D; Fri,  5 Nov 2021 16:02:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 locLa8-vSRV8; Fri,  5 Nov 2021 16:02:04 -0700 (PDT)
Received: from vex.ruff.mobi (vex.ruff.mobi [37.120.177.103]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 11D773A0965; Fri,  5 Nov 2021 16:02:02 -0700 (PDT)
Received: from pi.ruff.mobi (ip-78-45-99-112.net.upcbroadband.cz [78.45.99.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "ruff.mobi", Issuer "R3" (not verified)) by vex.ruff.mobi (Postfix) with ESMTPS id F0A5814E09D3; Sat,  6 Nov 2021 00:01:54 +0100 (CET)
Received: from dei.ruff.mobi (unknown [IPv6:2001:470:741b::6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by pi.ruff.mobi (Postfix) with ESMTPSA id 89C51132E3; Sat,  6 Nov 2021 00:01:51 +0100 (CET)
Message-ID: <74b19fe040f34462c6b2249614319b9fe95b4399.camel@ruff.mobi>
From: "Ruslan N. Marchenko" <me@ruff.mobi>
To: KITTEN Working Group <kitten@ietf.org>, TLS Working Group <tls@ietf.org>
Cc: Simo Sorce <simo@redhat.com>
Date: Sat, 06 Nov 2021 00:01:34 +0100
In-Reply-To: <CACykbs1biupGfYaxrBykYk+=cFZxqVLVbFvcynnjCUzxLh4pmg@mail.gmail.com>
References: <163311243544.13917.11736165165419008870@ietfa.amsl.com> <20211001190002.GC98042@kduck.mit.edu> <CABcZeBPQG82xJdwMrmj4-=9aJymo1xts=D6VZedBW5X9k+34cQ@mail.gmail.com> <92ed26c1-bfde-43c1-93f4-2bbdbd4f6ec1@www.fastmail.com> <CAChr6Sw6Rs42DfS8KgD3qasPcWM_gGZhWN5C4b7W7JsPy0wDzw@mail.gmail.com> <8796f867-12b8-41f8-b124-82b3ab0e2d32@www.fastmail.com> <CAChr6SyKAnBcE9t68coGGXFt9WPLuDuWtVKoCXrK+QrwAVtPXw@mail.gmail.com> <f1bcd676-13ad-49b3-a8e8-8a272e0124e3@www.fastmail.com> <CABcZeBNo0gKjNZOKPYJYraioaw6G=z5ibTqh-o9GkWsDkfDmSQ@mail.gmail.com> <c4d6f2e5-0712-42a6-aef5-0cbada7e149e@www.fastmail.com> <CABcZeBM6y-6ZqaLGZ=8qr+uBnWOOgczhcx=ruy5S=n-YrHweKg@mail.gmail.com> <ca676a77-b2c9-4926-9842-d1d6587206ed@www.fastmail.com> <CACykbs11rHUweXmR1NSU0N2rRjcQ8Sf1S+DY2LO7T+e6cLt+5w@mail.gmail.com> <e9570c02c4f703780a4e317b26607ac124a3b595.camel@ruff.mobi> <CACykbs3v0FC50WQHNqq-oXwKDE=Jha-o0P=Mgr92OgyeKPS6Ug@mail.gmail.com> <7e862904cee5f86e4b77fce23c451c2abe0dc720.camel@ruff.mobi> <CACykbs2V0mgxDz_MK2EiqSDBGWWfvq0TAX+UpLSEZKwOoFc8HQ@mail.gmail.com> <e682da42c5ccd32d1d184970db631624eb6ee507.camel@redhat.com> <CACykbs1biupGfYaxrBykYk+=cFZxqVLVbFvcynnjCUzxLh4pmg@mail.gmail.com>
Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-puZozTi2b7XWVnjgoadT"
User-Agent: Evolution 3.40.4 
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/NROrGAzfrvXGc0YS9EqE8qCI5R0>
Subject: Re: [kitten] [TLS] Fwd: Last Call: <draft-ietf-kitten-tls-channel-bindings-for-tls13-09.txt> (Channel Bindings for TLS 1.3) to Proposed Standard
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Nov 2021 23:02:08 -0000

--=-puZozTi2b7XWVnjgoadT
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Jonathan,

Am Freitag, dem 05.11.2021 um 15:34 +0000 schrieb Jonathan Hoyland:
>=20
> Having now looked at SCRAM a little bit, using the TLS channel
> binding guarantees that some malicious server isn't passing the
> client's messages off to another server and performing a malicious
> authentication there.
> ...
> If you don't require a unique string I could write a new protocol
> SCRAM++ with cross-compatible messages, but different security
> guarantees, and use that to compromise SCRAM clients.=20
> Obviously that's a patently malicious example, but it's perfectly
> possible that some new version of SCRAM produces messages that an old
> version of SCRAM misinterprets.=20
Authentication method and SCRAM mechanism negotiation must happen
before SCRAM exchange. if parties don't agree on the method/mechanism
negotiation fails. If you control the server to the level that you
negotate one method/mechanism but use another - you're not mitm, you
just _pwn_ the service, and no binding in the world would solve that.
> It's even highly likely that a server that supports old versions of
> SCRAM for backwards compatibility would use the same key material for
> all versions.=20
>=20
> Requiring a unique string makes the messages totally unrelated.=20
>=20
> I don't find the arguments "It's always been insecure in the past" or
> "We have bad APIs" especially compelling.=20
>=20
It's not "historically insecure", it's just not a secret key by design.
It's public (non-secret) but unique and imutable property of the TLS
channel (not application/authentication channel, mind you). Finished
packet - is not a secret - any sneaky person can snoop it. Certificate
digest - is not a secret, any person in the world can get it. It's not
a guardian of the confidentiality, rather a warrant of integrity.


Regards,
Ruslan

--=-puZozTi2b7XWVnjgoadT
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iLUEABMKAB0WIQQmaBdx0pI7WegwH++rtatsHSOZ+wUCYYW3zgAKCRCrtatsHSOZ
+1R7Af9vHRTV0WIDUNWSCMEGbnC+bTNUpyLMQzHy3VIzo7xb25/71V566nSnogSR
pjIVnmevV1JHUVYYh0TmFCxAbqPUAf4+qJxbFKALhFY9knlUPEVGU2lSKnxodOIk
pcc1fpH1jfaBXiMzEj2+SLY+RbGi6l1ApenwLXKmXSaag7XScGOw
=j7DR
-----END PGP SIGNATURE-----

--=-puZozTi2b7XWVnjgoadT--


From nobody Mon Nov  8 03:59:00 2021
Return-Path: <alexey.melnikov@isode.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E34433A0E8E; Mon,  8 Nov 2021 03:58:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.428
X-Spam-Level: 
X-Spam-Status: No, score=-5.428 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, NICE_REPLY_A=-3.33, 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=isode.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 khD6efsQxHN9; Mon,  8 Nov 2021 03:58:48 -0800 (PST)
Received: from waldorf.isode.com (waldorf.isode.com [62.232.206.188]) by ietfa.amsl.com (Postfix) with ESMTP id 9BD143A0E1B; Mon,  8 Nov 2021 03:58:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1636372723; d=isode.com; s=june2016; i=@isode.com; bh=9Wap1R1qnRZn78XAuP5Re/rZ2JNWj32HPQCqgOni+oM=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=mavR9f4BHaE9z61SiGBD+iz42ifWeNBJo8VSR7h/de+9IshLvMDTTs/ooUbBl2/hzAGG9O AZ2KjcMn1oMV2zyL3IPyj/5hWstlFaO41XwvpmNqc0KMVJfapNdcMFjsjOfX/K0/HjqK5V 0hqvFKMm8ehhZvrrO2VI68DNGwuL39I=;
Received: from [192.168.1.222] (host5-81-100-95.range5-81.btcentralplus.com [5.81.100.95])  by waldorf.isode.com (submission channel) via TCP with ESMTPSA  id <YYkQ8gAF4jvY@waldorf.isode.com>; Mon, 8 Nov 2021 11:58:42 +0000
To: Jonathan Hoyland <jonathan.hoyland@gmail.com>, Simo Sorce <simo@redhat.com>
Cc: KITTEN Working Group <kitten@ietf.org>, "Ruslan N. Marchenko" <rufferson@gmail.com>, tls@ietf.org
References: <163311243544.13917.11736165165419008870@ietfa.amsl.com> <8796f867-12b8-41f8-b124-82b3ab0e2d32@www.fastmail.com> <CAChr6SyKAnBcE9t68coGGXFt9WPLuDuWtVKoCXrK+QrwAVtPXw@mail.gmail.com> <f1bcd676-13ad-49b3-a8e8-8a272e0124e3@www.fastmail.com> <CABcZeBNo0gKjNZOKPYJYraioaw6G=z5ibTqh-o9GkWsDkfDmSQ@mail.gmail.com> <c4d6f2e5-0712-42a6-aef5-0cbada7e149e@www.fastmail.com> <CABcZeBM6y-6ZqaLGZ=8qr+uBnWOOgczhcx=ruy5S=n-YrHweKg@mail.gmail.com> <ca676a77-b2c9-4926-9842-d1d6587206ed@www.fastmail.com> <CACykbs11rHUweXmR1NSU0N2rRjcQ8Sf1S+DY2LO7T+e6cLt+5w@mail.gmail.com> <e9570c02c4f703780a4e317b26607ac124a3b595.camel@ruff.mobi> <CACykbs3v0FC50WQHNqq-oXwKDE=Jha-o0P=Mgr92OgyeKPS6Ug@mail.gmail.com> <7e862904cee5f86e4b77fce23c451c2abe0dc720.camel@ruff.mobi> <CACykbs2V0mgxDz_MK2EiqSDBGWWfvq0TAX+UpLSEZKwOoFc8HQ@mail.gmail.com> <e682da42c5ccd32d1d184970db631624eb6ee507.camel@redhat.com> <CACykbs1biupGfYaxrBykYk+=cFZxqVLVbFvcynnjCUzxLh4pmg@mail.gmail.com>
From: Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <6a4297cd-6514-78b7-b93b-1a7a3461c0de@isode.com>
Date: Mon, 8 Nov 2021 11:58:36 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0
In-Reply-To: <CACykbs1biupGfYaxrBykYk+=cFZxqVLVbFvcynnjCUzxLh4pmg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="------------5D4F46DFE0847A4756952998"
Content-Language: en-GB
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/ZbrrPDpKzKeJTrxxjFbtFt1_Izc>
Subject: Re: [kitten] [TLS] Fwd: Last Call: <draft-ietf-kitten-tls-channel-bindings-for-tls13-09.txt> (Channel Bindings for TLS 1.3) to Proposed Standard
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Nov 2021 11:58:58 -0000

This is a multi-part message in MIME format.
--------------5D4F46DFE0847A4756952998
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Jonathan,

On 05/11/2021 15:34, Jonathan Hoyland wrote:
> Hi Simo,
>
> As I said in my email to Sam, my language here was sloppy, I meant 
> that the channel binding is included in the key derivation process, 
> and thus the output keys will be related to each other.
> The term channel bindings has two different meanings using in very 
> similar contexts, which leads to great confusion and is why I prefer 
> the term compound authentication (see Chapter 4.4 of my thesis) 
> <https://pure.royalholloway.ac.uk/portal/files/33074422/2018HoylandJGPhD.pdf>. 
>
> A channel binding is a "name" of a channel as you say, but it is also 
> used to mean using one channel to authenticate another.
> Very specifically if channel `a` is bound to channel `b` then that 
> means that if channel `b` is securely authenticated then channel `a` 
> was formed honestly (i.e. even if all of the long term key material 
> for channel `a` has been leaked, I can be sure that my channel `a` 
> peer is the same actor as my channel `b` peer.)
>
> Channel bindings that aren't bound to a specific session are less 
> secure than ones that are, so yes, you can use them, but that doesn't 
> mean they have the security properties you need.
> The purpose of binding a protocol to an underlying TLS session is to 
> leverage some of the security guarantees offered by the TLS layer.
> If those guarantees are never necessary because the over-the-top 
> protocol is always perfectly secure, just run the protocol on the wire 
> and drop the TLS complication.
> If those guarantees are at least sometimes necessary then you need to 
> securely bind the two channels together.
>
> Channel binding does more than simply guarantee that the messages were 
> the same, it also guarantees that the identity of the actors at each 
> layer remains the same, and that the keys derived in each layer match.
> With an appropriately designed channel binding you can use TLS's 
> protection against MITM attacks to protect insecure protocols run over 
> the top.
> Having now looked at SCRAM a little bit, using the TLS channel binding 
> guarantees that some malicious server isn't passing the client's 
> messages off to another server and performing a malicious 
> authentication there.
> Using a unique string from SCRAM means that messages from some other 
> protocol won't be compatible.
> If you don't require a unique string I could write a new protocol 
> SCRAM++ with cross-compatible messages, but different security 
> guarantees, and use that to compromise SCRAM clients.
> Obviously that's a patently malicious example, but it's perfectly 
> possible that some new version of SCRAM produces messages that an old 
> version of SCRAM misinterprets.
> It's even highly likely that a server that supports old versions of 
> SCRAM for backwards compatibility would use the same key material for 
> all versions.

I've been reading this exchange and I still struggle to understand what 
do you think the issue is. But more importantly, what are the possible 
fixes? If you can propose specific modifications to how 
draft-ietf-kitten-tls-channel-bindings-for-tls13 should be constructing 
channel binding for TLS 1.3, then maybe we can make some progress on this.

Best Regards,

Alexey

> Requiring a unique string makes the messages totally unrelated.
>
> I don't find the arguments "It's always been insecure in the past" or 
> "We have bad APIs" especially compelling.
>
> Regards,
>
> Jonathan
>
>
> On Fri, 29 Oct 2021 at 14:55, Simo Sorce <simo@redhat.com 
> <mailto:simo@redhat.com>> wrote:
>
>     Hi Jonathan,
>
>     On Thu, 2021-10-28 at 18:46 +0100, Jonathan Hoyland wrote:
>     > Hi Ruslan,
>     >
>     > Yes, two distinct TLS connections having the same exporter key
>     would be
>     > really bad, but I'm specifically talking about two runs of some
>     protocol
>     > bound to a single TLS session.
>     > A single TLS session will return the same key (modulo rekeying,
>     resumption
>     > etc.) if you call the Exporter API with the same label.
>     > This means that the channel bindings it produces, which will
>     then be used
>     > to derive the keys of the higher layer protocol, will produce
>     related keys.
>     >
>     > The key reason for making the binding retrieval context-specific
>     is to make
>     > sure that different protocols run in the same TLS session
>     produce disjoint
>     > keys.
>
>     Note, Channel Bindings are *not* a key and should never used as such,
>     so I think you are using a false premise here.
>     Channel Bindings are, at most, a unique value associated with a
>     session
>     (keep in mind that often Channel Bindings do not even bind to a
>     specific session, see 'tls-server-end-point' which is used in
>     preference in many cases within HTTPS endpoints because of the way
>     server termination is built in some scalable architectures).
>
>     > When someone tries to copy a message from a SCRAM handshake into
>     some
>     > GSS-API run on a single TLS connection I want to be sure that it
>     will be
>     > rejected, without having to understand exactly how every version
>     of SCRAM
>     > and GSS-API ever (including ones that will be drafted in the
>     future) works
>     > (not to mention every other protocol past, present, and future
>     that uses
>     > the same string.)
>
>     Both SCRAM and GSS-API are authentication mechanisms that use shared
>     keys for authentication. Both protocols are inherently resistant to
>     message swapping because the chances of producing a message on one
>     protocol that can be successfully decrypted/HMACed on the other are
>     astronomically low (they must be or the protocols are broken).
>
>     Channel bindings are just a way to tie those authentications to the
>     specific channel used underneath. I can't see how using the same value
>     for both protocols can lead to any compromise (see again 'tls-server-
>     end-point', where there isn't even a "same" channel guarantee, or
>     previous CBs where the binding was done to an IP address or other
>     clear
>     text session value).
>
>     If passing an arbitrary channel binding values could suddenly (and
>     predictably?) allow one protocol to be swapped for the other or have
>     one protocol generate derived session keys that are usable with the
>     other, it would mean those authentication mechanisms (SCRAM,GSS-
>     API,...) are completely broken, as that would mean the keys and
>     derivations used in those protocols are not providing the necessary
>     security guarantees.
>
>     > In the same way that we include strings in the TLS key schedule
>     to ensure
>     > that handshake messages can't be confused with each other or
>     with earlier
>     > versions of TLS, or even with Exported Authenticators, or MLS,
>     or any other
>     > protocol that uses keys, we should use channel bindings to separate
>     > protocols run over the top of TLS.
>
>     Yes, this is done because those messages are not further confounded
>     with additional private keys, but the situation is substantially
>     different when you talk about authentication mechanism that
>     already use
>     additional key material, key derivation and random challenges.
>
>     HTH,
>     Simo.
>
>     > Regards,
>     >
>     > Jonathan
>     >
>     > On Wed, 27 Oct 2021 at 19:39, Ruslan N. Marchenko
>     <rufferson@gmail.com <mailto:rufferson@gmail.com>>
>     > wrote:
>     >
>     > > Hi Jonathan,
>     > >
>     > > Am Mittwoch, dem 27.10.2021 um 18:02 +0100 schrieb Jonathan
>     Hoyland:
>     > > > Hi Ruslan,
>     > > >
>     > > > Without digging into the guts of GSS-API and SCRAM I can't
>     give you a
>     > > > concrete attack, the issue is that all our assumptions about
>     protocol
>     > > > security assume that different protocols use totally
>     separate key
>     > > > material.
>     > > > For example if I have one protocol that signs arbitrary
>     blobs and
>     > > > another that requires me to sign a challenge to prove I know
>     a private
>     > > > key then even if they're both perfectly secure on their own
>     they are
>     > > > totally broken in composition.
>     > > > This separation of keys is one of the core reasons for the
>     use of
>     > > > HKDFs, it lets us take some source randomness and use it to
>     generate
>     > > > independent keys.
>     > > >
>     > > > Designing a channel binding that explicitly suggests people
>     use the
>     > > > same key material for different things is bad practice and poor
>     > > > protocol design.
>     > > > Pretty much every attack is on the table if you have
>     multiple protocols
>     > > > using the same keys, message forgery, improper
>     authentication, key
>     > > > leakage, etc.
>     > > > The reason for separation of keys is to simply rule out this
>     entire
>     > > > class of vulnerability.
>     > >
>     > > Sorry maybe I'm missing something but why would two unrelated
>     protocols
>     > > have same key? The binding is derived from TLS session key, if two
>     > > unrelated TLS sessions are having the same key this is the
>     problem by
>     > > itself, and binding material is not amplifying it, just
>     falling to the
>     > > same problem bucket. And if they are related (eg resumed) then
>     protocol
>     > > muxing should perhaps be part of applicaiton stack and it
>     should still
>     > > be happy with a common security context.
>     > >
>     > > > If you don't separate the keys then whenever you make any
>     change to any
>     > > > protocol you have to consider its security in composition
>     with every
>     > > > other protocol, including ones that you don't know about or that
>     > > > haven't been written yet.
>     > > >
>     > > > Using different labels for different purposes shouldn't require
>     > > > anything complicated, as it's just changing the input
>     literals to the
>     > > > API call.
>     > > >
>     > > There's a difference in telling TLS stack "give me binding of that
>     > > type" - which is pretty much high level abstract call, and
>     asking TLS
>     > > to perform key derivation (export) for specific label - which
>     requires
>     > > speaking native TLS implementation api. Now that we have a
>     bunch of TLS
>     > > implementations and several abstractions and all other binding
>     types
>     > > are independent of the higher protocol - it may be challenging
>     changing
>     > > the API to make the binding retrieval context-specific. Not
>     that it is
>     > > impossible to make such change, but why?
>     > >
>     > >
>     > >
>     > >
>     > _______________________________________________
>     > Kitten mailing list
>     > Kitten@ietf.org <mailto:Kitten@ietf.org>
>     > https://www.ietf.org/mailman/listinfo/kitten
>     <https://www.ietf.org/mailman/listinfo/kitten>
>
>     -- 
>     Simo Sorce
>     RHEL Crypto Team
>     Red Hat, Inc
>
>
>
>
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls

--------------5D4F46DFE0847A4756952998
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Jonathan,</p>
    <div class="moz-cite-prefix">On 05/11/2021 15:34, Jonathan Hoyland
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CACykbs1biupGfYaxrBykYk+=cFZxqVLVbFvcynnjCUzxLh4pmg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div>Hi Simo,</div>
          <div><br>
          </div>
          <div>As I said in my email to Sam, my language here was
            sloppy, I meant that the channel binding is included in the
            key derivation process, and thus the output keys will be
            related to each other.</div>
          <div>The term channel bindings has two different meanings
            using in very similar contexts, which leads to great
            confusion and is why I prefer the term compound
            authentication <a
href="https://pure.royalholloway.ac.uk/portal/files/33074422/2018HoylandJGPhD.pdf"
              moz-do-not-send="true">(see Chapter 4.4 of my thesis)</a>.
            <br>
          </div>
          <div>A channel binding is a "name" of a channel as you say,
            but it is also used to mean using one channel to
            authenticate another. <br>
          </div>
          <div>Very specifically if channel `a` is bound to channel `b`
            then that means that if channel `b` is securely
            authenticated then channel `a` was formed honestly (i.e.
            even if all of the long term key material for channel `a`
            has been leaked, I can be sure that my channel `a` peer is
            the same actor as my channel `b` peer.)</div>
          <div><br>
          </div>
          <div>Channel bindings that aren't bound to a specific session
            are less secure than ones that are, so yes, you can use
            them, but that doesn't mean they have the security
            properties you need.</div>
          <div>The purpose of binding a protocol to an underlying TLS
            session is to leverage some of the security guarantees
            offered by the TLS layer. <br>
          </div>
          <div>If those guarantees are never necessary because the
            over-the-top protocol is always perfectly secure, just run
            the protocol on the wire and drop the TLS complication.</div>
          <div>If those guarantees are at least sometimes necessary then
            you need to securely bind the two channels together.</div>
          <div><br>
          </div>
          <div>Channel binding does more than simply guarantee that the
            messages were the same, it also guarantees that the identity
            of the actors at each layer remains the same, and that the
            keys derived in each layer match. <br>
          </div>
          <div>With an appropriately designed channel binding you can
            use TLS's protection against MITM attacks to protect
            insecure protocols run over the top. <br>
          </div>
          <div>Having now looked at SCRAM a little bit, using the TLS
            channel binding guarantees that some malicious server isn't
            passing the client's messages off to another server and
            performing a malicious authentication there.</div>
          <div>Using a unique string from SCRAM means that messages from
            some other protocol won't be compatible.</div>
          <div>If you don't require a unique string I could write a new
            protocol SCRAM++ with cross-compatible messages, but
            different security guarantees, and use that to compromise
            SCRAM clients. <br>
          </div>
          <div>Obviously that's a patently malicious example, but it's
            perfectly possible that some new version of SCRAM produces
            messages that an old version of SCRAM misinterprets. <br>
          </div>
          <div>It's even highly likely that a server that supports old
            versions of SCRAM for backwards compatibility would use the
            same key material for all versions. <br>
          </div>
        </div>
      </div>
    </blockquote>
    <p>I've been reading this exchange and I still struggle to
      understand what do you think the issue is. But more importantly,
      what are the possible fixes? If you can propose specific
      modifications to how
      draft-ietf-kitten-tls-channel-bindings-for-tls13 should be
      constructing channel binding for TLS 1.3, then maybe we can make
      some progress on this.</p>
    <p>Best Regards,</p>
    <p>Alexey<br>
    </p>
    <blockquote type="cite"
cite="mid:CACykbs1biupGfYaxrBykYk+=cFZxqVLVbFvcynnjCUzxLh4pmg@mail.gmail.com">
      <div dir="ltr">
        <div dir="ltr">
          <div>Requiring a unique string makes the messages totally
            unrelated. <br>
          </div>
          <div><br>
          </div>
          <div>I don't find the arguments "It's always been insecure in
            the past" or "We have bad APIs" especially compelling. <br>
          </div>
          <div><br>
          </div>
          <div>Regards,</div>
          <div><br>
          </div>
          <div>Jonathan<br>
          </div>
          <div><br>
          </div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Fri, 29 Oct 2021 at
            14:55, Simo Sorce &lt;<a href="mailto:simo@redhat.com"
              moz-do-not-send="true">simo@redhat.com</a>&gt; wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">Hi Jonathan,<br>
            <br>
            On Thu, 2021-10-28 at 18:46 +0100, Jonathan Hoyland wrote:<br>
            &gt; Hi Ruslan,<br>
            &gt; <br>
            &gt; Yes, two distinct TLS connections having the same
            exporter key would be<br>
            &gt; really bad, but I'm specifically talking about two runs
            of some protocol<br>
            &gt; bound to a single TLS session.<br>
            &gt; A single TLS session will return the same key (modulo
            rekeying, resumption<br>
            &gt; etc.) if you call the Exporter API with the same label.<br>
            &gt; This means that the channel bindings it produces, which
            will then be used<br>
            &gt; to derive the keys of the higher layer protocol, will
            produce related keys.<br>
            &gt; <br>
            &gt; The key reason for making the binding retrieval
            context-specific is to make<br>
            &gt; sure that different protocols run in the same TLS
            session produce disjoint<br>
            &gt; keys.<br>
            <br>
            Note, Channel Bindings are *not* a key and should never used
            as such,<br>
            so I think you are using a false premise here.<br>
            Channel Bindings are, at most, a unique value associated
            with a session<br>
            (keep in mind that often Channel Bindings do not even bind
            to a<br>
            specific session, see 'tls-server-end-point' which is used
            in<br>
            preference in many cases within HTTPS endpoints because of
            the way<br>
            server termination is built in some scalable architectures).<br>
            <br>
            &gt; When someone tries to copy a message from a SCRAM
            handshake into some<br>
            &gt; GSS-API run on a single TLS connection I want to be
            sure that it will be<br>
            &gt; rejected, without having to understand exactly how
            every version of SCRAM<br>
            &gt; and GSS-API ever (including ones that will be drafted
            in the future) works<br>
            &gt; (not to mention every other protocol past, present, and
            future that uses<br>
            &gt; the same string.)<br>
            <br>
            Both SCRAM and GSS-API are authentication mechanisms that
            use shared<br>
            keys for authentication. Both protocols are inherently
            resistant to<br>
            message swapping because the chances of producing a message
            on one<br>
            protocol that can be successfully decrypted/HMACed on the
            other are<br>
            astronomically low (they must be or the protocols are
            broken).<br>
            <br>
            Channel bindings are just a way to tie those authentications
            to the<br>
            specific channel used underneath. I can't see how using the
            same value<br>
            for both protocols can lead to any compromise (see again
            'tls-server-<br>
            end-point', where there isn't even a "same" channel
            guarantee, or<br>
            previous CBs where the binding was done to an IP address or
            other clear<br>
            text session value).<br>
            <br>
            If passing an arbitrary channel binding values could
            suddenly (and<br>
            predictably?) allow one protocol to be swapped for the other
            or have<br>
            one protocol generate derived session keys that are usable
            with the<br>
            other, it would mean those authentication mechanisms
            (SCRAM,GSS-<br>
            API,...) are completely broken, as that would mean the keys
            and<br>
            derivations used in those protocols are not providing the
            necessary<br>
            security guarantees.<br>
            <br>
            &gt; In the same way that we include strings in the TLS key
            schedule to ensure<br>
            &gt; that handshake messages can't be confused with each
            other or with earlier<br>
            &gt; versions of TLS, or even with Exported Authenticators,
            or MLS, or any other<br>
            &gt; protocol that uses keys, we should use channel bindings
            to separate<br>
            &gt; protocols run over the top of TLS.<br>
            <br>
            Yes, this is done because those messages are not further
            confounded<br>
            with additional private keys, but the situation is
            substantially<br>
            different when you talk about authentication mechanism that
            already use<br>
            additional key material, key derivation and random
            challenges.<br>
            <br>
            HTH,<br>
            Simo.<br>
            <br>
            &gt; Regards,<br>
            &gt; <br>
            &gt; Jonathan<br>
            &gt; <br>
            &gt; On Wed, 27 Oct 2021 at 19:39, Ruslan N. Marchenko &lt;<a
              href="mailto:rufferson@gmail.com" target="_blank"
              moz-do-not-send="true">rufferson@gmail.com</a>&gt;<br>
            &gt; wrote:<br>
            &gt; <br>
            &gt; &gt; Hi Jonathan,<br>
            &gt; &gt; <br>
            &gt; &gt; Am Mittwoch, dem 27.10.2021 um 18:02 +0100 schrieb
            Jonathan Hoyland:<br>
            &gt; &gt; &gt; Hi Ruslan,<br>
            &gt; &gt; &gt; <br>
            &gt; &gt; &gt; Without digging into the guts of GSS-API and
            SCRAM I can't give you a<br>
            &gt; &gt; &gt; concrete attack, the issue is that all our
            assumptions about protocol<br>
            &gt; &gt; &gt; security assume that different protocols use
            totally separate key<br>
            &gt; &gt; &gt; material.<br>
            &gt; &gt; &gt; For example if I have one protocol that signs
            arbitrary blobs and<br>
            &gt; &gt; &gt; another that requires me to sign a challenge
            to prove I know a private<br>
            &gt; &gt; &gt; key then even if they're both perfectly
            secure on their own they are<br>
            &gt; &gt; &gt; totally broken in composition.<br>
            &gt; &gt; &gt; This separation of keys is one of the core
            reasons for the use of<br>
            &gt; &gt; &gt; HKDFs, it lets us take some source randomness
            and use it to generate<br>
            &gt; &gt; &gt; independent keys.<br>
            &gt; &gt; &gt; <br>
            &gt; &gt; &gt; Designing a channel binding that explicitly
            suggests people use the<br>
            &gt; &gt; &gt; same key material for different things is bad
            practice and poor<br>
            &gt; &gt; &gt; protocol design.<br>
            &gt; &gt; &gt; Pretty much every attack is on the table if
            you have multiple protocols<br>
            &gt; &gt; &gt; using the same keys, message forgery,
            improper authentication, key<br>
            &gt; &gt; &gt; leakage, etc.<br>
            &gt; &gt; &gt; The reason for separation of keys is to
            simply rule out this entire<br>
            &gt; &gt; &gt; class of vulnerability.<br>
            &gt; &gt; <br>
            &gt; &gt; Sorry maybe I'm missing something but why would
            two unrelated protocols<br>
            &gt; &gt; have same key? The binding is derived from TLS
            session key, if two<br>
            &gt; &gt; unrelated TLS sessions are having the same key
            this is the problem by<br>
            &gt; &gt; itself, and binding material is not amplifying it,
            just falling to the<br>
            &gt; &gt; same problem bucket. And if they are related (eg
            resumed) then protocol<br>
            &gt; &gt; muxing should perhaps be part of applicaiton stack
            and it should still<br>
            &gt; &gt; be happy with a common security context.<br>
            &gt; &gt; <br>
            &gt; &gt; &gt; If you don't separate the keys then whenever
            you make any change to any<br>
            &gt; &gt; &gt; protocol you have to consider its security in
            composition with every<br>
            &gt; &gt; &gt; other protocol, including ones that you don't
            know about or that<br>
            &gt; &gt; &gt; haven't been written yet.<br>
            &gt; &gt; &gt; <br>
            &gt; &gt; &gt; Using different labels for different purposes
            shouldn't require<br>
            &gt; &gt; &gt; anything complicated, as it's just changing
            the input literals to the<br>
            &gt; &gt; &gt; API call.<br>
            &gt; &gt; &gt; <br>
            &gt; &gt; There's a difference in telling TLS stack "give me
            binding of that<br>
            &gt; &gt; type" - which is pretty much high level abstract
            call, and asking TLS<br>
            &gt; &gt; to perform key derivation (export) for specific
            label - which requires<br>
            &gt; &gt; speaking native TLS implementation api. Now that
            we have a bunch of TLS<br>
            &gt; &gt; implementations and several abstractions and all
            other binding types<br>
            &gt; &gt; are independent of the higher protocol - it may be
            challenging changing<br>
            &gt; &gt; the API to make the binding retrieval
            context-specific. Not that it is<br>
            &gt; &gt; impossible to make such change, but why?<br>
            &gt; &gt; <br>
            &gt; &gt; <br>
            &gt; &gt; <br>
            &gt; &gt; <br>
            &gt; _______________________________________________<br>
            &gt; Kitten mailing list<br>
            &gt; <a href="mailto:Kitten@ietf.org" target="_blank"
              moz-do-not-send="true">Kitten@ietf.org</a><br>
            &gt; <a href="https://www.ietf.org/mailman/listinfo/kitten"
              rel="noreferrer" target="_blank" moz-do-not-send="true">https://www.ietf.org/mailman/listinfo/kitten</a><br>
            <br>
            -- <br>
            Simo Sorce<br>
            RHEL Crypto Team<br>
            Red Hat, Inc<br>
            <br>
            <br>
            <br>
            <br>
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
TLS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TLS@ietf.org">TLS@ietf.org</a>
<a class="moz-txt-link-freetext" href="https://www.ietf.org/mailman/listinfo/tls">https://www.ietf.org/mailman/listinfo/tls</a>
</pre>
    </blockquote>
  </body>
</html>

--------------5D4F46DFE0847A4756952998--


From nobody Mon Nov  8 06:17:48 2021
Return-Path: <alexey.melnikov@isode.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E2D0D3A0DCE for <kitten@ietfa.amsl.com>; Mon,  8 Nov 2021 06:17:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.429
X-Spam-Level: 
X-Spam-Status: No, score=-5.429 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-3.33, 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=isode.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 nozHhThnbO1X for <kitten@ietfa.amsl.com>; Mon,  8 Nov 2021 06:17:36 -0800 (PST)
Received: from waldorf.isode.com (waldorf.isode.com [62.232.206.188]) by ietfa.amsl.com (Postfix) with ESMTP id AAC6D3A0CDD for <kitten@ietf.org>; Mon,  8 Nov 2021 06:17:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1636381049; d=isode.com; s=june2016; i=@isode.com; bh=ZornpzhQj06zg1vAvehewHS+oVUF3L/6+99csSoiUDs=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=tiOXts9QlDHJibd2rfy1dS9+J/WPUNuZuk6w2HqpqIv+jbWBSmlDeqk1Cyx75Pbq42P5wR zSEvjI9wPnP/XAv0KGyy0dr7kRjdu7+w07GLTqi9aZGN1v8Oj7EUfxNFsTn9pVRWFYndEm xmourj8QQfExkmVZxW+KkQW2selTJIU=;
Received: from [192.168.1.222] (host5-81-100-95.range5-81.btcentralplus.com [5.81.100.95])  by waldorf.isode.com (submission channel) via TCP with ESMTPSA  id <YYkxeAAF4lH3@waldorf.isode.com>; Mon, 8 Nov 2021 14:17:28 +0000
To: Dave Cridland <dave@cridland.net>
Cc: "kitten@ietf.org" <kitten@ietf.org>, Robbie Harwood <rharwood@redhat.com>
References: <4a14c16b-644f-ac40-7b3a-a1712c9aa3d2@isode.com> <CAKHUCzwUZJOi0KsSYcyVjHHQkc8EaRHT6=59UhXc2EWDTUi00w@mail.gmail.com> <dc5a6e3f-6024-0578-e417-7ebe589ccd3b@isode.com> <CAKHUCzwAV+gSX9dSTGM-W_NetPduGN9JRBU_+JPCJ3QoUTagjA@mail.gmail.com>
From: Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <9ad610e1-8802-dc15-7154-0cb7954ec6ec@isode.com>
Date: Mon, 8 Nov 2021 14:17:19 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0
In-Reply-To: <CAKHUCzwAV+gSX9dSTGM-W_NetPduGN9JRBU_+JPCJ3QoUTagjA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-GB
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/3WdfAwsYAjw12DbaAALUFoLq7sc>
Subject: Re: [kitten] Requesting WG adoption of several SCRAM related documents
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Nov 2021 14:17:48 -0000

Hi Dave,

On 05/11/2021 17:08, Dave Cridland wrote:
> Hi Alexey,
>
> On Fri, 5 Nov 2021 at 15:50, Alexey Melnikov <alexey.melnikov@isode.com> wrote:
>> Dave,
>>
>> On 05/11/2021 15:41, Dave Cridland wrote:
>>> The obvious downside of the approach we took is that it requires
>>> changes to the SASL profiles of the application protocols - this is
>>> certainly undesirable.
>> I like your approach of stacking mechanisms, but I fear this is going to
>> be a multi-year approach to implement and deploy.
>>
>> So yes, happy to work on this as well, but I am not happy to not work on
>> simpler/quicker ways to deploy 2FA with SCRAM that can be done in a
>> couple of months time.
>>
> OK, and I understand your motive for something rapidly deployable -
> but what about encapsulating the XEP-0388 SASL flow within another
> mechanism?
>
> This would mean a mechanism where the messages were:
>
> Client Send First: username, optional wrapped-mechname, optional
> client-send-first for wrapped-mechanism
> Server: wrapped-mechname, wrapped-exchange OR mechanisms-list
> Client: ...
> Server: ...
> Client: ...
> Server: success, optional success-data OR failure OR continue,
> optional success-data, task list

I was thinking about implementation and testing costs of something like 
this. I am not saying this is not the right long term (or medium term) 
solution, but this is definitely more work than adding 2FA directly to 
SCRAM...

I suppose I need to play with this (once I see an ID) and see how much 
work this is going to be.

> [etc]
>
> That would mean you could wrap SCRAM within it and where TOTP was
> required by the server, it could force that and the UX flow would be
> as expected - thus functionally equivalent to your design but also
> more or less as easy to deploy (in as much as it could be written as a
> Cyrus SASL mechanism plugin I think - one that itself would then make
> mechanism calls).
>
> But it would also be equivalent in terms of SASL itself to XEP-0388,
> thus allowing TOTP to be used with PLAIN, and HOTP or even SMS codes
> to be used in lieu of TOTP (in principle).
>
> The only real change from yours is that there's an additional RTT
> involved for TOTP, but that's irrelevant when the user is having to
> fumble about for their phone anyway.
>
> If you're interested in exploring further I'm happy to describe this
> approach more formally (ie, put together an I-D).

The answer to this is pretty much always "yes" :-). So yes, please write 
it as an ID.

Best Regards,

Alexey

>>> It could be side-stepped by providing a
>>> meta-mechanism, which in turn handled the enhanced exchange
>>> internally, but this is very much a compatibility layer and (I
>>> suspect) less efficient. In any case, XEP-0388 provides a better
>>> profile for XMPP for various unrelated reasons.
>> Best Regards,
>>
>> Alexey
>>


From nobody Mon Nov  8 14:48:22 2021
Return-Path: <simon@josefsson.org>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F03213A0DC4; Mon,  8 Nov 2021 14:48:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level: 
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=josefsson.org header.b=iDmrsiae; dkim=pass (2736-bit key) header.d=josefsson.org header.b=v7Per6/F
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 Ho5-mdbmS243; Mon,  8 Nov 2021 14:48:09 -0800 (PST)
Received: from uggla.sjd.se (uggla.sjd.se [IPv6:2001:9b1:8633::107]) (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 D76423A0D3F; Mon,  8 Nov 2021 14:48:08 -0800 (PST)
DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=ed2110; h=Content-Type:MIME-Version:Message-ID:In-Reply-To :Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description; bh=1HNxkVstp/EPcxNtQv3huDYrNfil/+7BTNgq5OVCLm8=; t=1636411689; x=1637621289;  b=iDmrsiaemT9fpSMQlBs/LKXsMt36UT/15qIP7KSsABaIIjNcFwfXq8MjqyFHaTjDCMvjsRWgPlC 92K+5/ScaBA==;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=rsa2110; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=1HNxkVstp/EPcxNtQv3huDYrNfil/+7BTNgq5OVCLm8=; t=1636411689; x=1637621289;  b=v7Per6/Fex9Ub5segQoIqerK8wUy3uwf06QI6nD5pGa5tKrKP7qUZc2rSBE1EqHDDcl5I6ucWGj yG29g9SojxupJrEnK4FC+IcgVlrbxcm3cU4EMYTKGEY3Xax4is5DLnrCiVD245a13n7dMb8cDWEBs xsM05fFypI0ECS/gHKFfhwKJKZv+5pw4ucZpOh1uB4d2tc5bp1deuqsBbFlb9rNxMsDJPc+nn8HYb rOV7cKRSe20CwE8A8R/J9GidxiKqk6oChuLpdD7ZlvW1sFwtDlgIVai/KeT8qwom2Kv182KRX5MQl NopaMcm4ZHd3xeV3KwxhvAKk0d2w8KLHH1yfRnln/DYtAqGn9GXxgjX/wURCtuifmhOHva/Z4wo45 rs5DTPOjILzYli/g/a8uzBhHRkj5swmNuc4Oj0LRy0FU2kDq8QIA3cD6wNCvcCk9g8NuZr22z;
Received: from [2001:9b1:41ac:ff00:50fc:c7e5:7e78:6f99] (port=43334 helo=latte) by uggla.sjd.se with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <simon@josefsson.org>) id 1mkDQp-00FDVY-U5; Mon, 08 Nov 2021 23:48:03 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Jonathan Hoyland <jonathan.hoyland@gmail.com>
Cc: "Ruslan N. Marchenko" <rufferson@gmail.com>,  KITTEN Working Group <kitten@ietf.org>,  "<tls@ietf.org>" <tls@ietf.org>
References: <163311243544.13917.11736165165419008870@ietfa.amsl.com> <20211001190002.GC98042@kduck.mit.edu> <CABcZeBPQG82xJdwMrmj4-=9aJymo1xts=D6VZedBW5X9k+34cQ@mail.gmail.com> <92ed26c1-bfde-43c1-93f4-2bbdbd4f6ec1@www.fastmail.com> <CAChr6Sw6Rs42DfS8KgD3qasPcWM_gGZhWN5C4b7W7JsPy0wDzw@mail.gmail.com> <8796f867-12b8-41f8-b124-82b3ab0e2d32@www.fastmail.com> <CAChr6SyKAnBcE9t68coGGXFt9WPLuDuWtVKoCXrK+QrwAVtPXw@mail.gmail.com> <f1bcd676-13ad-49b3-a8e8-8a272e0124e3@www.fastmail.com> <CABcZeBNo0gKjNZOKPYJYraioaw6G=z5ibTqh-o9GkWsDkfDmSQ@mail.gmail.com> <c4d6f2e5-0712-42a6-aef5-0cbada7e149e@www.fastmail.com> <CABcZeBM6y-6ZqaLGZ=8qr+uBnWOOgczhcx=ruy5S=n-YrHweKg@mail.gmail.com> <ca676a77-b2c9-4926-9842-d1d6587206ed@www.fastmail.com> <CACykbs11rHUweXmR1NSU0N2rRjcQ8Sf1S+DY2LO7T+e6cLt+5w@mail.gmail.com> <e9570c02c4f703780a4e317b26607ac124a3b595.camel@ruff.mobi> <CACykbs3v0FC50WQHNqq-oXwKDE=Jha-o0P=Mgr92OgyeKPS6Ug@mail.gmail.com> <7e862904cee5f86e4b77fce23c451c2abe0dc720.camel@ruff.mobi> <CACykbs2V0mgxDz_MK2EiqSDBGWWfvq0TAX+UpLSEZKwOoFc8HQ@mail.gmail.com>
OpenPGP: id=B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE; url=https://josefsson.org/key-20190320.txt
X-Hashcash: 1:22:211108:kitten@ietf.org::ndZeFjUcyPlAP9Rx:3b3u
X-Hashcash: 1:22:211108:jonathan.hoyland@gmail.com::WSeeKnMrwZldRcgo:6mET
X-Hashcash: 1:22:211108:tls@ietf.org::UfNUWPAR0F9DIm1Y:VbR1
X-Hashcash: 1:22:211108:rufferson@gmail.com::SlWHBWzSd7CPHPLA:QJZ7
Date: Mon, 08 Nov 2021 23:47:59 +0100
In-Reply-To: <CACykbs2V0mgxDz_MK2EiqSDBGWWfvq0TAX+UpLSEZKwOoFc8HQ@mail.gmail.com> (Jonathan Hoyland's message of "Thu, 28 Oct 2021 18:46:26 +0100")
Message-ID: <87zgqei7s0.fsf@latte.josefsson.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/3jQfgyFi8251Z3D9uBtZV3ohx70>
Subject: Re: [kitten] [TLS] Fwd: Last Call: <draft-ietf-kitten-tls-channel-bindings-for-tls13-09.txt> (Channel Bindings for TLS 1.3) to Proposed Standard
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Nov 2021 22:48:16 -0000

--=-=-=
Content-Type: text/plain

Jonathan Hoyland <jonathan.hoyland@gmail.com> writes:

> When someone tries to copy a message from a SCRAM handshake into some
> GSS-API run on a single TLS connection I want to be sure that it will be
> rejected, without having to understand exactly how every version of SCRAM
> and GSS-API ever (including ones that will be drafted in the future) works
> (not to mention every other protocol past, present, and future that uses
> the same string.)

If I understand you correctly, this behaviour was a design choice of
SCRAM (and indirectly GS2) -- it was designed so that SCRAM native in
SASL would produce the same tokens as SCRAM used via GSS-API, for the
same TLS session.  Whether that was a wise decision remains to be seen,
but I don't think it will come as a surprise for anyone, nor is there
any publicly documented attack based on this property that I am aware
of.

/Simon

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIoEARYIADIWIQSjzJyHC50xCrrUzy9RcisI/kdFogUCYYmpHxQcc2ltb25Aam9z
ZWZzc29uLm9yZwAKCRBRcisI/kdFosGhAP4vmjRPgG0Xr4MN2g1zu+IHoSURIEXO
qq7sCTdJYrICtwD/YRZupFZAec2nYMo7jYMQsdsnRc5hye7m5anNtaZQfAA=
=lpNV
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Tue Nov  9 05:00:18 2021
Return-Path: <dave@cridland.net>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6EA5B3A0A70 for <kitten@ietfa.amsl.com>; Tue,  9 Nov 2021 05:00:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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=cridland.net
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 xChjV7leB1jY for <kitten@ietfa.amsl.com>; Tue,  9 Nov 2021 05:00:12 -0800 (PST)
Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (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 B96463A0A6C for <kitten@ietf.org>; Tue,  9 Nov 2021 05:00:11 -0800 (PST)
Received: by mail-wr1-x42a.google.com with SMTP id u18so32818069wrg.5 for <kitten@ietf.org>; Tue, 09 Nov 2021 05:00:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cridland.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0Z1kuwGTaNKc0lr7SY1Fij4PaUU+Uj4fTPjez8ShacA=; b=J1+rN8VZIAzTe+qc/uR4jVVHS/MRYuvafGGnl/RqalQ730RM42EFmYSiqUVYbCJrCM 7wN+QbZgRzFMZukIS8OyNJexQuX5riTl53PsoMTEfhvBFHaonRPbDkaoU9oetELZnj27 hmLA6UEMb9LTQJfUtHbuPReYT7qddHbTGZXyw=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0Z1kuwGTaNKc0lr7SY1Fij4PaUU+Uj4fTPjez8ShacA=; b=OTkX7fplGptbV4Iwr1oT1J70YMzeYmJ2SdXPE0EOP5x49dNQ2oilTD3KphbTGDGuSl faxCSHMxxgEov1mwSgJsSBGO7faAs+OD+lfMRHLIKQmtZ3TNgyDkTed6d7bxDDGlQJFR 49zTbiisQw65L8x8VmsLrN0+5s2jQigML8+Ye9nbY28XmzriWMv1zzOqg2Lhf38TKSgO VYrnPDdlGGpXWhzFEkWVH/Q/Bpu6+5mOT4i0pAJ10/8Ret+Y9ne2yrne05JSpWWDkRdG GGB7vKTzTS94wuHSxDU6IkP8CVMMDOq1bHKm2uAJrC2e8ucXG9aE/jN9CxEyNy/vtMxZ wHeg==
X-Gm-Message-State: AOAM533WYCY+jGtv/rUd0O2p5ilUHRn4UkJopmgouxA6PRYS5xad8+eI Q1CRuswSJGUIVHZ2DYq/kZMiEBt9kUIzchs8957Z/pwSwxw=
X-Google-Smtp-Source: ABdhPJzUYV8N06d5R7NSiJKjeZPittv1jgzAoC6EykR6ad+a/lv9NRViEJNW0Z34HpqZmK6e2A3GmpWBs7S/8ihHisg=
X-Received: by 2002:a5d:6dab:: with SMTP id u11mr8999913wrs.46.1636462809197;  Tue, 09 Nov 2021 05:00:09 -0800 (PST)
MIME-Version: 1.0
References: <163311243544.13917.11736165165419008870@ietfa.amsl.com> <20211001190002.GC98042@kduck.mit.edu> <CABcZeBPQG82xJdwMrmj4-=9aJymo1xts=D6VZedBW5X9k+34cQ@mail.gmail.com> <92ed26c1-bfde-43c1-93f4-2bbdbd4f6ec1@www.fastmail.com> <CAChr6Sw6Rs42DfS8KgD3qasPcWM_gGZhWN5C4b7W7JsPy0wDzw@mail.gmail.com> <8796f867-12b8-41f8-b124-82b3ab0e2d32@www.fastmail.com> <CAChr6SyKAnBcE9t68coGGXFt9WPLuDuWtVKoCXrK+QrwAVtPXw@mail.gmail.com> <f1bcd676-13ad-49b3-a8e8-8a272e0124e3@www.fastmail.com> <CABcZeBNo0gKjNZOKPYJYraioaw6G=z5ibTqh-o9GkWsDkfDmSQ@mail.gmail.com> <c4d6f2e5-0712-42a6-aef5-0cbada7e149e@www.fastmail.com> <CABcZeBM6y-6ZqaLGZ=8qr+uBnWOOgczhcx=ruy5S=n-YrHweKg@mail.gmail.com> <ca676a77-b2c9-4926-9842-d1d6587206ed@www.fastmail.com> <CACykbs11rHUweXmR1NSU0N2rRjcQ8Sf1S+DY2LO7T+e6cLt+5w@mail.gmail.com>
In-Reply-To: <CACykbs11rHUweXmR1NSU0N2rRjcQ8Sf1S+DY2LO7T+e6cLt+5w@mail.gmail.com>
From: Dave Cridland <dave@cridland.net>
Date: Tue, 9 Nov 2021 12:59:58 +0000
Message-ID: <CAKHUCzz5ErY0xuBXVRuoNeZ3RS-7MwKrGH37kgZ=qwyqb-CgOg@mail.gmail.com>
To: jonathan.hoyland@gmail.com
Cc: Sam Whited <sam@samwhited.com>, KITTEN Working Group <kitten@ietf.org>, "<tls@ietf.org>" <tls@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/uT_QLJCw6mFRMVb2AJq_8iFMbTg>
Subject: Re: [kitten] [TLS] Fwd: Last Call: <draft-ietf-kitten-tls-channel-bindings-for-tls13-09.txt> (Channel Bindings for TLS 1.3) to Proposed Standard
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Nov 2021 13:00:17 -0000

On Tue, 26 Oct 2021 at 17:33, Jonathan Hoyland
<jonathan.hoyland@gmail.com> wrote:
> There isn't even a one-to-one relationship between GSS-API / SCRAM runs. This channel binding design doesn't protect against messages being swapped between two GSS-API runs on a single TLS connection.

As I understand your case, you're suggesting that if the same channel
binding is used on multiple authentication runs within the same TLS
session, there may be cases where this may result in weakening of the
bound authentication.

It is not clear to me that this is the case. The channel binding data
is known to both parties of the TLS session for the duration of the
TLS session, so it doesn't seem likely that reusing it could actually
cause problems here.

Most SASL or GSS-API based protocols do not allow multiple
authentications within a single connection, and therefore TLS session,
but there are exceptions.

I think the exceptions are:
* IMAP with draft-newman-imap-unauth - a three year old I-D not
published as an RFC.
* LDAP (and X.500 DAP) both allow multiple consecutive binds.

The suggestion you propose in the quote above is that a single message
could be replayed within one TLS session.

Replay resistance is generally baked into SASL and GSS-API mechanisms,
rather than the channel binding itself. This includes, for example,
SCRAM - replaying one of the messages would result in a failed
authentication whether or not TLS channel binding were to be used.
Some mechanisms are replayable - PLAIN being one - but these both
assume that the TLS session remains confidential, and also they do not
include channel binding information anyway. But there are SASL
mechanisms that have been proposed in the past that do not provide
replay resistance but do include a TLS channel binding. In these
cases, then, your attack is possible and hinges on the reuse of a TLS
channel binding.

The result would be that - on some IMAP and LDAP servers - an
authenticated user could reauthenticate as themselves.

Now, all this does assume that an attacker cannot break a TLS session
during the duration of a TLS session; that is, that we assume TLS
sessions maintain confidentiality, integrity, and authenticity during
the session at least. If this is not the case, then it's game over
anyway, on a number of levels, and your proposed attack (which, I
reiterate, is entirely unproven) makes no difference.

What we do not assume however is that the certificate remains
sacrosanct during this. Again, SASL mechanisms often (and again, this
includes SCRAM) handle their own mutual authentication, so not only
does the client authenticate to the server but the server has to prove
its identity to the client. Assuming ephemeral keying, then, an
attacker compromising the server's certificate doesn't actually make
as much difference as you'd think here. At this point I'm reaching the
edges of my knowledge, but I believe that although the identity as
authenticated by the server's certificate could be spoofed if the
certificate were compromised, ephemeral keying would still protect the
session and SASL mutual authentication would still authenticate the
server later.

Overall, therefore, I have to ask you to find some kind of concrete
attack. "Reusing an exported key within the same TLS session" does not
appear to form the core of an attack as you suggest.

Dave.


From nobody Tue Nov  9 08:01:49 2021
Return-Path: <jonathan.hoyland@gmail.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1B2C83A0899; Tue,  9 Nov 2021 08:01:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level: 
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, 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 (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 XskXFOLbWI_1; Tue,  9 Nov 2021 08:01:39 -0800 (PST)
Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (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 E7D033A088F; Tue,  9 Nov 2021 08:01:24 -0800 (PST)
Received: by mail-qv1-xf2b.google.com with SMTP id u25so14536687qve.2; Tue, 09 Nov 2021 08:01:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=o7PAlrsvg4naCgwzxJgStT+P7IuKTF5Mho3Bqs81Cz8=; b=WX2z/ZGSzpLjlzEQ6rGa3LhLadcL98jnU+kStDlwjhIAw+aPkl0/jbwiMAOwEVjNdS MiZJcGePt4HiKgxdasjBOYTeHfyBdjSiZ0NWS5v6btRKraD079E1gKfpJ1JcOj+fmYzQ x8IzbBFKxb/tHGVvPBgn3UDURx3Y8TsZvhmVR9UxXfpEn6o1PgXuzpqaKXfO6FejPSKL XnoXbfg+jc3mk94qHMph3eH7UP2W/oBb/m0ZNSec63uAIAi7P3n6ZhMEulidBCuAaEfR Rz19FTCp2D6RI6kpLVIzKrQVOCWsX8OFaVsxBVZQ1j/ByVGZIu/S5m3wFNz6w08ojUz1 qbMA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=o7PAlrsvg4naCgwzxJgStT+P7IuKTF5Mho3Bqs81Cz8=; b=NiW09LUyhC0FCwojubLtxaB86UkEY4lna8nK4JuU8mCV69lBs288TWGAjujFTu5zNG 3qOfHUG8WUwQtky7Ihdi2Hxc1He1hOXXROVhD28tDvvgKjUFmpPkmjb9ZpQSLWNcPncr HnOpPMWpJgF5KdB/4UJCyVaTMueGyFlpU32vAyaX4/Jcv70coqvCuLfh7dI3C9bpYeDU 9g9OnN4dv3iZIPvT+j7M68u6tHAApLfJ5DzlFDOWbIq6hckJcccZ5xWVbAz8JFwi0noj qvNDTrhXz921jIXf8sbo//uXOR2AxRqkuWSd8WttzGx57eQ8MUcQCgLBggKhxOgO76Yr BEbA==
X-Gm-Message-State: AOAM531C58rEgL21dXIIefm2hUfcyZJWLpq3ojJy9S4SjxEifv0SmAnl Z5/gahKyVmzZpYsBiW3CMKEU2SJkNttmEhBDE/oUY+ze
X-Google-Smtp-Source: ABdhPJyUMa6hqp3dhW6JP1UNt9B+Z2su2U00Gkly/9ZVDqjX6W8eYEMITPtKrvlMzDvcwmpd9aZd90gWlhC8qknNhUg=
X-Received: by 2002:a0c:eb90:: with SMTP id x16mr8524934qvo.41.1636473682652;  Tue, 09 Nov 2021 08:01:22 -0800 (PST)
MIME-Version: 1.0
References: <163311243544.13917.11736165165419008870@ietfa.amsl.com> <20211001190002.GC98042@kduck.mit.edu> <CABcZeBPQG82xJdwMrmj4-=9aJymo1xts=D6VZedBW5X9k+34cQ@mail.gmail.com> <92ed26c1-bfde-43c1-93f4-2bbdbd4f6ec1@www.fastmail.com> <CAChr6Sw6Rs42DfS8KgD3qasPcWM_gGZhWN5C4b7W7JsPy0wDzw@mail.gmail.com> <8796f867-12b8-41f8-b124-82b3ab0e2d32@www.fastmail.com> <CAChr6SyKAnBcE9t68coGGXFt9WPLuDuWtVKoCXrK+QrwAVtPXw@mail.gmail.com> <f1bcd676-13ad-49b3-a8e8-8a272e0124e3@www.fastmail.com> <CABcZeBNo0gKjNZOKPYJYraioaw6G=z5ibTqh-o9GkWsDkfDmSQ@mail.gmail.com> <c4d6f2e5-0712-42a6-aef5-0cbada7e149e@www.fastmail.com> <CABcZeBM6y-6ZqaLGZ=8qr+uBnWOOgczhcx=ruy5S=n-YrHweKg@mail.gmail.com> <ca676a77-b2c9-4926-9842-d1d6587206ed@www.fastmail.com> <CACykbs11rHUweXmR1NSU0N2rRjcQ8Sf1S+DY2LO7T+e6cLt+5w@mail.gmail.com> <CAKHUCzz5ErY0xuBXVRuoNeZ3RS-7MwKrGH37kgZ=qwyqb-CgOg@mail.gmail.com>
In-Reply-To: <CAKHUCzz5ErY0xuBXVRuoNeZ3RS-7MwKrGH37kgZ=qwyqb-CgOg@mail.gmail.com>
From: Jonathan Hoyland <jonathan.hoyland@gmail.com>
Date: Tue, 9 Nov 2021 16:01:11 +0000
Message-ID: <CACykbs251Tn77jMN_YjcL8RxSax0NcFp8RNRT+oJp1Z=Z+qB2A@mail.gmail.com>
To: Dave Cridland <dave@cridland.net>
Cc: Sam Whited <sam@samwhited.com>, KITTEN Working Group <kitten@ietf.org>, "<tls@ietf.org>" <tls@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000089f56605d05d3841"
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/__qhcpte6Waz36T0l76x-dCBf3c>
Subject: Re: [kitten] [TLS] Fwd: Last Call: <draft-ietf-kitten-tls-channel-bindings-for-tls13-09.txt> (Channel Bindings for TLS 1.3) to Proposed Standard
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Nov 2021 16:01:44 -0000

--00000000000089f56605d05d3841
Content-Type: text/plain; charset="UTF-8"

Hi All,

My specific solution is to simply include a *different* fixed string for
each variant of SCRAM and GSS-API, and ideally a nonce.
Given that applications will have to update their stacks anyway to
accommodate the new fixed string in the current proposal I don't see that
as a hugely difficult proposition.

The goal of labels in material that is used to derive keys (yes, material
that is used to derive keys is necessarily secret, yes material derived
from keys is not necessarily secret), is to exclude classes of attack.
It is good protocol design.

One of the things use of a TLS channel binding gives you is protection for
the upper level protocol against TLS being MITMed.
Using a fixed string for multiple protocols probably gives you that
protection (assuming the channel binding is correctly agreed by both sides).

Using a distinct channel binding, even if the upper level protocol is not
secure, means that if both sides agree on the channel binding they agree on
the intent of the upper layer protocol, i.e. it gives you some level
assurance that the client and server agree on what was intended.
This eliminates classes of attack such as message confusion.
Adding this protection costs virtually nothing, given that you are
_already_ commiting to updating this section of code (no code currently
makes this specific call to the TLS-Exporter interface).
Leaving it out means that people like me who do formal analysis can't
reasonably analyse these designs.
I build models of protocols and prove they meet certain properties.
The only way to keep that analysis viable (we're already talking hundreds
of hours of work) is to eliminate classes of attack wholesale.
Yes, you can add unique and clever protections into every sub-protocol, but
it makes formally proving anything about the security exponentially harder
(and yes, I mean that in the literal / mathematical sense).

Regards,

Jonathan




On Tue, 9 Nov 2021 at 13:00, Dave Cridland <dave@cridland.net> wrote:

> On Tue, 26 Oct 2021 at 17:33, Jonathan Hoyland
> <jonathan.hoyland@gmail.com> wrote:
> > There isn't even a one-to-one relationship between GSS-API / SCRAM runs.
> This channel binding design doesn't protect against messages being swapped
> between two GSS-API runs on a single TLS connection.
>
> As I understand your case, you're suggesting that if the same channel
> binding is used on multiple authentication runs within the same TLS
> session, there may be cases where this may result in weakening of the
> bound authentication.
>
> It is not clear to me that this is the case. The channel binding data
> is known to both parties of the TLS session for the duration of the
> TLS session, so it doesn't seem likely that reusing it could actually
> cause problems here.
>
> Most SASL or GSS-API based protocols do not allow multiple
> authentications within a single connection, and therefore TLS session,
> but there are exceptions.
>
> I think the exceptions are:
> * IMAP with draft-newman-imap-unauth - a three year old I-D not
> published as an RFC.
> * LDAP (and X.500 DAP) both allow multiple consecutive binds.
>
> The suggestion you propose in the quote above is that a single message
> could be replayed within one TLS session.
>
> Replay resistance is generally baked into SASL and GSS-API mechanisms,
> rather than the channel binding itself. This includes, for example,
> SCRAM - replaying one of the messages would result in a failed
> authentication whether or not TLS channel binding were to be used.
> Some mechanisms are replayable - PLAIN being one - but these both
> assume that the TLS session remains confidential, and also they do not
> include channel binding information anyway. But there are SASL
> mechanisms that have been proposed in the past that do not provide
> replay resistance but do include a TLS channel binding. In these
> cases, then, your attack is possible and hinges on the reuse of a TLS
> channel binding.
>
> The result would be that - on some IMAP and LDAP servers - an
> authenticated user could reauthenticate as themselves.
>
> Now, all this does assume that an attacker cannot break a TLS session
> during the duration of a TLS session; that is, that we assume TLS
> sessions maintain confidentiality, integrity, and authenticity during
> the session at least. If this is not the case, then it's game over
> anyway, on a number of levels, and your proposed attack (which, I
> reiterate, is entirely unproven) makes no difference.
>
> What we do not assume however is that the certificate remains
> sacrosanct during this. Again, SASL mechanisms often (and again, this
> includes SCRAM) handle their own mutual authentication, so not only
> does the client authenticate to the server but the server has to prove
> its identity to the client. Assuming ephemeral keying, then, an
> attacker compromising the server's certificate doesn't actually make
> as much difference as you'd think here. At this point I'm reaching the
> edges of my knowledge, but I believe that although the identity as
> authenticated by the server's certificate could be spoofed if the
> certificate were compromised, ephemeral keying would still protect the
> session and SASL mutual authentication would still authenticate the
> server later.
>
> Overall, therefore, I have to ask you to find some kind of concrete
> attack. "Reusing an exported key within the same TLS session" does not
> appear to form the core of an attack as you suggest.
>
> Dave.
>

--00000000000089f56605d05d3841
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi All,</div><div><br></div><div>My specific solution=
 is to simply include a <i>different</i> fixed string for each variant of S=
CRAM and GSS-API, and ideally a nonce.</div><div>Given that applications wi=
ll have to update their stacks anyway to accommodate the new fixed string i=
n the current proposal I don&#39;t see that as a hugely difficult propositi=
on.</div><div><br></div><div>The goal of labels in material that is used to=
 derive keys (yes, material that is used to derive keys is necessarily secr=
et, yes material derived from keys is not necessarily secret), is to exclud=
e classes of attack.</div><div>It is good protocol design.</div><div><br></=
div><div>One of the things use of a TLS channel binding gives you is protec=
tion for the upper level protocol against TLS being MITMed.</div><div>Using=
 a fixed string for multiple protocols probably gives you that protection (=
assuming the channel binding is correctly agreed by both sides).</div><div>=
<br></div><div>Using a distinct channel binding, even if the upper level pr=
otocol is not secure, means that if both sides agree on the channel binding=
 they agree on the intent of the upper layer protocol, i.e. it gives you so=
me level assurance that the client and server agree on what was intended.</=
div><div>This eliminates classes of attack such as message confusion. <br><=
/div><div>Adding this protection costs virtually nothing, given that you ar=
e _already_ commiting to updating this section of code (no code currently m=
akes this specific call to the TLS-Exporter interface).</div><div>Leaving i=
t out means that people like me who do formal analysis can&#39;t reasonably=
 analyse these designs.</div><div>I build models of protocols and prove the=
y meet certain properties. <br></div><div>The only way to keep that analysi=
s viable (we&#39;re already talking hundreds of hours of work) is to elimin=
ate classes of attack wholesale.</div><div>Yes, you can add unique and clev=
er protections into every sub-protocol, but it makes formally proving anyth=
ing about the security exponentially harder (and yes, I mean that in the li=
teral / mathematical sense).</div><div><br></div><div>Regards,</div><div><b=
r></div><div>Jonathan</div><div><br></div><div><br></div><div><br></div></d=
iv><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On =
Tue, 9 Nov 2021 at 13:00, Dave Cridland &lt;<a href=3D"mailto:dave@cridland=
.net">dave@cridland.net</a>&gt; wrote:<br></div><blockquote class=3D"gmail_=
quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,=
204);padding-left:1ex">On Tue, 26 Oct 2021 at 17:33, Jonathan Hoyland<br>
&lt;<a href=3D"mailto:jonathan.hoyland@gmail.com" target=3D"_blank">jonatha=
n.hoyland@gmail.com</a>&gt; wrote:<br>
&gt; There isn&#39;t even a one-to-one relationship between GSS-API / SCRAM=
 runs. This channel binding design doesn&#39;t protect against messages bei=
ng swapped between two GSS-API runs on a single TLS connection.<br>
<br>
As I understand your case, you&#39;re suggesting that if the same channel<b=
r>
binding is used on multiple authentication runs within the same TLS<br>
session, there may be cases where this may result in weakening of the<br>
bound authentication.<br>
<br>
It is not clear to me that this is the case. The channel binding data<br>
is known to both parties of the TLS session for the duration of the<br>
TLS session, so it doesn&#39;t seem likely that reusing it could actually<b=
r>
cause problems here.<br>
<br>
Most SASL or GSS-API based protocols do not allow multiple<br>
authentications within a single connection, and therefore TLS session,<br>
but there are exceptions.<br>
<br>
I think the exceptions are:<br>
* IMAP with draft-newman-imap-unauth - a three year old I-D not<br>
published as an RFC.<br>
* LDAP (and X.500 DAP) both allow multiple consecutive binds.<br>
<br>
The suggestion you propose in the quote above is that a single message<br>
could be replayed within one TLS session.<br>
<br>
Replay resistance is generally baked into SASL and GSS-API mechanisms,<br>
rather than the channel binding itself. This includes, for example,<br>
SCRAM - replaying one of the messages would result in a failed<br>
authentication whether or not TLS channel binding were to be used.<br>
Some mechanisms are replayable - PLAIN being one - but these both<br>
assume that the TLS session remains confidential, and also they do not<br>
include channel binding information anyway. But there are SASL<br>
mechanisms that have been proposed in the past that do not provide<br>
replay resistance but do include a TLS channel binding. In these<br>
cases, then, your attack is possible and hinges on the reuse of a TLS<br>
channel binding.<br>
<br>
The result would be that - on some IMAP and LDAP servers - an<br>
authenticated user could reauthenticate as themselves.<br>
<br>
Now, all this does assume that an attacker cannot break a TLS session<br>
during the duration of a TLS session; that is, that we assume TLS<br>
sessions maintain confidentiality, integrity, and authenticity during<br>
the session at least. If this is not the case, then it&#39;s game over<br>
anyway, on a number of levels, and your proposed attack (which, I<br>
reiterate, is entirely unproven) makes no difference.<br>
<br>
What we do not assume however is that the certificate remains<br>
sacrosanct during this. Again, SASL mechanisms often (and again, this<br>
includes SCRAM) handle their own mutual authentication, so not only<br>
does the client authenticate to the server but the server has to prove<br>
its identity to the client. Assuming ephemeral keying, then, an<br>
attacker compromising the server&#39;s certificate doesn&#39;t actually mak=
e<br>
as much difference as you&#39;d think here. At this point I&#39;m reaching =
the<br>
edges of my knowledge, but I believe that although the identity as<br>
authenticated by the server&#39;s certificate could be spoofed if the<br>
certificate were compromised, ephemeral keying would still protect the<br>
session and SASL mutual authentication would still authenticate the<br>
server later.<br>
<br>
Overall, therefore, I have to ask you to find some kind of concrete<br>
attack. &quot;Reusing an exported key within the same TLS session&quot; doe=
s not<br>
appear to form the core of an attack as you suggest.<br>
<br>
Dave.<br>
</blockquote></div>

--00000000000089f56605d05d3841--


From nobody Tue Nov  9 08:13:44 2021
Return-Path: <dave@cridland.net>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E77403A0AAD for <kitten@ietfa.amsl.com>; Tue,  9 Nov 2021 08:13:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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=cridland.net
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 80Jf8oO-lpuM for <kitten@ietfa.amsl.com>; Tue,  9 Nov 2021 08:13:37 -0800 (PST)
Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 3B8713A0D86 for <kitten@ietf.org>; Tue,  9 Nov 2021 08:13:16 -0800 (PST)
Received: by mail-wm1-x336.google.com with SMTP id y84-20020a1c7d57000000b00330cb84834fso2335355wmc.2 for <kitten@ietf.org>; Tue, 09 Nov 2021 08:13:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cridland.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=S99AO/YNNmz7KLLOZOoNfN5RDZthHdMQLq4ro64eEA8=; b=cJFBjxftMXfq/w0zf/LpTeJUbgfK7/TtZuO70WsFjBqKmSe5WmSsfIfx8CSJhPwkWc r7KOy7+k7v4u2SJegkYer5aFJzE80XjPNCzcIf0T83nZ7KiXBdPcEeZknWMJr3+wL8VU YsF4cv2/TGcFqJ3CgXaf94Zn6zQrWHlsZYpGQ=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=S99AO/YNNmz7KLLOZOoNfN5RDZthHdMQLq4ro64eEA8=; b=bp6N1vPx7ynPDkvXSVFhiLiFDI3FnPXkJ2vIs/GOHSRPrVieowM2DGN/dg5Zl6hR2O rVpcUFg1hKuFeklmHUxFwn0Lj2XOPFVkaWlVbiTnNjJR9tbI9iuOUPMs0ZRjP2P7iaRP CuQP/Ge/SUKmtcEsRtRrUIH3jxMXbDilDxmpzO5cODk9JHEH7BoDPtATo5ORiC6lnseb Vh1b+WRS13A5MHVROWccDd0UJ8WGnKekw7eIUAExOYayF1rj91QeV34395aMUhlvvV5r J8nPDkZfmU/CgyXu6bxrHow09hjbPH79XvuHPlnEqx5EgCLovHYFze4/V4O0vd8LFWMB kygw==
X-Gm-Message-State: AOAM531Nafxm1kFEdTU54zD74MisFuq7dY28JZR72LX7o2kVLopjpzoL 5hSBRQaC/oe5VU/9uWofMV2IwBE5yk7IANwOgpyD/zoRe+c=
X-Google-Smtp-Source: ABdhPJzaOOlPpjHiZyQKl2ZhwgnUVXmAtfAqdCXsLWN4/zXakyZzwKylkoXrIvFREsRiLX9roEFexuUyT8+vzHRuW+Y=
X-Received: by 2002:a05:600c:b46:: with SMTP id k6mr8381832wmr.45.1636474392432;  Tue, 09 Nov 2021 08:13:12 -0800 (PST)
MIME-Version: 1.0
References: <163311243544.13917.11736165165419008870@ietfa.amsl.com> <20211001190002.GC98042@kduck.mit.edu> <CABcZeBPQG82xJdwMrmj4-=9aJymo1xts=D6VZedBW5X9k+34cQ@mail.gmail.com> <92ed26c1-bfde-43c1-93f4-2bbdbd4f6ec1@www.fastmail.com> <CAChr6Sw6Rs42DfS8KgD3qasPcWM_gGZhWN5C4b7W7JsPy0wDzw@mail.gmail.com> <8796f867-12b8-41f8-b124-82b3ab0e2d32@www.fastmail.com> <CAChr6SyKAnBcE9t68coGGXFt9WPLuDuWtVKoCXrK+QrwAVtPXw@mail.gmail.com> <f1bcd676-13ad-49b3-a8e8-8a272e0124e3@www.fastmail.com> <CABcZeBNo0gKjNZOKPYJYraioaw6G=z5ibTqh-o9GkWsDkfDmSQ@mail.gmail.com> <c4d6f2e5-0712-42a6-aef5-0cbada7e149e@www.fastmail.com> <CABcZeBM6y-6ZqaLGZ=8qr+uBnWOOgczhcx=ruy5S=n-YrHweKg@mail.gmail.com> <ca676a77-b2c9-4926-9842-d1d6587206ed@www.fastmail.com> <CACykbs11rHUweXmR1NSU0N2rRjcQ8Sf1S+DY2LO7T+e6cLt+5w@mail.gmail.com> <CAKHUCzz5ErY0xuBXVRuoNeZ3RS-7MwKrGH37kgZ=qwyqb-CgOg@mail.gmail.com> <CACykbs251Tn77jMN_YjcL8RxSax0NcFp8RNRT+oJp1Z=Z+qB2A@mail.gmail.com>
In-Reply-To: <CACykbs251Tn77jMN_YjcL8RxSax0NcFp8RNRT+oJp1Z=Z+qB2A@mail.gmail.com>
From: Dave Cridland <dave@cridland.net>
Date: Tue, 9 Nov 2021 16:13:01 +0000
Message-ID: <CAKHUCzw=_QRTdOovSBwV0VeN1M-7b9fSXonTyfF_oo4_VAGaBQ@mail.gmail.com>
To: Jonathan Hoyland <jonathan.hoyland@gmail.com>
Cc: Sam Whited <sam@samwhited.com>, KITTEN Working Group <kitten@ietf.org>, "<tls@ietf.org>" <tls@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/zLUCzCWAf4o6-jYceCQg7Bvf0hc>
Subject: Re: [kitten] [TLS] Fwd: Last Call: <draft-ietf-kitten-tls-channel-bindings-for-tls13-09.txt> (Channel Bindings for TLS 1.3) to Proposed Standard
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Nov 2021 16:13:43 -0000

On Tue, 9 Nov 2021 at 16:01, Jonathan Hoyland
<jonathan.hoyland@gmail.com> wrote:
>
> Hi All,
>
> My specific solution is to simply include a different fixed string for ea=
ch variant of SCRAM and GSS-API, and ideally a nonce.

I think you may mean SASL and GSS-API, but more probably I think you
need to decide what it is you mean.

SCRAM *already* includes a nonce in its hash calculations. Your
proposal is to include another, to avoid an unspecified attack.

> Given that applications will have to update their stacks anyway to accomm=
odate the new fixed string in the current proposal I don't see that as a hu=
gely difficult proposition.
>
> The goal of labels in material that is used to derive keys (yes, material=
 that is used to derive keys is necessarily secret, yes material derived fr=
om keys is not necessarily secret), is to exclude classes of attack.
> It is good protocol design.
>
> One of the things use of a TLS channel binding gives you is protection fo=
r the upper level protocol against TLS being MITMed.
> Using a fixed string for multiple protocols probably gives you that prote=
ction (assuming the channel binding is correctly agreed by both sides).
>
> Using a distinct channel binding, even if the upper level protocol is not=
 secure, means that if both sides agree on the channel binding they agree o=
n the intent of the upper layer protocol, i.e. it gives you some level assu=
rance that the client and server agree on what was intended.
> This eliminates classes of attack such as message confusion.
> Adding this protection costs virtually nothing, given that you are _alrea=
dy_ commiting to updating this section of code (no code currently makes thi=
s specific call to the TLS-Exporter interface).
> Leaving it out means that people like me who do formal analysis can't rea=
sonably analyse these designs.
> I build models of protocols and prove they meet certain properties.
> The only way to keep that analysis viable (we're already talking hundreds=
 of hours of work) is to eliminate classes of attack wholesale.
> Yes, you can add unique and clever protections into every sub-protocol, b=
ut it makes formally proving anything about the security exponentially hard=
er (and yes, I mean that in the literal / mathematical sense).

SASL (and GSS-API) are pluggable authentication systems which means
that if you want a formal proof (or even just a finger-in-the-air
back-of-the-envelope one) you have to do it against a specific SASL
(or GSS-API) mechanism.

Without knowing the mechanism, it's impossible to perform a formal
proof, because you don't know how the channel binding is exchanged and
proven, and so you would be missing an absolutely crucial part of your
model.

Dave.


From nobody Tue Nov  9 10:03:56 2021
Return-Path: <jonathan.hoyland@gmail.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 06D4A3A0ED6; Tue,  9 Nov 2021 10:03:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level: 
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, 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 (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 31rYzdzRnVX0; Tue,  9 Nov 2021 10:03:44 -0800 (PST)
Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (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 6425D3A0ED2; Tue,  9 Nov 2021 10:03:44 -0800 (PST)
Received: by mail-qk1-x72a.google.com with SMTP id de30so5476693qkb.0; Tue, 09 Nov 2021 10:03:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H5vm0sMtHg3J3GIOTHn20jmu6w7WH8EXAsCcU4OLvQ4=; b=I1UaIxnffyXvJkLoeR2qf7vtavyAFXxGiyPG0Jt1sc3V7PooxpeBg/jgl1XEmvLB27 CVFbekykBxts1q5N2SQKIWiaCgb/J/UEugPHBtAlQAq1mKPhziWKAv02MYE3zvoKSOt2 9ZGtOIBR97gX8EQQd5FEZAUPHr3jE4ifGll1Teo4vCSIanC6TRPDjLV1zbXKWhLGw1tD t4fMI671z155xWq9IvFdf/ZYOS0jRTtizpabiNhTM+/7+zSzY0dSjhueAH/IZ8VMVj2T yfzuU7Os/mDKPbeXew9zs/PUeOEjApcuhr0GRHPN/XbV3XMB5NqfMI2nPGXLGhy0LCtd rB7w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H5vm0sMtHg3J3GIOTHn20jmu6w7WH8EXAsCcU4OLvQ4=; b=STr4nqSjOCTnZeAQc97I+fTGlpQpH2fPivkEgXvq/7TBCHR0ObUgSW0h3eGdjYnCOT wpmqmRLn9n2hfiKBifJufmgFD0bi3UZ1xRumeO5YvKqbJE7+M6fDl4AauGkK3nPQ9JHK VtRRWwIDvv7sGUBa3ByBzAjjxCwli+SOrCCbrUEJsqJkXmrCB04Yk4kIAGd7NFXousmQ CRCb5kIQ5lVl+2hctcjSwx8flb6BYghujzlLuSUtfbIo/hiqNnJgxA8pEksqI/LNYTYm kR7CKNFxkDT94XcZ1gzDCyUPhMShi3znFbnB17X3dIlOXrbzzaPUglv56zq4nej74cuL 1bpw==
X-Gm-Message-State: AOAM531/J40Z80LPFphu8E+z4lg0IDQjETHouDNz4rVM2novC/9OtQy0 xNibSkJqI0iPfHUs9o1L61obhW2hq8IA+lOWz7s=
X-Google-Smtp-Source: ABdhPJxzNawU7e/p2skhieI4Kbf2L7BLRrpQhq50BCQHNwj/BVh4BhpQsvMoXYPOmf0wIcpBY6UjZFoyn94ezqYszfI=
X-Received: by 2002:a37:b2c2:: with SMTP id b185mr7607775qkf.272.1636481021481;  Tue, 09 Nov 2021 10:03:41 -0800 (PST)
MIME-Version: 1.0
References: <163311243544.13917.11736165165419008870@ietfa.amsl.com> <20211001190002.GC98042@kduck.mit.edu> <CABcZeBPQG82xJdwMrmj4-=9aJymo1xts=D6VZedBW5X9k+34cQ@mail.gmail.com> <92ed26c1-bfde-43c1-93f4-2bbdbd4f6ec1@www.fastmail.com> <CAChr6Sw6Rs42DfS8KgD3qasPcWM_gGZhWN5C4b7W7JsPy0wDzw@mail.gmail.com> <8796f867-12b8-41f8-b124-82b3ab0e2d32@www.fastmail.com> <CAChr6SyKAnBcE9t68coGGXFt9WPLuDuWtVKoCXrK+QrwAVtPXw@mail.gmail.com> <f1bcd676-13ad-49b3-a8e8-8a272e0124e3@www.fastmail.com> <CABcZeBNo0gKjNZOKPYJYraioaw6G=z5ibTqh-o9GkWsDkfDmSQ@mail.gmail.com> <c4d6f2e5-0712-42a6-aef5-0cbada7e149e@www.fastmail.com> <CABcZeBM6y-6ZqaLGZ=8qr+uBnWOOgczhcx=ruy5S=n-YrHweKg@mail.gmail.com> <ca676a77-b2c9-4926-9842-d1d6587206ed@www.fastmail.com> <CACykbs11rHUweXmR1NSU0N2rRjcQ8Sf1S+DY2LO7T+e6cLt+5w@mail.gmail.com> <CAKHUCzz5ErY0xuBXVRuoNeZ3RS-7MwKrGH37kgZ=qwyqb-CgOg@mail.gmail.com> <CACykbs251Tn77jMN_YjcL8RxSax0NcFp8RNRT+oJp1Z=Z+qB2A@mail.gmail.com> <CAKHUCzw=_QRTdOovSBwV0VeN1M-7b9fSXonTyfF_oo4_VAGaBQ@mail.gmail.com>
In-Reply-To: <CAKHUCzw=_QRTdOovSBwV0VeN1M-7b9fSXonTyfF_oo4_VAGaBQ@mail.gmail.com>
From: Jonathan Hoyland <jonathan.hoyland@gmail.com>
Date: Tue, 9 Nov 2021 18:03:30 +0000
Message-ID: <CACykbs276AwcN=FSfXhZ3X64S8GP268AYVz4c4ksdOSuykm0Ow@mail.gmail.com>
To: Dave Cridland <dave@cridland.net>
Cc: Sam Whited <sam@samwhited.com>, KITTEN Working Group <kitten@ietf.org>, "<tls@ietf.org>" <tls@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000f797b205d05eed1d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/W980M9t-HKEJ5Lk6C0g0ZZwyAE0>
Subject: Re: [kitten] [TLS] Fwd: Last Call: <draft-ietf-kitten-tls-channel-bindings-for-tls13-09.txt> (Channel Bindings for TLS 1.3) to Proposed Standard
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Nov 2021 18:03:49 -0000

--000000000000f797b205d05eed1d
Content-Type: text/plain; charset="UTF-8"

Hi Dave,

On Tue, 9 Nov 2021 at 16:13, Dave Cridland <dave@cridland.net> wrote:

> On Tue, 9 Nov 2021 at 16:01, Jonathan Hoyland
> <jonathan.hoyland@gmail.com> wrote:
> >
> > Hi All,
> >
> > My specific solution is to simply include a different fixed string for
> each variant of SCRAM and GSS-API, and ideally a nonce.
>
> I think you may mean SASL and GSS-API, but more probably I think you
> need to decide what it is you mean.
>
>
I meant what I wrote.

SCRAM *already* includes a nonce in its hash calculations. Your
> proposal is to include another, to avoid an unspecified attack.
>
>
Firstly, the proposal under question is *NOT* just for SCRAM, it is for an
arbitrary number of unspecified protocols. And the nonce is to prevent
messages being moved between runs of an upper level protocol over a single
TLS channel.


> > Given that applications will have to update their stacks anyway to
> accommodate the new fixed string in the current proposal I don't see that
> as a hugely difficult proposition.
> >
> > The goal of labels in material that is used to derive keys (yes,
> material that is used to derive keys is necessarily secret, yes material
> derived from keys is not necessarily secret), is to exclude classes of
> attack.
> > It is good protocol design.
> >
> > One of the things use of a TLS channel binding gives you is protection
> for the upper level protocol against TLS being MITMed.
> > Using a fixed string for multiple protocols probably gives you that
> protection (assuming the channel binding is correctly agreed by both sides).
> >
> > Using a distinct channel binding, even if the upper level protocol is
> not secure, means that if both sides agree on the channel binding they
> agree on the intent of the upper layer protocol, i.e. it gives you some
> level assurance that the client and server agree on what was intended.
> > This eliminates classes of attack such as message confusion.
> > Adding this protection costs virtually nothing, given that you are
> _already_ commiting to updating this section of code (no code currently
> makes this specific call to the TLS-Exporter interface).
> > Leaving it out means that people like me who do formal analysis can't
> reasonably analyse these designs.
> > I build models of protocols and prove they meet certain properties.
> > The only way to keep that analysis viable (we're already talking
> hundreds of hours of work) is to eliminate classes of attack wholesale.
> > Yes, you can add unique and clever protections into every sub-protocol,
> but it makes formally proving anything about the security exponentially
> harder (and yes, I mean that in the literal / mathematical sense).
>
> SASL (and GSS-API) are pluggable authentication systems which means
> that if you want a formal proof (or even just a finger-in-the-air
> back-of-the-envelope one) you have to do it against a specific SASL
> (or GSS-API) mechanism.
>

That's correct. If you want to do a proof you have to do it against a
specific mechanism.
The problem is that the analysis has to include all sources of protocol
messages from the same key space (yes, again. I know that channel bindings
are not keys. Yes I know that channel bindings are not required to be
secret.)
With the draft as proposed that is an arbitrary number of protocols,
including any that may be written in future.
Even if you managed to do some huge analysis of anything that falls into
this space, it would immediately be invalidated the moment any new version
or design came along.


> Without knowing the mechanism, it's impossible to perform a formal
> proof, because you don't know how the channel binding is exchanged and
> proven, and so you would be missing an absolutely crucial part of your
> model.
>
>
Firstly, even without knowing the mechanism there are lots of things we can
prove or that we assume.
For example, I assume that an attacker cannot decrypt messages for which it
does not have the key.
Most formal analysis is based on a fairly small set of assumptions and
standard proofs.
One key assumption is that different protocols use unrelated keys. (Yes,
again. I know that channel bindings are not keys. Yes I know that channel
bindings are not required to be secret.)
If you include channel bindings in your key derivation then you cannot
assume that the keys are unrelated.

Now it's totally possible to prove your protocol is universally composable
irrespective of channel bindings, but if you're proving that you might as
well just drop the TLS layer.

Second: The issue isn't about picking a specific mechanism, the issue is
that I can't ignore other mechanisms.

Regards,

Jonathan



> Dave.
>

--000000000000f797b205d05eed1d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi Dave, <br></div><br><div class=3D"gmail_quote"><di=
v dir=3D"ltr" class=3D"gmail_attr">On Tue, 9 Nov 2021 at 16:13, Dave Cridla=
nd &lt;<a href=3D"mailto:dave@cridland.net">dave@cridland.net</a>&gt; wrote=
:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.=
8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 9 Nov =
2021 at 16:01, Jonathan Hoyland<br>
&lt;<a href=3D"mailto:jonathan.hoyland@gmail.com" target=3D"_blank">jonatha=
n.hoyland@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi All,<br>
&gt;<br>
&gt; My specific solution is to simply include a different fixed string for=
 each variant of SCRAM and GSS-API, and ideally a nonce.<br>
<br>
I think you may mean SASL and GSS-API, but more probably I think you<br>
need to decide what it is you mean.<br>
<br></blockquote><div><br></div><div>I meant what I wrote. <br></div><div> =
<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
SCRAM *already* includes a nonce in its hash calculations. Your<br>
proposal is to include another, to avoid an unspecified attack.<br>
<br></blockquote><div><br></div><div>Firstly, the proposal under question i=
s *NOT* just for SCRAM, it is for an arbitrary number of unspecified protoc=
ols. And the nonce is to prevent messages being moved between runs of an up=
per level protocol over a single TLS channel.</div><div>=C2=A0 <br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le=
ft:1px solid rgb(204,204,204);padding-left:1ex">
&gt; Given that applications will have to update their stacks anyway to acc=
ommodate the new fixed string in the current proposal I don&#39;t see that =
as a hugely difficult proposition.<br>
&gt;<br>
&gt; The goal of labels in material that is used to derive keys (yes, mater=
ial that is used to derive keys is necessarily secret, yes material derived=
 from keys is not necessarily secret), is to exclude classes of attack.<br>
&gt; It is good protocol design.<br>
&gt;<br>
&gt; One of the things use of a TLS channel binding gives you is protection=
 for the upper level protocol against TLS being MITMed.<br>
&gt; Using a fixed string for multiple protocols probably gives you that pr=
otection (assuming the channel binding is correctly agreed by both sides).<=
br>
&gt;<br>
&gt; Using a distinct channel binding, even if the upper level protocol is =
not secure, means that if both sides agree on the channel binding they agre=
e on the intent of the upper layer protocol, i.e. it gives you some level a=
ssurance that the client and server agree on what was intended.<br>
&gt; This eliminates classes of attack such as message confusion.<br>
&gt; Adding this protection costs virtually nothing, given that you are _al=
ready_ commiting to updating this section of code (no code currently makes =
this specific call to the TLS-Exporter interface).<br>
&gt; Leaving it out means that people like me who do formal analysis can&#3=
9;t reasonably analyse these designs.<br>
&gt; I build models of protocols and prove they meet certain properties.<br=
>
&gt; The only way to keep that analysis viable (we&#39;re already talking h=
undreds of hours of work) is to eliminate classes of attack wholesale.<br>
&gt; Yes, you can add unique and clever protections into every sub-protocol=
, but it makes formally proving anything about the security exponentially h=
arder (and yes, I mean that in the literal / mathematical sense).<br>
<br>
SASL (and GSS-API) are pluggable authentication systems which means<br>
that if you want a formal proof (or even just a finger-in-the-air<br>
back-of-the-envelope one) you have to do it against a specific SASL<br>
(or GSS-API) mechanism.<br></blockquote><div><br></div><div>That&#39;s corr=
ect. If you want to do a proof you have to do it against a specific mechani=
sm. <br></div><div>The problem is that the analysis has to include all sour=
ces of protocol messages from the same key space (yes, again. I know that c=
hannel bindings are not keys. Yes I know that channel bindings are not requ=
ired to be secret.)<br></div><div>With the draft as proposed that is an arb=
itrary number of protocols, including any that may be written in future. <b=
r></div><div>Even if you managed to do some huge analysis of anything that =
falls into this space, it would immediately be invalidated the moment any n=
ew version or design came along. <br></div><div><br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">
<br>
Without knowing the mechanism, it&#39;s impossible to perform a formal<br>
proof, because you don&#39;t know how the channel binding is exchanged and<=
br>
proven, and so you would be missing an absolutely crucial part of your<br>
model.<br>
<br></blockquote><div><br></div><div>Firstly, even without knowing the mech=
anism there are lots of things we can prove or that we assume. <br></div><d=
iv>For example, I assume that an attacker cannot decrypt messages for which=
 it does not have the key.</div><div>Most formal analysis is based on a fai=
rly small set of assumptions and standard proofs.</div><div>One key assumpt=
ion is that different protocols use unrelated keys. (Yes, again. I know tha=
t channel bindings are not keys. Yes I know that channel bindings are not r=
equired to be secret.)</div><div>If you include channel bindings in your ke=
y derivation then you cannot assume that the keys are unrelated.</div><div>=
<br></div><div>Now it&#39;s totally possible to prove your protocol is univ=
ersally composable irrespective of channel bindings, but if you&#39;re prov=
ing that you might as well just drop the TLS layer.</div><div><br></div><di=
v>Second: The issue isn&#39;t about picking a specific mechanism, the issue=
 is that I can&#39;t ignore other mechanisms.</div><div><br></div><div>Rega=
rds,</div><div><br></div><div>Jonathan<br></div><div><br></div><div>=C2=A0 =
<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Dave.<br>
</blockquote></div></div>

--000000000000f797b205d05eed1d--


From nobody Tue Nov  9 10:17:06 2021
Return-Path: <me@ruff.mobi>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5648E3A0F44; Tue,  9 Nov 2021 10:17:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 6Wkc7QTADtMD; Tue,  9 Nov 2021 10:17:01 -0800 (PST)
Received: from vex.ruff.mobi (vex.ruff.mobi [37.120.177.103]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 17E673A0F41; Tue,  9 Nov 2021 10:17:00 -0800 (PST)
Received: from pi.ruff.mobi (ip-78-45-99-112.net.upcbroadband.cz [78.45.99.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "ruff.mobi", Issuer "R3" (not verified)) by vex.ruff.mobi (Postfix) with ESMTPS id 16B4914FD6F9; Tue,  9 Nov 2021 19:16:57 +0100 (CET)
Received: from dei.ruff.mobi (unknown [IPv6:2001:470:741b::6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by pi.ruff.mobi (Postfix) with ESMTPSA id D5C0513A38; Tue,  9 Nov 2021 19:16:54 +0100 (CET)
Message-ID: <6a1c4fc0ad976438d009c254932afc8d56e0d7ac.camel@ruff.mobi>
From: "Ruslan N. Marchenko" <me@ruff.mobi>
To: KITTEN Working Group <kitten@ietf.org>, "<tls@ietf.org>" <tls@ietf.org>
Date: Tue, 09 Nov 2021 19:16:41 +0100
In-Reply-To: <CACykbs251Tn77jMN_YjcL8RxSax0NcFp8RNRT+oJp1Z=Z+qB2A@mail.gmail.com>
References: <163311243544.13917.11736165165419008870@ietfa.amsl.com> <20211001190002.GC98042@kduck.mit.edu> <CABcZeBPQG82xJdwMrmj4-=9aJymo1xts=D6VZedBW5X9k+34cQ@mail.gmail.com> <92ed26c1-bfde-43c1-93f4-2bbdbd4f6ec1@www.fastmail.com> <CAChr6Sw6Rs42DfS8KgD3qasPcWM_gGZhWN5C4b7W7JsPy0wDzw@mail.gmail.com> <8796f867-12b8-41f8-b124-82b3ab0e2d32@www.fastmail.com> <CAChr6SyKAnBcE9t68coGGXFt9WPLuDuWtVKoCXrK+QrwAVtPXw@mail.gmail.com> <f1bcd676-13ad-49b3-a8e8-8a272e0124e3@www.fastmail.com> <CABcZeBNo0gKjNZOKPYJYraioaw6G=z5ibTqh-o9GkWsDkfDmSQ@mail.gmail.com> <c4d6f2e5-0712-42a6-aef5-0cbada7e149e@www.fastmail.com> <CABcZeBM6y-6ZqaLGZ=8qr+uBnWOOgczhcx=ruy5S=n-YrHweKg@mail.gmail.com> <ca676a77-b2c9-4926-9842-d1d6587206ed@www.fastmail.com> <CACykbs11rHUweXmR1NSU0N2rRjcQ8Sf1S+DY2LO7T+e6cLt+5w@mail.gmail.com> <CAKHUCzz5ErY0xuBXVRuoNeZ3RS-7MwKrGH37kgZ=qwyqb-CgOg@mail.gmail.com> <CACykbs251Tn77jMN_YjcL8RxSax0NcFp8RNRT+oJp1Z=Z+qB2A@mail.gmail.com>
Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-HYOz3Kk2Nc3CTBdBn6+0"
User-Agent: Evolution 3.40.4 
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/xm9_0eSsi7BGyxjYOFX2qRs48XQ>
Subject: Re: [kitten] [TLS] Fwd: Last Call: <draft-ietf-kitten-tls-channel-bindings-for-tls13-09.txt> (Channel Bindings for TLS 1.3) to Proposed Standard
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Nov 2021 18:17:05 -0000

--=-HYOz3Kk2Nc3CTBdBn6+0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Jonathan,

Am Dienstag, dem 09.11.2021 um 16:01 +0000 schrieb Jonathan Hoyland:
> Hi All,
>=20
> Using a distinct channel binding, even if the upper level protocol is
> not secure, means that if both sides agree on the channel binding
> they agree on the intent of the upper layer protocol, i.e. it gives
> you some level assurance that the client and server agree on what was
> intended.
The binding is just that, a binding. Insecure protocols will remain
insecure but that still does not compromise secure protocols because
they can still bind securely app session to tls session. And again,
revealing binding data is not a leak/security breach.

> This eliminates classes of attack such as message confusion.=20
> Adding this protection costs virtually nothing, given that you are
> _already_ commiting to updating this section of code (no code
> currently makes this specific call to the TLS-Exporter interface).
Actually it is already implemented in GnuTLS and GIO-TLS. Introducing
context specific label will require changing API to accept input
context (do something) while now it is simle property retrieval (get
something). Moreover it will stay aside from existing binding interface
which is still "get property".

> Leaving it out means that people like me who do formal analysis can't
> reasonably analyse these designs.
> I build models of protocols and prove they meet certain properties.=20
> The only way to keep that analysis viable (we're already talking
> hundreds of hours of work) is to eliminate classes of attack
> wholesale.
There's still no demonstration or even hint of the attack as of now,
therefore I still do not see a justification to change API except "it
is a right thing to do". But I repeat again - it can be done, if there
is a reason for that.

Regards,
RUslan

--=-HYOz3Kk2Nc3CTBdBn6+0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iLUEABMKAB0WIQQmaBdx0pI7WegwH++rtatsHSOZ+wUCYYq7CQAKCRCrtatsHSOZ
+wrDAgCLaVtiQi+5D+z3w8NugirymH+yb2XCLnagHVXK2dm2jsFhB/CgAS8ggJ5r
QJoLAqJH/KwGJTTveSY0RqhXrdsaAgCU2gFWSnbsuJKQZQrbJIEcjgHq4OXir0Gw
jovO/chxSkf35MWKgDDsqxRrxk0Wm2/7ehZwNXeeTYSi9ZwHE8CZ
=7RFC
-----END PGP SIGNATURE-----

--=-HYOz3Kk2Nc3CTBdBn6+0--


From nobody Tue Nov  9 14:39:58 2021
Return-Path: <hartmans-ietf@mit.edu>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 96D033A120F for <kitten@ietfa.amsl.com>; Tue,  9 Nov 2021 14:39:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level: 
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
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 SshdSNZNz6Xz for <kitten@ietfa.amsl.com>; Tue,  9 Nov 2021 14:39:44 -0800 (PST)
Received: from mail.suchdamage.org (mail.suchdamage.org [52.9.186.167]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 74A703A124C for <kitten@ietf.org>; Tue,  9 Nov 2021 14:39:43 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail.suchdamage.org (Postfix) with ESMTP id 5E2E130C20; Tue,  9 Nov 2021 17:39:42 -0500 (EST)
Received: from mail.suchdamage.org ([127.0.0.1]) by localhost (mail.suchdamage.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1sGfmkTs0IeB; Tue,  9 Nov 2021 17:39:42 -0500 (EST)
Received: from carter-zimmerman.suchdamage.org (71-218-140-158.hlrn.qwest.net [71.218.140.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "laptop", Issuer "laptop" (not verified)) (Authenticated sender: hartmans-laptop) by mail.suchdamage.org (Postfix) with ESMTPSA; Tue,  9 Nov 2021 17:39:42 -0500 (EST)
Received: by carter-zimmerman.suchdamage.org (Postfix, from userid 8042) id 85938196E8C2; Tue,  9 Nov 2021 15:39:41 -0700 (MST)
From: Sam Hartman <hartmans-ietf@mit.edu>
To: kitten@ietf.org
Cc: Pavel =?utf-8?Q?B=C5=99ezina?= <pbrezina@redhat.com>, ghudson@mit.edu
Date: Tue, 09 Nov 2021 15:39:35 -0700
Message-ID: <tslr1bphs2g.fsf@suchdamage.org>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/G1kdnLQej7YzCNCTDCC4MCLyS6A>
Subject: [kitten] Kerberos Preauth Registration for OAuth2 device flow
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Nov 2021 22:39:46 -0000

--=-=-=
Content-Type: text/plain



It's been a while.
I recently received a Kerberos preauth expert review request from IANA.
The goal of the padata registration is to provide a way to perform
Kerberos authentication based on the OAuth2 device authorization flow.
Based on the criteria in section 7.1 of RFC 6113, I have determined that
expert review is appropriate for this assignment.
Based on section 3 of RFC 5226, I am seeking input from the relevant
community.
As a reminder, for this type of registration, we're supposed to review
for security and interoperability concerns.

I don't think there is a public spec; I was given a pointer to a Google
doc.
For this registry that is not required, although as part of an
interoperability review, the availability of a spec is something we
could legitimately consider.

I think it is desirable to have such a mechanism, so I'd like to
expediciously get to a place where we can provide any feedback and once
that is addressed, approve the registration.

Basic approach.
The KDC provides the client a URI  and a code (or a URI specific to that
authentication interaction.)
The client spawns a web browser, does stuff, and eventually somehow the
client lets its Kerberos app know that authentication has happened, and
then the KDC goes off to see if it believes that.

AS far as I can tell, the reply key is never used (it is replaced) so a
long-term password is not needed.

There was no security considerations section in the document I got.
Again, that's permitted by the registry, although it is also permitted
for us to raise concerns about that in a specific instance.
That does mean I'm stuck figuring out what the security considerations
are.

I think what I'd like to do is to star by making sure the authors are
aware of the security considerations, and see if there are mitigations
that can be applied.
Then see how we feel about the overall security of the system.

Concerns I have:

1) It appears to have the same   issues with anonymous pkinit that OTP
has.
You probably do not want to use this FAST factor with a armor ticket you
got from anonymous pkinit.
If you do, you need to verify the KDC's identity elsewhere.

2) This effectively gives you an arbitrary URI that you have no way to
validate and encourages the user to go authenticate to that URI.

  * Appears to be a phishing vector

  * Appears to be a malicious code vector.  I'm particularly concerned
    about a case where this is part of machine login.  You'd be running
    potentially attacker supplied  code in a pre-login context.  I hope
    your sandboxing is good.

  * If this is a highly trusted KDC, everything might be great.  However
    there are a lot of cases in Kerberos (even with FAST) where you can
    get an untrusted KDC, and the mechanisms for KDC selection are less
    well protected than the rest of the protocol.  (That's particularly
    true given some implementation issues).  Having an armor ticket does
    not mean it is wise to trust a particular KDC.

3) Again, I think the security implications are different if you're
already logged into the OAuth side  vs if you're going to do an initial
authentication flow with your OAuth provider.

On the interoperability side, the protocol between the KDC  and the
OAuth provider does not appear to be described at all.
You get vendor lockin between a KDC and OAuth provider as far as I can
tell.

I'd appreciate feedback on the following issues:

A) Are there any additional security or interoperability concerns I
should be thinking about?

B) Are there mitigations we should suggest?

C) Where should the bar for approval be?


I'd appreciate comments in the next two weeks.

--Sam

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSj2jRwbAdKzGY/4uAsbEw8qDeGdAUCYYr4pwAKCRAsbEw8qDeG
dMIAAQCWX9t1nGVXM7GkjacWvqtzz0g4eporUMdb7iDaSaU9oQEAnWN1rjC3OcjS
l12xd65rLZ5o1UQuuFyssd2ZKGXd7QM=
=8aVj
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Tue Nov  9 17:26:43 2021
Return-Path: <sam@samwhited.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 86A6E3A0E5D; Tue,  9 Nov 2021 17:26:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.101
X-Spam-Level: 
X-Spam-Status: No, score=-2.101 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-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=samwhited.com header.b=KzN99cDu; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=XAn80ReW
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 q3KfmKcw0YKA; Tue,  9 Nov 2021 17:26:36 -0800 (PST)
Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4AD0A3A0E60; Tue,  9 Nov 2021 17:26:36 -0800 (PST)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1BF515C0126; Tue,  9 Nov 2021 20:26:35 -0500 (EST)
Received: from imap42 ([10.202.2.92]) by compute6.internal (MEProxy); Tue, 09 Nov 2021 20:26:35 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samwhited.com; h=mime-version:message-id:in-reply-to:references:date:from:to :cc:subject:content-type:content-transfer-encoding; s=fm1; bh=gT jYR8/S2StTO6BX0IQBoz3vVgcrrKBhaXBh/ShJCds=; b=KzN99cDuAae+nUKtQd GSHNkVQIhEWkUtRYyiOAhJpx4iCM391fGQUym7Yc9f/pnk+rXKe8kYR4k20xKGjN SFMft/pC6KgErBf0U6Qe/wozep0qQF4NlUR/yTCL0RuDZql6p3kCgMsxl2XZj8Yl mJahcaiAh/6M6SQGngQocpmvm3s0W9A7XBCjeHA0RY3TL8BvpmOc4YG/7W60BQI4 Z7iEZZ6nG50uIbwJCKkNy9zieDZRh05IKDMUp0rCmtkcf95IZfziKytOkxIiuB1T Vz6WgP5PjQFvo/MRl0wSyWdIAOyxHo/e8QLkUWgWczzE+ag2LGFbj9UnTdtFqj9r acGA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=gTjYR8/S2StTO6BX0IQBoz3vVgcrrKBhaXBh/ShJC ds=; b=XAn80ReWkmbk/2iU9efqnIarZ/bJT7i5p3agn7xDPzVnHmZck/sGgS08J s9U6s1MRrrNxHWCXkKwZDbTteslFRGh/jEF6EeN09DZ1vWE9uNQTzSzSpj9DV3PB VYEQ83Dynk/Q9jc9Gw32NuZmotNOfY1RucztmtMH/22hGUV6uje5mtqJLeb8xML+ pUqG8uhAIi6s9RnwGjCeM0Ux07VLQcPo/5yZm75pVPYaj26gTVNe1BEgKFJTC2OI UUUgoi4UYVCoUpj1hzWmh5a7B0b0ZEyrMJYRWlMjnTbZZDID5AUggw7oNCCQ855b TqHZIsLv+gmPV00U6/iYYaj3s59nw==
X-ME-Sender: <xms:yh-LYafSbNCR7YfxZ-7jlk-aXnnEdKO9N_pmiWclIYa1YE_t1W0rGg> <xme:yh-LYUPXgc-87t_O4U7kqjJpPrga1tZPAiv3cxmrkrdLOQRoSQXZUCxHhFXnKxbLH K08l9JPyMP1fzKCJQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudehgdeftdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfurghm ucghhhhithgvugdfuceoshgrmhesshgrmhifhhhithgvugdrtghomheqnecuggftrfgrth htvghrnhepvdffuedvudfhfedvieehueekfffhkeejvefggfegtdelhffhhfeiveekudev hfejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsh grmhesshgrmhifhhhithgvugdrtghomh
X-ME-Proxy: <xmx:yh-LYbgx04SOw4PdxZJxiNa2sY33HNiF7Q7aDtf-85tRJrtfKqh3VQ> <xmx:yh-LYX_nGvebc3G1sXx9ccVwGSmSt15QCIqAG9WM75PDMFO63ZiYrA> <xmx:yh-LYWtvyCmNXOTKSGPoz0E7UFgUBV1a-apjSJPNEydvlaehVEHNmw> <xmx:yx-LYbXD8QG5294CQTBnvW-zFFGTb3PoZlgfYMN-Npg-JPbZ852N1g>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 67C3E2180087; Tue,  9 Nov 2021 20:26:34 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.5.0-alpha0-1371-g2296cc3491-fm-20211109.003-g2296cc34
Mime-Version: 1.0
Message-Id: <e34601de-0d2f-4500-8d7f-deec90250fc7@www.fastmail.com>
In-Reply-To: <CACykbs276AwcN=FSfXhZ3X64S8GP268AYVz4c4ksdOSuykm0Ow@mail.gmail.com>
References: <163311243544.13917.11736165165419008870@ietfa.amsl.com> <20211001190002.GC98042@kduck.mit.edu> <CABcZeBPQG82xJdwMrmj4-=9aJymo1xts=D6VZedBW5X9k+34cQ@mail.gmail.com> <92ed26c1-bfde-43c1-93f4-2bbdbd4f6ec1@www.fastmail.com> <CAChr6Sw6Rs42DfS8KgD3qasPcWM_gGZhWN5C4b7W7JsPy0wDzw@mail.gmail.com> <8796f867-12b8-41f8-b124-82b3ab0e2d32@www.fastmail.com> <CAChr6SyKAnBcE9t68coGGXFt9WPLuDuWtVKoCXrK+QrwAVtPXw@mail.gmail.com> <f1bcd676-13ad-49b3-a8e8-8a272e0124e3@www.fastmail.com> <CABcZeBNo0gKjNZOKPYJYraioaw6G=z5ibTqh-o9GkWsDkfDmSQ@mail.gmail.com> <c4d6f2e5-0712-42a6-aef5-0cbada7e149e@www.fastmail.com> <CABcZeBM6y-6ZqaLGZ=8qr+uBnWOOgczhcx=ruy5S=n-YrHweKg@mail.gmail.com> <ca676a77-b2c9-4926-9842-d1d6587206ed@www.fastmail.com> <CACykbs11rHUweXmR1NSU0N2rRjcQ8Sf1S+DY2LO7T+e6cLt+5w@mail.gmail.com> <CAKHUCzz5ErY0xuBXVRuoNeZ3RS-7MwKrGH37kgZ=qwyqb-CgOg@mail.gmail.com> <CACykbs251Tn77jMN_YjcL8RxSax0NcFp8RNRT+oJp1Z=Z+qB2A@mail.gmail.com> <CAKHUCzw=_QRTdOovSBwV0VeN1M-7b9fSXonTyfF_oo4_VAGaBQ@mail.gmail.com> <CACykbs276AwcN=FSfXhZ3X64S8GP268AYVz4c4ksdOSuykm0Ow@mail.gmail.com>
Date: Tue, 09 Nov 2021 20:26:08 -0500
From: "Sam Whited" <sam@samwhited.com>
To: "Jonathan Hoyland" <jonathan.hoyland@gmail.com>, "Dave Cridland" <dave@cridland.net>
Cc: "KITTEN Working Group" <kitten@ietf.org>, "<tls@ietf.org>" <tls@ietf.org>
Content-Type: text/plain;charset=utf-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/Jm1OnwsP0eZrmGalf6JcoViv3nY>
Subject: Re: [kitten] [TLS] Fwd: Last Call: <draft-ietf-kitten-tls-channel-bindings-for-tls13-09.txt> (Channel Bindings for TLS 1.3) to Proposed Standard
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Nov 2021 01:26:42 -0000

I'm still struggling to figure out what the exact problem is you're
describing or if you have an actual class of attack in mind that might
be possible due to this, but the following in your previous email jumped
out at me:

On Tue, Nov 9, 2021, at 13:03, Jonathan Hoyland wrote:
> If you include channel bindings in your key derivation then you cannot
> assume that the keys are unrelated.

Is this the crux of the issue you're pointing out? If so, I'd say surely
you need to do a formal analysis of a specific key derivation mechanism
instead of the data being mixed into it, and you can't (and shouldn't)
worry about all future mechanisms.

If a key derivation mechanism is so weak that mixing in the same
arbitrary string to two keys results in related keys that can be
correlated or attacked, this is a weakness in the key derivation
function and not something that can be solved by adding more
randomness to every possible set of bytes that could ever be hashed
into those keys.

In other words: keys should be unpredictable and not leak data used to
derive them; if they do, the data is not at fault.

=E2=80=94Sam


From nobody Tue Nov  9 18:12:09 2021
Return-Path: <lukeh@padl.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B0D1A3A0FCF for <kitten@ietfa.amsl.com>; Tue,  9 Nov 2021 18:11:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_PASS=-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=padl.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 GD8cE2WC9cwV for <kitten@ietfa.amsl.com>; Tue,  9 Nov 2021 18:11:55 -0800 (PST)
Received: from us.padl.com (us.padl.com [216.154.215.154]) (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 762903A0FDC for <kitten@ietf.org>; Tue,  9 Nov 2021 18:11:54 -0800 (PST)
Received: by us.padl.com  with ESMTP id 1AA2BmKH015864; Wed, 10 Nov 2021 02:11:50 GMT
DKIM-Filter: OpenDKIM Filter v2.11.0 us.padl.com 1AA2BmKH015864
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=padl.com; s=default; t=1636510311; bh=yG5NXn5llOlTONGob1XG/97UmTNUh9YP5xz0URf0ki8=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=ZGHATlExGW8N9YIiHa9g52rqFf7jGh5niWz0gaVft5KWOHZ4Qab0nV+E1EVUBLB6e M0WqcbdwkOIJwGoKTyV3pBcQbOHY6pM/w+NOFxQGLM+yT/ti5c6COWvJtbxD3cKgrW oCu+6z2utaJnY1aqfGmVdQXUAa0Xiq6U0kD/ZZg+Yx7VbtUrErLmGjLD6WvHwjDtX/ R+Ax1Pt0lOIPGmvSxUYkyUTxhgoR7BQqX6Xwqat2U1I/NcH8GEpqZZNTq8mUnlnrHw gbCE5KgT7TqJlg1TrkBWQ++4o1hlVJcnL028pHVNyB5+5OAdJQAz+S3mMoE/TW1gZm 2DfRMqceJykwg==
From: Luke Howard <lukeh@padl.com>
Message-Id: <794E1F16-7319-41FC-A5B4-4C3DD93D0F0A@padl.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_639B8973-C586-4979-A814-BA138A7CE90E"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
Date: Wed, 10 Nov 2021 13:11:47 +1100
In-Reply-To: <C5BD5132-FA9A-4E6B-AE8A-36A795E36EC3@lukehoward.com>
Cc: "kitten@ietf.org" <kitten@ietf.org>, =?utf-8?Q?Pavel_B=C5=99ezina?= <pbrezina@redhat.com>
To: Sam Hartman <hartmans-ietf@mit.edu>
References: <tslr1bphs2g.fsf@suchdamage.org> <C5BD5132-FA9A-4E6B-AE8A-36A795E36EC3@lukehoward.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/3vmRjwCjT0hWdU_BxH1i-RGWxBU>
Subject: Re: [kitten] Kerberos Preauth Registration for OAuth2 device flow
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Nov 2021 02:12:08 -0000

--Apple-Mail=_639B8973-C586-4979-A814-BA138A7CE90E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

[resending from subscribed email, sorry Sam/Pavel]

Hi Sam,

> AS far as I can tell, the reply key is never used (it is replaced) so =
a
> long-term password is not needed.

Talking my own book here (although, I have no commercial interest) =E2=80=93=
 would the vendor consider defining as a GSS-API mechanism that could be =
used with draft-perez-krb-wg-gss-preauth? (I suppose, if it needs to =
work with MIT as opposed to Heimdal, this may be a non-starter as the =
GSS pre-authentication implementation for MIT is experimental and only =
supports an earlier version of the draft.)

> 1) It appears to have the same   issues with anonymous pkinit that OTP
> has.
> You probably do not want to use this FAST factor with a armor ticket =
you
> got from anonymous pkinit.
> If you do, you need to verify the KDC's identity elsewhere.

Right, this is also something that came up with GSS pre-authentication. =
Of course, if FAST isn=E2=80=99t used then you also have the same =
problem.

Can they use TLS inside the PA exchange to authenticate the KDC?

Cheers,
Luke=

--Apple-Mail=_639B8973-C586-4979-A814-BA138A7CE90E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D"">[resending from subscribed email, sorry Sam/Pavel]</div><div =
class=3D""><br class=3D""></div>Hi Sam,<br class=3D""><div><font =
color=3D"#bf5af2" class=3D""><span style=3D"caret-color: rgb(191, 90, =
242);" class=3D""><br class=3D""></span></font><blockquote type=3D"cite" =
class=3D""><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8" class=3D""><div style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D""><div class=3D"">AS far as I can tell, the reply key is never =
used (it is replaced) so a<br class=3D""><div class=3D""><div =
class=3D"">long-term password is not needed.<br =
class=3D""></div></div></div></div></div></blockquote><font =
color=3D"#bf5af2" class=3D""><span style=3D"caret-color: rgb(191, 90, =
242);" class=3D""><br class=3D""></span></font>Talking my own book here =
(although, I have no commercial interest) =E2=80=93 would the vendor =
consider defining as a GSS-API mechanism that could be used with =
draft-perez-krb-wg-gss-preauth? (I suppose, if it needs to work with MIT =
as opposed to Heimdal, this may be a non-starter as the GSS =
pre-authentication implementation for MIT is experimental and only =
supports an earlier version of the draft.)</div><div><font =
color=3D"#bf5af2" class=3D""><span style=3D"caret-color: rgb(191, 90, =
242);" class=3D""><br class=3D""></span></font><blockquote type=3D"cite" =
class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; line-break: after-white-space;" class=3D""><div class=3D""><div =
class=3D"">1) It appears to have the same &nbsp;&nbsp;issues with =
anonymous pkinit that OTP<br class=3D"">has.<br class=3D"">You probably =
do not want to use this FAST factor with a armor ticket you<br =
class=3D"">got from anonymous pkinit.<br class=3D""><div class=3D""><div =
class=3D"">If you do, you need to verify the KDC's identity =
elsewhere.<br class=3D""></div></div></div></div></div></blockquote><font =
color=3D"#bf5af2" class=3D""><span style=3D"caret-color: rgb(191, 90, =
242);" class=3D""><br class=3D""></span></font>Right, this is also =
something that came up with GSS pre-authentication. Of course, if FAST =
<i class=3D"">isn=E2=80=99t</i><span class=3D"">&nbsp;used then you also =
have the same problem.</span><br class=3D""><font color=3D"#bf5af2" =
class=3D""><span style=3D"caret-color: rgb(191, 90, 242);" class=3D""><br =
class=3D""></span></font>Can they use TLS inside the PA exchange to =
authenticate the KDC?<br class=3D""><font color=3D"#bf5af2" =
class=3D""><span style=3D"caret-color: rgb(191, 90, 242);" class=3D""><br =
class=3D""></span></font>Cheers,<br class=3D""><div style=3D"word-wrap: =
break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" =
class=3D""><div class=3D""><div class=3D""><div =
class=3D"">Luke</div></div></div></div></div></body></html>=

--Apple-Mail=_639B8973-C586-4979-A814-BA138A7CE90E--


From nobody Tue Nov  9 22:22:20 2021
Return-Path: <ghudson@mit.edu>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 47F9B3A12C3 for <kitten@ietfa.amsl.com>; Tue,  9 Nov 2021 22:22:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.828
X-Spam-Level: 
X-Spam-Status: No, score=-4.828 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.4, NICE_REPLY_A=-3.33, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
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 mUfBVXuQitNW for <kitten@ietfa.amsl.com>; Tue,  9 Nov 2021 22:22:14 -0800 (PST)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (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 8565B3A12C2 for <kitten@ietf.org>; Tue,  9 Nov 2021 22:22:14 -0800 (PST)
Received: from [18.30.8.185] ([18.30.8.185]) (authenticated bits=0) (User authenticated as ghudson@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 1AA6M7pL003699 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 10 Nov 2021 01:22:08 -0500
To: Sam Hartman <hartmans-ietf@mit.edu>, kitten@ietf.org
Cc: =?UTF-8?Q?Pavel_B=c5=99ezina?= <pbrezina@redhat.com>
References: <0100017d06db6c83-21cbd2ce-f371-48a9-88ce-5b6452842241-000000@email.amazonses.com>
From: Greg Hudson <ghudson@mit.edu>
Message-ID: <99094d0b-6bc1-d896-4f70-83f2e1696eb3@mit.edu>
Date: Wed, 10 Nov 2021 01:22:07 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <0100017d06db6c83-21cbd2ce-f371-48a9-88ce-5b6452842241-000000@email.amazonses.com>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/lx3QEFXPnxTUT9UTMj4o9lWrXFA>
Subject: Re: [kitten] Kerberos Preauth Registration for OAuth2 device flow
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Nov 2021 06:22:18 -0000

On 11/9/21 5:39 PM, Sam Hartman wrote:
> Basic approach.
> The KDC provides the client a URI  and a code (or a URI specific to that
> authentication interaction.)
> The client spawns a web browser, does stuff, and eventually somehow the
> client lets its Kerberos app know that authentication has happened, and
> then the KDC goes off to see if it believes that.
> 
> AS far as I can tell, the reply key is never used (it is replaced) so a
> long-term password is not needed.

Some additional context: this is essentially the same user experience as
one sees when authorizing a set-top box to a video streaming service
using OAuth2.  The initial proposal was to extend MIT krb5's FAST OTP
implementation to support this on the back end.  Although we got to the
point of a working implementation, I decided to recommend a new preauth
type because (1) sending an empty or meaningless otp-value doesn't fit
the spirit of OTP preauth, and (2) displaying a properly localized
prompt would require building a sub-protocol into the otp-challenge field.

Like FAST OTP without must-encrypt-nonce, this mechanism replaces the
reply key with the armor key, so that the mechanism can be used in place
of a long-term password.

> 1) It appears to have the same   issues with anonymous pkinit that OTP
> has.
> You probably do not want to use this FAST factor with a armor ticket you
> got from anonymous pkinit.
> If you do, you need to verify the KDC's identity elsewhere.

Note that MIT krb5's anonymous PKINIT implementation always
authenticates the KDC (via its certificate, which must have a signature
chain leading to an explicitly configured anchor).

If a Kerberos client contains an implementation of unauthenticated
PKINIT, I would expect it to also contain some facility for recognizing
armor tickets that don't authenticate the KDC, and reject the use of
those as armor for FAST OTP (without must-encrypt-nonce) or this mechanism.

> 2) This effectively gives you an arbitrary URI that you have no way to
> validate and encourages the user to go authenticate to that URI.
> 
>   * Appears to be a phishing vector

Potentially, as is FAST OTP.  One hopes that it is at least as difficult
to fool a user into authenticating to a malicious Kerberos realm as it
would be to directly fool the user into authenticating to the malicious
URI.  The user is not being asked to present any additional information
of value to the given URI beyond what is necessary to authenticate,
since the code is presented by the same authority as the URI.

>   * Appears to be a malicious code vector.  I'm particularly concerned
>     about a case where this is part of machine login.  You'd be running
>     potentially attacker supplied  code in a pre-login context.  I hope
>     your sandboxing is good.

I don't think we're expecting the Kerberos client implementation to fire
up its own web browser.  As with a set-top box or similar device, the
URL and code are presented to the user in a prompt.  If this mechanism
were used at login time, the user would probably have to run the browser
on a different device.

> On the interoperability side, the protocol between the KDC  and the
> OAuth provider does not appear to be described at all.
> You get vendor lockin between a KDC and OAuth provider as far as I can
> tell.

Preauth mechs don't generally specify back-end protocols; certainly RFC
6560 does not.  The FreeIPA implementation will (to the best of my
knowledge) use RADIUS, with the URL and code being presented to the KDC
in an Access-Challenge with an accompanying State.  An encrypted
PA-FX-COOKIE can be used to remember the state between the first client
request and the second.  There are some details that would have to be
squared between interoperable implementations, such as the
Access-Challenge format and the cookie format.  (MIT documents its
encrypted PA-FX-COOKIE facility, but there is likely to be some
formatting of the preauth-type-specific cookie contents as well.)

Luke wrote:
> would the vendor consider defining as a GSS-API mechanism that could be used with draft-perez-krb-wg-gss-preauth?

I think that would be a significant hurdle.  Note that for a
single-threaded KDC, this mechanism is ideally implemented with
asynchronous communication between the KDC and the identity provider.  A
generic GSSAPI preauth bridge probably can't do that.


From pbrezina@redhat.com  Wed Nov 10 06:08:45 2021
Return-Path: <pbrezina@redhat.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2D6513A0FEA for <kitten@ietfa.amsl.com>; Wed, 10 Nov 2021 06:08:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.432
X-Spam-Level: 
X-Spam-Status: No, score=-5.432 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-3.33, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.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 li8pLhqHm9b5 for <kitten@ietfa.amsl.com>; Wed, 10 Nov 2021 06:08:41 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) (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 6E2F23A0FCA for <kitten@ietf.org>; Wed, 10 Nov 2021 06:08:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636553319; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QbMQ58EvCAD3X6MJIhsZKmGpwSSt1ffilV5yXJKvHjo=; b=WLtiHXlh/3qVzht/ACARWd44bi+zOrexyJ2yFgajYCr7ZuniWTB3owftL8etYNqtBpf8Gt DDVLhBgeHnvYzoIhm1IJhW5+ELNgczYFJn1Q15kZkWRMvhDigIMtyAehI45qeFbH+pePj8 3y1G1C7QETbB8LgaEERGqxIAn4T1pwM=
Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-561-BwTfh6RrPJ6qLc0W3iI4kg-1; Wed, 10 Nov 2021 09:08:38 -0500
X-MC-Unique: BwTfh6RrPJ6qLc0W3iI4kg-1
Received: by mail-ed1-f70.google.com with SMTP id w12-20020aa7da4c000000b003e28acbf765so2434090eds.6 for <kitten@ietf.org>; Wed, 10 Nov 2021 06:08:38 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=QbMQ58EvCAD3X6MJIhsZKmGpwSSt1ffilV5yXJKvHjo=; b=qb+0pe8Z2u6GeiOdfYXydoJlfeI/gTs1CXgBjhvybn8YWC8P7AEN8bmtbjx/qHWpAu teaSsIms+Or+xhsd1m/gDqxwKrm0ndcRZzbEpnW473Z1JGrelDwgvRbX3hCg89It/z3f DgA49onX1yhBlzn57IP1obfOz5AnlYGJD6YgKxDXLx1/HLtXUx6YD9lvoxgB9OPkT9ol MBKuWrGX/9+ncmSo45M7xdovzJJ7Sj9d9Er1dYMUIAsUJexTIbGwjwhkh4XLyXmNz4h0 Kn2Kcr5rgx6ym8lKfOjtH2H1YnA3e9k+S/uUeMbXwCusuCd+OSLxqoLEdOjdefakUrIB rBEg==
X-Gm-Message-State: AOAM532jFv5OcCiqb2YYhYpKPOQYMBaNCliicLUEhEleeRpWbK6bKQQc 6KSmFMFmYEeX9nUU4BwK2zfem8Zm4/0V7I7D3dTuTM2t9ZAeIvzAZHegoTn2MS2neRPlR5qHN/o uIIIGKbM=
X-Received: by 2002:a50:bf48:: with SMTP id g8mr21590787edk.10.1636553317390;  Wed, 10 Nov 2021 06:08:37 -0800 (PST)
X-Google-Smtp-Source: ABdhPJw8QKq9ziNRQspii3e0R3vcE1Q60zOWazvWEMNpdNO5cCXT7bESY1a0CAlEZo21V6iT0j+0Kg==
X-Received: by 2002:a50:bf48:: with SMTP id g8mr21590766edk.10.1636553317141;  Wed, 10 Nov 2021 06:08:37 -0800 (PST)
Received: from [10.0.1.6] ([83.240.62.52]) by smtp.gmail.com with ESMTPSA id hd15sm11868717ejc.69.2021.11.10.06.08.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Nov 2021 06:08:36 -0800 (PST)
Message-ID: <e16cf378-49b2-a12a-4b2d-52c947f3ceed@redhat.com>
Date: Wed, 10 Nov 2021 15:08:36 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0
To: Greg Hudson <ghudson@mit.edu>, Sam Hartman <hartmans-ietf@mit.edu>, kitten@ietf.org
References: <0100017d06db6c83-21cbd2ce-f371-48a9-88ce-5b6452842241-000000@email.amazonses.com> <99094d0b-6bc1-d896-4f70-83f2e1696eb3@mit.edu>
From: =?UTF-8?Q?Pavel_B=c5=99ezina?= <pbrezina@redhat.com>
In-Reply-To: <99094d0b-6bc1-d896-4f70-83f2e1696eb3@mit.edu>
Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbrezina@redhat.com
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/ygk88FPsNPpCmkXXJMsXv-LBTtk>
X-Mailman-Approved-At: Wed, 10 Nov 2021 07:37:09 -0800
Subject: Re: [kitten] Kerberos Preauth Registration for OAuth2 device flow
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Nov 2021 14:19:35 -0000

On 11/10/21 07:22, Greg Hudson wrote:
> On 11/9/21 5:39 PM, Sam Hartman wrote:
>> Basic approach.
>> The KDC provides the client a URI  and a code (or a URI specific to that
>> authentication interaction.)
>> The client spawns a web browser, does stuff, and eventually somehow the
>> client lets its Kerberos app know that authentication has happened, and
>> then the KDC goes off to see if it believes that.
>>
>> AS far as I can tell, the reply key is never used (it is replaced) so a
>> long-term password is not needed.
> 
> Some additional context: this is essentially the same user experience as
> one sees when authorizing a set-top box to a video streaming service
> using OAuth2.  The initial proposal was to extend MIT krb5's FAST OTP
> implementation to support this on the back end.  Although we got to the
> point of a working implementation, I decided to recommend a new preauth
> type because (1) sending an empty or meaningless otp-value doesn't fit
> the spirit of OTP preauth, and (2) displaying a properly localized
> prompt would require building a sub-protocol into the otp-challenge field.
> 
> Like FAST OTP without must-encrypt-nonce, this mechanism replaces the
> reply key with the armor key, so that the mechanism can be used in place
> of a long-term password.
> 
>> 1) It appears to have the same   issues with anonymous pkinit that OTP
>> has.
>> You probably do not want to use this FAST factor with a armor ticket you
>> got from anonymous pkinit.
>> If you do, you need to verify the KDC's identity elsewhere.
> 
> Note that MIT krb5's anonymous PKINIT implementation always
> authenticates the KDC (via its certificate, which must have a signature
> chain leading to an explicitly configured anchor).
> 
> If a Kerberos client contains an implementation of unauthenticated
> PKINIT, I would expect it to also contain some facility for recognizing
> armor tickets that don't authenticate the KDC, and reject the use of
> those as armor for FAST OTP (without must-encrypt-nonce) or this mechanism.
> 
>> 2) This effectively gives you an arbitrary URI that you have no way to
>> validate and encourages the user to go authenticate to that URI.
>>
>>    * Appears to be a phishing vector
> 
> Potentially, as is FAST OTP.  One hopes that it is at least as difficult
> to fool a user into authenticating to a malicious Kerberos realm as it
> would be to directly fool the user into authenticating to the malicious
> URI.  The user is not being asked to present any additional information
> of value to the given URI beyond what is necessary to authenticate,
> since the code is presented by the same authority as the URI.
> 
>>    * Appears to be a malicious code vector.  I'm particularly concerned
>>      about a case where this is part of machine login.  You'd be running
>>      potentially attacker supplied  code in a pre-login context.  I hope
>>      your sandboxing is good.
> 
> I don't think we're expecting the Kerberos client implementation to fire
> up its own web browser.  As with a set-top box or similar device, the
> URL and code are presented to the user in a prompt.  If this mechanism
> were used at login time, the user would probably have to run the browser
> on a different device.
> 
>> On the interoperability side, the protocol between the KDC  and the
>> OAuth provider does not appear to be described at all.
>> You get vendor lockin between a KDC and OAuth provider as far as I can
>> tell.
> 
> Preauth mechs don't generally specify back-end protocols; certainly RFC
> 6560 does not.  The FreeIPA implementation will (to the best of my
> knowledge) use RADIUS, with the URL and code being presented to the KDC
> in an Access-Challenge with an accompanying State.  An encrypted
> PA-FX-COOKIE can be used to remember the state between the first client
> request and the second.  There are some details that would have to be
> squared between interoperable implementations, such as the
> Access-Challenge format and the cookie format.  (MIT documents its
> encrypted PA-FX-COOKIE facility, but there is likely to be some
> formatting of the preauth-type-specific cookie contents as well.)
> 
> Luke wrote:
>> would the vendor consider defining as a GSS-API mechanism that could be used with draft-perez-krb-wg-gss-preauth?
> 
> I think that would be a significant hurdle.  Note that for a
> single-threaded KDC, this mechanism is ideally implemented with
> asynchronous communication between the KDC and the identity provider.  A
> generic GSSAPI preauth bridge probably can't do that.

Hi Sam,
thank you for looking into it. I've been collaborating with Greg on this 
for a while now and I see he summarized it well.

We don't have public specification available right now (or not formally 
committed) since it is all work in progress, but we will have one in the 
future. If it is required, we can prioritize this tasks.

The backend use RADIUS (more specifically ipa-otpd from FreeIPA) and 
works very similar to otp implementation in MIT Kerberos. The very first 
implementation actually just extended otp with support of 
Access-Challenge message and Reply-Message and State attributes as Greg 
already explained.

Thank you,
Pavel.


From nobody Wed Nov 10 08:27:12 2021
Return-Path: <hartmans-ietf@mit.edu>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8E65C3A11EF for <kitten@ietfa.amsl.com>; Wed, 10 Nov 2021 08:27:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level: 
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 4x-Ydagmcbow for <kitten@ietfa.amsl.com>; Wed, 10 Nov 2021 08:26:59 -0800 (PST)
Received: from mail.suchdamage.org (mail.suchdamage.org [52.9.186.167]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B916F3A11E2 for <kitten@ietf.org>; Wed, 10 Nov 2021 08:26:59 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail.suchdamage.org (Postfix) with ESMTP id 6597630C29; Wed, 10 Nov 2021 11:26:59 -0500 (EST)
Received: from mail.suchdamage.org ([127.0.0.1]) by localhost (mail.suchdamage.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vcnP61kESQWe; Wed, 10 Nov 2021 11:26:58 -0500 (EST)
Received: from carter-zimmerman.suchdamage.org (71-218-140-158.hlrn.qwest.net [71.218.140.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "laptop", Issuer "laptop" (not verified)) (Authenticated sender: hartmans-laptop) by mail.suchdamage.org (Postfix) with ESMTPSA; Wed, 10 Nov 2021 11:26:58 -0500 (EST)
Received: by carter-zimmerman.suchdamage.org (Postfix, from userid 8042) id 0DC42196E8C2; Wed, 10 Nov 2021 09:26:58 -0700 (MST)
From: Sam Hartman <hartmans-ietf@mit.edu>
To: Luke Howard <lukeh=40padl.com@dmarc.ietf.org>, Sam Hartman <hartmans-ietf@mit.edu>
Cc: "kitten@ietf.org" <kitten@ietf.org>, Pavel =?utf-8?Q?B=C5=99ezina?= <pbrezina@redhat.com>
In-Reply-To: <794E1F16-7319-41FC-A5B4-4C3DD93D0F0A@padl.com>
References: <tslr1bphs2g.fsf@suchdamage.org> <C5BD5132-FA9A-4E6B-AE8A-36A795E36EC3@lukehoward.com> <794E1F16-7319-41FC-A5B4-4C3DD93D0F0A@padl.com>
Date: Wed, 10 Nov 2021 09:26:57 -0700
Message-ID: <tslczn8nfhq.fsf@suchdamage.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/Z8iFGg6R6-ezAm0MeC9HpDVEoQc>
Subject: Re: [kitten] Kerberos Preauth Registration for OAuth2 device flow
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Nov 2021 16:27:10 -0000

>>>>> "Luke" =3D=3D Luke Howard <lukeh=3D40padl.com@dmarc.ietf.org> writes:

    >> AS far as I can tell, the reply key is never used (it is
    >> replaced) so a long-term password is not needed.

    Luke> Talking my own book here (although, I have no commercial
    Luke> interest) =E2=80=93 would the vendor consider defining as a GSS-A=
PI
    Luke> mechanism that could be used with
    Luke> draft-perez-krb-wg-gss-preauth?

I think that would add a fair bit of complexity.
The current mechanism
requires you to either simply display a prompt (and let the user deal
with a web browser)
or to embed a web browser widget into your UI.

Your proposal adds  a fair bit of complexity.
If you wanted to support    any facilities like channel bindings, you
need a fair bit more complexity than what is currently being proposed.
If all you support is a GSS-API mechanism without mutual authentication,
per-message tokens or  channel bindings, what's the point?

    >> 1) It appears to have the same issues with anonymous pkinit that
    >> OTP has.  You probably do not want to use this FAST factor with a
    >> armor ticket you got from anonymous pkinit.  If you do, you need
    >> to verify the KDC's identity elsewhere.

    Luke> Right, this is also something that came up with GSS
    Luke> pre-authentication. Of course, if FAST isn=E2=80=99t used then you
    Luke> also have the same problem.

This is a FAST factor.

    Luke> Can they use TLS inside the PA exchange to authenticate the
    Luke> KDC?

What does this give you?
How do you bind that back to something the user knows.
How is this better than a anonymous pkinit armor ticket?


From nobody Thu Nov 11 08:09:15 2021
Return-Path: <rharwood@redhat.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 456C03A0AB5 for <kitten@ietfa.amsl.com>; Thu, 11 Nov 2021 08:09:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.101
X-Spam-Level: 
X-Spam-Status: No, score=-2.101 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, 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=redhat.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 WpImUXJmjLi0 for <kitten@ietfa.amsl.com>; Thu, 11 Nov 2021 08:09:09 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 E04803A0AB1 for <kitten@ietf.org>; Thu, 11 Nov 2021 08:09:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636646947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PS2Z9P1JrKXdYYradHyFUZ/DSIbEkmrvFpwdiC5yqDo=; b=gS1MUfksDG1w98wQBgPP8ar2l1ayhlzTyy/gtkGqZlXqrgmHqj6w4EFjTdWygj8M7c3i/a bW2fTHv824uwzgKpqH6EOHMVmcyUq4bHBF0Z8Qk0T8UO8hWJtqLjttY5pEm0lWXShqJEyt +Yongau1d87SC/YcfUHzVASd+9lS8oo=
Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-292-X2npGWDGOlKfDshdkFXwmQ-1; Thu, 11 Nov 2021 11:09:06 -0500
X-MC-Unique: X2npGWDGOlKfDshdkFXwmQ-1
Received: by mail-qv1-f71.google.com with SMTP id kk1-20020a056214508100b003a9d1b987caso5899962qvb.4 for <kitten@ietf.org>; Thu, 11 Nov 2021 08:09:06 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=8MZ8kd2qQwTKzVkamtnu6Y1GMHxaXsHrB8KRtGKm+6Q=; b=E3CT4Uo4/eA9xKVFcxm82G+WckErrqr/aDCU4W1YHkyXt+E9I1YE3FIUvZQS4e3nxJ Zy2xmxPeJeqRXaLImr+oh+o51H6HhNSjDrQQmqdv0SCdaIONCJN31mWhZxD91hA8wp+5 EXKeHNzEexYfwfuNvvji531qgkGmcNx+iCNgSVnO1U4nAYWMCGmYuEbvfo9Wv4cuR+8W f8HPbts52bSIeFetZbjTsUl9S9d69zhMwEmGwpteVLU8Wd/mC4sI4y+zUSftqEpW+Jg+ LjdOudGyGBIPbdKnk7O6P+2oR6cYXnqUF07AFZbc7WZmkLgVbZsuEhedxoHskGVBSSCT oVCg==
X-Gm-Message-State: AOAM530+SPHGuNEiMdYYepSDJapBbrUwqX7a+7568zy0BeN5MixSMcOu pICCqPaO6y4BaLRLcvIcO13CoVbQAoxtIkf/oW/FXf1JJ7fxt7OKudQWXsK6AhxsfvMJgUdSSNl nfl9z0gc=
X-Received: by 2002:a05:620a:24ce:: with SMTP id m14mr6848673qkn.212.1636646945706;  Thu, 11 Nov 2021 08:09:05 -0800 (PST)
X-Google-Smtp-Source: ABdhPJyNu4orTiqT12aMinPRVLT2xH+RgrsCqPDgcvZD//dcb2UoChGmkbvfV/ook8dHhjTKxo1txw==
X-Received: by 2002:a05:620a:24ce:: with SMTP id m14mr6848634qkn.212.1636646945353;  Thu, 11 Nov 2021 08:09:05 -0800 (PST)
Received: from localhost ([2601:184:4181:74c0:862e:5809:ed9e:e10e]) by smtp.gmail.com with ESMTPSA id m16sm1775720qtx.46.2021.11.11.08.09.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 08:09:04 -0800 (PST)
From: Robbie Harwood <rharwood@redhat.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>, Sam Whited <sam@samwhited.com>, KITTEN Working Group <kitten@ietf.org>
In-Reply-To: <ed2cbbaf-98bc-ea16-8c48-b3ddb02c845a@isode.com>
References: <jlgpmrhi189.fsf@redhat.com> <139AC3E2-92B1-433A-A8AE-28C7DECFB619@josefsson.org> <72bf2b21-86db-4975-ab8f-b367d863f1f0@www.fastmail.com> <ed2cbbaf-98bc-ea16-8c48-b3ddb02c845a@isode.com>
Date: Thu, 11 Nov 2021 11:09:01 -0500
Message-ID: <jlgpmr6ad42.fsf@redhat.com>
MIME-Version: 1.0
Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=rharwood@redhat.com
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/Uwlw8A4rjXc9B1AMYmGx9LRFmdg>
Subject: Re: [kitten] Requesting WG adoption of several SCRAM related documents
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Nov 2021 16:09:13 -0000

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Alexey Melnikov <alexey.melnikov@isode.com> writes:

> So my update proposal is to work on the following in the WG:
>
> 1) SCRAM 2FA extension
>
> 2) Something like draft-cridland-kitten-clientkey for SASL=20
> re-authentication that can be used with SCRAM or similar mechanisms
>
> 3) A possible informational document about best SASL implementation=20
> practices, in particular how to deal with some SASL mechanisms only=20
> being available for some users.

Does anyone have thoughts on this modified proposal?  (I'm trying to
judge consensus, so please speak up.)

Be well,
--Robbie

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEA5qc6hnelQjDaHWqJTL5F2qVpEIFAmGNQB0UHHJoYXJ3b29k
QHJlZGhhdC5jb20ACgkQJTL5F2qVpEKMeRAAtbxI0EVGHHODXlzGDhFF8sOyOimB
PGV1kAkaEq7rtdv+SEYCdvp3uEbuxzLq8EpToF8e1sRv1/1vxCRf1aoGMgHiaUI8
ievNwWFQUUXbTcjpbfArF8p0s0VfQQfixXlw+z0j/su9lAYR2BKqcOw3nh+nugku
avHZMMNA2dB7cJNDXIE2ofhHk2XLnB5qPJ19zSwlktN3bZuXTKaGRXPoSbrzqOHY
ydfY6tfSZtKD6+A+pQD/GUT/ei8z+mSJiIb/PWQYQpHiLPcdjWIwcSFYBrZTbNEY
NhAzZl/fzF4JLAk1BqXcfXP2+6l+t1vW0yHPbATE9/edsk76y033clx5sZjiiNsl
8d1KAw3rQOkW+o0wJldP25jDZArGu8mMeP4RxLwPNNPmVwTaXbTS4S09j5iPutfS
xuGBNHlbuxdgAH55ggUdUdMbNiIPXg8zcFRhEXmrT2t501sYwdLVTLL//EwD2LFn
Ic7+RtO+pFx7a8bymYwiciMHgDAO1USQUgS3RfNRkPrToUI91ZcfR0sH2K/a6fy6
GBIqH4+OGNaLVEw1LN3r0ThUuvNPBDwKrzAVeaEw9tK4KWlhRLh3VMnlAuUgzQrw
dJObr0pY45Xr3eH6T5Ebu3hDS4S2A4k/MPN20xp0m+ulyybkUavks32UyVf/HPo1
yOGOR6rfVRQxHFs=
=Txcg
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Thu Nov 11 12:39:28 2021
Return-Path: <me@ruff.mobi>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 037DF3A0E1F for <kitten@ietfa.amsl.com>; Thu, 11 Nov 2021 12:39:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 8wFkH7myyUQ7 for <kitten@ietfa.amsl.com>; Thu, 11 Nov 2021 12:39:23 -0800 (PST)
Received: from vex.ruff.mobi (vex.ruff.mobi [IPv6:2a03:4000:6:83fc::a]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9AA543A0E1D for <kitten@ietf.org>; Thu, 11 Nov 2021 12:39:22 -0800 (PST)
Received: from pi.ruff.mobi (mx.ruff.mobi [IPv6:2001:470:741b:1::252]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "ruff.mobi", Issuer "R3" (not verified)) by vex.ruff.mobi (Postfix) with ESMTPS id 5F739150D5C6; Thu, 11 Nov 2021 21:39:18 +0100 (CET)
Received: from dei.ruff.mobi (unknown [IPv6:2001:470:741b::6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by pi.ruff.mobi (Postfix) with ESMTPSA id A62491313D; Thu, 11 Nov 2021 21:39:15 +0100 (CET)
Message-ID: <5ecd2c459020fc2072bc188f2ae1751f8c2d5cc7.camel@ruff.mobi>
From: "Ruslan N. Marchenko" <me@ruff.mobi>
To: Robbie Harwood <rharwood@redhat.com>, Alexey Melnikov <alexey.melnikov@isode.com>, Sam Whited <sam@samwhited.com>, KITTEN Working Group <kitten@ietf.org>
Date: Thu, 11 Nov 2021 21:39:03 +0100
In-Reply-To: <jlgpmr6ad42.fsf@redhat.com>
References: <jlgpmrhi189.fsf@redhat.com> <139AC3E2-92B1-433A-A8AE-28C7DECFB619@josefsson.org> <72bf2b21-86db-4975-ab8f-b367d863f1f0@www.fastmail.com> <ed2cbbaf-98bc-ea16-8c48-b3ddb02c845a@isode.com> <jlgpmr6ad42.fsf@redhat.com>
Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-gGeU8r4m1WUKMhMP5T7C"
User-Agent: Evolution 3.40.4 
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/gwEfayZQRS3rolCR9GgNKw80QTQ>
Subject: Re: [kitten] Requesting WG adoption of several SCRAM related documents
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Nov 2021 20:39:27 -0000

--=-gGeU8r4m1WUKMhMP5T7C
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Am Donnerstag, dem 11.11.2021 um 11:09 -0500 schrieb Robbie Harwood:
>=20
> Does anyone have thoughts on this modified proposal?=C2=A0 (I'm trying to
> judge consensus, so please speak up.)
>=20
Up for MFA, no comments re SHA2+.

Or rather I do have comments re SHA2+ - but they have nothing to do
with security. Just standard blah-blah re future proof and stuff. But
I'd rather prefer seeing cost-based algorithm (like scrypt or Argon2)
for future-proofness than sha1024 (eg. I already hate seeing sha512
base64 in xmpp dumps).

Regards,
Ruslan

--=-gGeU8r4m1WUKMhMP5T7C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iLUEABMKAB0WIQQmaBdx0pI7WegwH++rtatsHSOZ+wUCYY1/ZwAKCRCrtatsHSOZ
+1N/AgCmdPE7IHmQ7TasKQZ3FZvX7FrkXakEF7cvG3HZOQSdLN+/rms2HwxpGRnb
KPr4CHhnX/HekbIaGxc4lbWwvfEcAgCfNQvbx3s/MV+LGkhd6NUq43c9R2UD2/Ml
/LMGQumEEBaXxdG1AB8/dSutBS9RL/FPZ9Fh18RaYZ3DzqbJ3s/a
=isrM
-----END PGP SIGNATURE-----

--=-gGeU8r4m1WUKMhMP5T7C--


From nobody Thu Nov 18 05:30:32 2021
Return-Path: <pbrezina@redhat.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C5B133A0657 for <kitten@ietfa.amsl.com>; Thu, 18 Nov 2021 05:30:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.654
X-Spam-Level: 
X-Spam-Status: No, score=-4.654 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.701, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-1.852, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.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 EaEsrENhlI8x for <kitten@ietfa.amsl.com>; Thu, 18 Nov 2021 05:30:26 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 EDDE53A0650 for <kitten@ietf.org>; Thu, 18 Nov 2021 05:30:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637242224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zfr783qv1XkQa/OHWqNT3hpZPOoPDLQCrU8O0DaIfo4=; b=d9+6955DTbRuVeOvztcKJJWasLs4bdHaAY/mY7ombJPBUzT//ibn/IfnBYef3R8pOH6Rti Dw/2kmbACOq2atUdwsCk6rvdANRs1bKkkIk9Acu0O1Wzwr4GZZK1/pMe3pmYXCssDzqiit kkSqboMnEhLrIqHx2ykT1q0unMUXg5o=
Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-532-ExZsvGivNVGCVnbmB2_EhA-1; Thu, 18 Nov 2021 08:30:22 -0500
X-MC-Unique: ExZsvGivNVGCVnbmB2_EhA-1
Received: by mail-wm1-f69.google.com with SMTP id 201-20020a1c04d2000000b003335bf8075fso2625029wme.0 for <kitten@ietf.org>; Thu, 18 Nov 2021 05:30:22 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:references:in-reply-to :content-transfer-encoding; bh=zfr783qv1XkQa/OHWqNT3hpZPOoPDLQCrU8O0DaIfo4=; b=1xVh5cvijUg0wHbkm2CvGVfrKhDzP+OGXpE2alqg1v3sPiri4yKdCMZqH0062jRNyn reSsLIw8fv6HWkGq6eXnucllx+PBRrTftUJESgtsCxjRrblqdJZTAaNQoc2EBAmqhZba yogvbIeBp2tKz+lC6w972XjWsJRC90WAHSlexIrhfWpHYhzl3o18dZv44jr846m9IzOH BlsHRVh3SOyIrNK6De9fKJUu8d8RUzKrlRLIPZXhILc2YT7hd0X+eD9MTvafLzLxNhSO de1TX4N7Q04EqqqnTfr9l4FwlY0KeThpS2I3hRKI5ZbUq9QSlwn/z7H8kY8JvIARUmU6 mZ9A==
X-Gm-Message-State: AOAM532SpkUBZpWQWzWxeaayusG7Ocz5WHUsapqeMRSzfseOTtg91TCt v7YAak1muObgWhRxRFKi/OFPfPGdaU/luOU2+83pnOaeV9Y9jb2Jg3uLY8y4sE7e/V1VqIpxARl wjbWKpPk=
X-Received: by 2002:a5d:508d:: with SMTP id a13mr30967258wrt.41.1637242221411;  Thu, 18 Nov 2021 05:30:21 -0800 (PST)
X-Google-Smtp-Source: ABdhPJwXR6NBiQwZOEsJEqqUoGUDl55XJspvtladqg6P6fdroeN6Rzm0qoF7jZCThyyzPfZqUfalXQ==
X-Received: by 2002:a5d:508d:: with SMTP id a13mr30967216wrt.41.1637242221122;  Thu, 18 Nov 2021 05:30:21 -0800 (PST)
Received: from [10.0.1.6] ([83.240.62.52]) by smtp.gmail.com with ESMTPSA id k27sm10860171wms.41.2021.11.18.05.30.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Nov 2021 05:30:20 -0800 (PST)
Message-ID: <200dff55-c62e-a109-df4c-622139097ec8@redhat.com>
Date: Thu, 18 Nov 2021 14:30:19 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0
From: =?UTF-8?Q?Pavel_B=c5=99ezina?= <pbrezina@redhat.com>
To: Greg Hudson <ghudson@mit.edu>, Sam Hartman <hartmans-ietf@mit.edu>, kitten@ietf.org
References: <0100017d06db6c83-21cbd2ce-f371-48a9-88ce-5b6452842241-000000@email.amazonses.com> <99094d0b-6bc1-d896-4f70-83f2e1696eb3@mit.edu> <e16cf378-49b2-a12a-4b2d-52c947f3ceed@redhat.com>
In-Reply-To: <e16cf378-49b2-a12a-4b2d-52c947f3ceed@redhat.com>
Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbrezina@redhat.com
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/ikRN7Jj_MHJLztUPdlW2ypcEei8>
Subject: Re: [kitten] Kerberos Preauth Registration for OAuth2 device flow
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Nov 2021 13:30:31 -0000

Hi Sam,
the discussion has been stalled for over a week. Is there any 
information that is required from me?

Thank you,
Pavel

On 11/10/21 15:08, Pavel Březina wrote:
> On 11/10/21 07:22, Greg Hudson wrote:
>> On 11/9/21 5:39 PM, Sam Hartman wrote:
>>> Basic approach.
>>> The KDC provides the client a URI  and a code (or a URI specific to that
>>> authentication interaction.)
>>> The client spawns a web browser, does stuff, and eventually somehow the
>>> client lets its Kerberos app know that authentication has happened, and
>>> then the KDC goes off to see if it believes that.
>>>
>>> AS far as I can tell, the reply key is never used (it is replaced) so a
>>> long-term password is not needed.
>>
>> Some additional context: this is essentially the same user experience as
>> one sees when authorizing a set-top box to a video streaming service
>> using OAuth2.  The initial proposal was to extend MIT krb5's FAST OTP
>> implementation to support this on the back end.  Although we got to the
>> point of a working implementation, I decided to recommend a new preauth
>> type because (1) sending an empty or meaningless otp-value doesn't fit
>> the spirit of OTP preauth, and (2) displaying a properly localized
>> prompt would require building a sub-protocol into the otp-challenge 
>> field.
>>
>> Like FAST OTP without must-encrypt-nonce, this mechanism replaces the
>> reply key with the armor key, so that the mechanism can be used in place
>> of a long-term password.
>>
>>> 1) It appears to have the same   issues with anonymous pkinit that OTP
>>> has.
>>> You probably do not want to use this FAST factor with a armor ticket you
>>> got from anonymous pkinit.
>>> If you do, you need to verify the KDC's identity elsewhere.
>>
>> Note that MIT krb5's anonymous PKINIT implementation always
>> authenticates the KDC (via its certificate, which must have a signature
>> chain leading to an explicitly configured anchor).
>>
>> If a Kerberos client contains an implementation of unauthenticated
>> PKINIT, I would expect it to also contain some facility for recognizing
>> armor tickets that don't authenticate the KDC, and reject the use of
>> those as armor for FAST OTP (without must-encrypt-nonce) or this 
>> mechanism.
>>
>>> 2) This effectively gives you an arbitrary URI that you have no way to
>>> validate and encourages the user to go authenticate to that URI.
>>>
>>>    * Appears to be a phishing vector
>>
>> Potentially, as is FAST OTP.  One hopes that it is at least as difficult
>> to fool a user into authenticating to a malicious Kerberos realm as it
>> would be to directly fool the user into authenticating to the malicious
>> URI.  The user is not being asked to present any additional information
>> of value to the given URI beyond what is necessary to authenticate,
>> since the code is presented by the same authority as the URI.
>>
>>>    * Appears to be a malicious code vector.  I'm particularly concerned
>>>      about a case where this is part of machine login.  You'd be running
>>>      potentially attacker supplied  code in a pre-login context.  I hope
>>>      your sandboxing is good.
>>
>> I don't think we're expecting the Kerberos client implementation to fire
>> up its own web browser.  As with a set-top box or similar device, the
>> URL and code are presented to the user in a prompt.  If this mechanism
>> were used at login time, the user would probably have to run the browser
>> on a different device.
>>
>>> On the interoperability side, the protocol between the KDC  and the
>>> OAuth provider does not appear to be described at all.
>>> You get vendor lockin between a KDC and OAuth provider as far as I can
>>> tell.
>>
>> Preauth mechs don't generally specify back-end protocols; certainly RFC
>> 6560 does not.  The FreeIPA implementation will (to the best of my
>> knowledge) use RADIUS, with the URL and code being presented to the KDC
>> in an Access-Challenge with an accompanying State.  An encrypted
>> PA-FX-COOKIE can be used to remember the state between the first client
>> request and the second.  There are some details that would have to be
>> squared between interoperable implementations, such as the
>> Access-Challenge format and the cookie format.  (MIT documents its
>> encrypted PA-FX-COOKIE facility, but there is likely to be some
>> formatting of the preauth-type-specific cookie contents as well.)
>>
>> Luke wrote:
>>> would the vendor consider defining as a GSS-API mechanism that could 
>>> be used with draft-perez-krb-wg-gss-preauth?
>>
>> I think that would be a significant hurdle.  Note that for a
>> single-threaded KDC, this mechanism is ideally implemented with
>> asynchronous communication between the KDC and the identity provider.  A
>> generic GSSAPI preauth bridge probably can't do that.
> 
> Hi Sam,
> thank you for looking into it. I've been collaborating with Greg on this 
> for a while now and I see he summarized it well.
> 
> We don't have public specification available right now (or not formally 
> committed) since it is all work in progress, but we will have one in the 
> future. If it is required, we can prioritize this tasks.
> 
> The backend use RADIUS (more specifically ipa-otpd from FreeIPA) and 
> works very similar to otp implementation in MIT Kerberos. The very first 
> implementation actually just extended otp with support of 
> Access-Challenge message and Reply-Message and State attributes as Greg 
> already explained.
> 
> Thank you,
> Pavel.


From nobody Thu Nov 18 14:15:30 2021
Return-Path: <hartmans-ietf@mit.edu>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 97BAE3A0AF4 for <kitten@ietfa.amsl.com>; Thu, 18 Nov 2021 14:15:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level: 
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
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 i84xlmOt3v-K for <kitten@ietfa.amsl.com>; Thu, 18 Nov 2021 14:15:24 -0800 (PST)
Received: from mail.suchdamage.org (mail.suchdamage.org [52.9.186.167]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AA52D3A0AF3 for <kitten@ietf.org>; Thu, 18 Nov 2021 14:15:24 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail.suchdamage.org (Postfix) with ESMTP id F0B0C30CAF; Thu, 18 Nov 2021 17:15:23 -0500 (EST)
Received: from mail.suchdamage.org ([127.0.0.1]) by localhost (mail.suchdamage.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eEwf2QnMKwAt; Thu, 18 Nov 2021 17:15:23 -0500 (EST)
Received: from carter-zimmerman.suchdamage.org (71-218-140-158.hlrn.qwest.net [71.218.140.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "laptop", Issuer "laptop" (not verified)) (Authenticated sender: hartmans-laptop) by mail.suchdamage.org (Postfix) with ESMTPSA; Thu, 18 Nov 2021 17:15:23 -0500 (EST)
Received: by carter-zimmerman.suchdamage.org (Postfix, from userid 8042) id F1237196E8C1; Thu, 18 Nov 2021 15:15:22 -0700 (MST)
From: Sam Hartman <hartmans-ietf@mit.edu>
To: Greg Hudson <ghudson@mit.edu>, Sam Hartman <hartmans-ietf@mit.edu>, kitten@ietf.org
Cc: Pavel =?utf-8?Q?B=C5=99ezina?= <pbrezina@redhat.com>
In-Reply-To: <99094d0b-6bc1-d896-4f70-83f2e1696eb3@mit.edu>
References: <0100017d06db6c83-21cbd2ce-f371-48a9-88ce-5b6452842241-000000@email.amazonses.com> <99094d0b-6bc1-d896-4f70-83f2e1696eb3@mit.edu>
Date: Thu, 18 Nov 2021 15:15:22 -0700
Message-ID: <tslczmx6rgl.fsf@suchdamage.org>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/RL4BCuyVuaJP4hPZUGWrKuxFcUE>
Subject: Re: [kitten] Kerberos Preauth Registration for OAuth2 device flow
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Nov 2021 22:15:30 -0000

>>>>> "Greg" == Greg Hudson <ghudson@mit.edu> writes:

    Greg> On 11/9/21 5:39 PM, Sam Hartman wrote:
    >> Basic approach.  The KDC provides the client a URI and a code (or
    >> a URI specific to that authentication interaction.)  The client
    >> spawns a web browser, does stuff, and eventually somehow the
    >> client lets its Kerberos app know that authentication has
    >> happened, and then the KDC goes off to see if it believes that.
    >> 
    >> AS far as I can tell, the reply key is never used (it is
    >> replaced) so a long-term password is not needed.

    Greg> Some additional context: this is essentially the same user
    Greg> experience as one sees when authorizing a set-top box to a
    Greg> video streaming service using OAuth2.  The initial proposal
    Greg> was to extend MIT krb5's FAST OTP implementation to support
    Greg> this on the back end.  
    Greg> Like FAST OTP without must-encrypt-nonce, this mechanism
    Greg> replaces the reply key with the armor key, so that the
    Greg> mechanism can be used in place of a long-term password.

I think you and the person submitting the registration to the IANA are
in the mind set of "This is how we're going to use this," and are
thinking about  the security analysis of that and  of  your intended
usage.

I think my job is to imagine all the ways people might try to use a
protocol like this  and think about those implications.
So, I think my job is to think much more broadly than how you're
thinking.
And some of your responses to me come across  roughly of the form of
"but we weren't going to do that."

If this were an IETF reviewed document, I'd probably say "But someone
probably will; it's the Internet."
For an expert review, though I think it's a lot more relaxed.

I think a couple of things would make me happy to approve this:

1) The registration template submitted to IANA did not actually include
a name for the assigned  value.
I'd like to include Redhat or FreeIPA in the name.
If we do that I think it will make it more clear we're focused on a
specific use case.

2) it sounds like  you eventually plan to release a spec or some
documentation or something.
In most of the cases where I or anyone else brings something up, a fine
response would be to  track that as something to include in eventual
docs.
In effect, to make sure you document restrictions on the scope or
intended use.


    >> 1) It appears to have the same issues with anonymous pkinit that
    >> OTP has.  You probably do not want to use this FAST factor with a
    >> armor ticket you got from anonymous pkinit.  If you do, you need
    >> to verify the KDC's identity elsewhere.

    Greg> If a Kerberos client contains an implementation of
    Greg> unauthenticated PKINIT, I would expect it to also contain some
    Greg> facility for recognizing armor tickets that don't authenticate
    Greg> the KDC, and reject the use of those as armor for FAST OTP
    Greg> (without must-encrypt-nonce) or this mechanism.

Yes, and I think OTP's security considerations talks about that.
I think agreeing this would be something to mention as a constraint
would resolve this concern.

    >> 2) This effectively gives you an arbitrary URI that you have no
    >> way to validate and encourages the user to go authenticate to
    >> that URI.
    >> 
    >> * Appears to be a phishing vector

    Greg> Potentially, as is FAST OTP.  One hopes that it is at least as
    Greg> difficult to fool a user into authenticating to a malicious
    Greg> Kerberos realm as it would be to directly fool the user into
    Greg> authenticating to the malicious URI.

I'm not at all sure this is generally true.
In protocol design we've often found that  adding a new mechanism for
redirects has security implications.

In this case, your trust model is at least more complex than the
traditional trust model of Kerberos because you now need to trust
probably the web PKI to authenticate the URI.

I think this is probably safe in a situation where you have a statically
configured realm.  I'm less sure about a situation where this mechanism
is used with clients that can successfully authenticate to a wide
variety of KDCs all with different trust levels.


I suspect you are making some assumptions about how this will be used
under which this is probably safe.
For example in a relatively closed environment with a single realm that
is also closely connected with the OAuth provider this seems safe.

What I'm hoping for here at a minimum is acknowledgement that  when
you're talking about the security of this scheme you will explain the
assumptions under which phishing is not an issue.

The IETF also provides a great place to discuss those assumptions if you
want to get additional feedback on your security analysis.

    Greg> The user is not being
    Greg> asked to present any additional information of value to the
    Greg> given URI beyond what is necessary to authenticate, since the
    Greg> code is presented by the same authority as the URI.

I agree, but that's not the attack I was envisioning.
I was worried about a case where a user gets a URI from a KDC that they
shouldn't have trusted as much as they do
and authenticates to a URI provided by that KDC.
If I have a strong password with Kerberos, particularly with SPAKE,
authenticating to the wrong KDC doesn't hurt me much.

But this mechanism could be used for converting a federated identity of
some kind into a local identity.
In a case where I don't know the realm where I'm getting a new local
identity well, I could be phished if they give me a URI that is an MITM
for some site where I have an account.

I suspect your use cases for this protocol rule out the sort of
deployments I'm thinking about.
For a non-IETF document I think that's fine, I'm just asking you to
think about and confirm it is secure in your use case and write it down
when you get there.


    >> * Appears to be a malicious code vector.  I'm particularly
    >> concerned about a case where this is part of machine login.
    >> You'd be running potentially attacker supplied code in a
    >> pre-login context.  I hope your sandboxing is good.

    Greg> I don't think we're expecting the Kerberos client
    Greg> implementation to fire up its own web browser.  As with a
    Greg> set-top box or similar device, the URL and code are presented
    Greg> to the user in a prompt.  If this mechanism were used at login
    Greg> time, the user would probably have to run the browser on a
    Greg> different device.

Okay, sounds like another thing you are ruling out of scope
Would you be willing to track and write down when you do describe
security?

    >> On the interoperability side, the protocol between the KDC and
    >> the OAuth provider does not appear to be described at all.  You
    >> get vendor lockin between a KDC and OAuth provider as far as I
    >> can tell.

    Greg> Preauth mechs don't generally specify back-end protocols;
    Greg> certainly RFC 6560 does not.

I think it's the first preauth mechanism where that was an issue.
My thoughts at the time reading the draft was that the kind of tokens
used for OTP were fairly well understood  and it wasn't a big deal.

I think my answer here is that I personally don't mind the  backend
protocol being out of scope, and no one else in the WG seems to mind
either, so it is okay.


So, in conclusion, if nothing else comes up i propose that:

1) We agree on a name for the preauth constant that makes it clear this
is either Redhat or FreeIPA specific or something like that.

2) You track the security concerns and when you eventually produce
documentation explain the use case in a way that scopes it to a use case
where the protocol is safe

3) Without waiting for 2, I approve the registration.


From nobody Thu Nov 18 17:51:50 2021
Return-Path: <kaduk@mit.edu>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F011C3A00D5 for <kitten@ietfa.amsl.com>; Thu, 18 Nov 2021 17:51:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.499
X-Spam-Level: 
X-Spam-Status: No, score=-1.499 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=no autolearn_force=no
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 yFgn2zrGYzS8 for <kitten@ietfa.amsl.com>; Thu, 18 Nov 2021 17:51:47 -0800 (PST)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (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 8741B3A00D4 for <kitten@ietf.org>; Thu, 18 Nov 2021 17:51:47 -0800 (PST)
Received: from kduck.mit.edu ([24.16.140.251]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 1AJ1pdUs030653 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Nov 2021 20:51:44 -0500
Date: Thu, 18 Nov 2021 17:51:38 -0800
From: Benjamin Kaduk <kaduk@mit.edu>
To: Sam Hartman <hartmans-ietf@mit.edu>
Cc: Greg Hudson <ghudson@mit.edu>, kitten@ietf.org, Pavel =?utf-8?Q?B=C5=99ezina?= <pbrezina@redhat.com>
Message-ID: <20211119015138.GK93060@kduck.mit.edu>
References: <0100017d06db6c83-21cbd2ce-f371-48a9-88ce-5b6452842241-000000@email.amazonses.com> <99094d0b-6bc1-d896-4f70-83f2e1696eb3@mit.edu> <tslczmx6rgl.fsf@suchdamage.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <tslczmx6rgl.fsf@suchdamage.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/38P4QE3B8QtJPzMD92vRbG39lW8>
Subject: Re: [kitten] Kerberos Preauth Registration for OAuth2 device flow
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Nov 2021 01:51:50 -0000

Thanks all for the great discussion so far.

On Thu, Nov 18, 2021 at 03:15:22PM -0700, Sam Hartman wrote:
> >>>>> "Greg" == Greg Hudson <ghudson@mit.edu> writes:
> 
>     Greg> On 11/9/21 5:39 PM, Sam Hartman wrote:
>     >> On the interoperability side, the protocol between the KDC and
>     >> the OAuth provider does not appear to be described at all.  You
>     >> get vendor lockin between a KDC and OAuth provider as far as I
>     >> can tell.
> 
>     Greg> Preauth mechs don't generally specify back-end protocols;
>     Greg> certainly RFC 6560 does not.
> 
> I think it's the first preauth mechanism where that was an issue.
> My thoughts at the time reading the draft was that the kind of tokens
> used for OTP were fairly well understood  and it wasn't a big deal.
> 
> I think my answer here is that I personally don't mind the  backend
> protocol being out of scope, and no one else in the WG seems to mind
> either, so it is okay.

While I personally would prefer to specify the backend protocol, I think
that the current trends in the IETF are that this kind of backend protocol
does not need to be fully specified.

-Ben


From nobody Fri Nov 19 06:41:59 2021
Return-Path: <pbrezina@redhat.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2F1B83A0101 for <kitten@ietfa.amsl.com>; Fri, 19 Nov 2021 06:41:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.651
X-Spam-Level: 
X-Spam-Status: No, score=-4.651 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.701, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-1.852, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.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 WXlvsWDixZMt for <kitten@ietfa.amsl.com>; Fri, 19 Nov 2021 06:41:56 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 3F0D83A00D8 for <kitten@ietf.org>; Fri, 19 Nov 2021 06:41:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637332915; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n6q6gngIh87Uo6m/NuRmLHtP9L+LGlvh6rOchrbuCyk=; b=cbpoQ/MYxA+dDHV+7LvizQx4S8W88vW5QSzSMd5mIVDrOcNe5FU8v5sTxVUZakZiERDrJw zU9fvKULHRVKAAt/buNdtVcJmtnmTz+dZgAmN4JdHyxxkC432X8hPWF0DLyAJ4fsL9OCYL Jn5Z24NkGwX0Xb6IcnXSpSh0ipgRnc0=
Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-81-wzSfrsT7PQq8YFOW4uHbZA-1; Fri, 19 Nov 2021 09:41:53 -0500
X-MC-Unique: wzSfrsT7PQq8YFOW4uHbZA-1
Received: by mail-wr1-f69.google.com with SMTP id k8-20020a5d5248000000b001763e7c9ce5so1817762wrc.22 for <kitten@ietf.org>; Fri, 19 Nov 2021 06:41:53 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=n6q6gngIh87Uo6m/NuRmLHtP9L+LGlvh6rOchrbuCyk=; b=Q7vz3cUephc1stp97FwK/4VIQwjFQPvyp8z0CiCPo/DOIvh3it4mRezGY0aXP8XoKq OS79QSGAeeCN3bCqCCd4MvId7osFuqmm1xBx7jPBbEKbC6CcKTjJ5HmrrVVDkAwt2lev PTc+btex407WSs3MrYiaokxDX7OZAew7qb1mCQXfQ4wSXVB5aix3vUX2XVd1YHeET3rd HrOlgdHRWxCuxLygK4YzpFnSpDcMqVQl/pvLvccwNiSRLPZP7HSg53ug/WAAdcS2lPbN emhJU51QapBTEfX9oJEwpyDR7GLX0p3VJ6cgBbjVNBemUOZj90U9sylktI0FgC9l+AiE FjWQ==
X-Gm-Message-State: AOAM532byCA04I9Dt8KycZgHDAoKwiMT+jH91b6F3HgcnYfRoXB49SBd clc1IQ5vmQ2Qob+cP5V42+bySsfzmSZnqtKw2V/cGI9/SslMa4u7+oh5kRPiSxOF9M1BEudtOLC PtvPZydo=
X-Received: by 2002:a5d:64c3:: with SMTP id f3mr7811884wri.321.1637332912331;  Fri, 19 Nov 2021 06:41:52 -0800 (PST)
X-Google-Smtp-Source: ABdhPJy4aPNWkoTDw0l8v+Vn4c4EiDA4Y300kxtrk/Sy1n28SHvbeztQJz+Xuo8GDwHqvREaFK6tvw==
X-Received: by 2002:a5d:64c3:: with SMTP id f3mr7811844wri.321.1637332912024;  Fri, 19 Nov 2021 06:41:52 -0800 (PST)
Received: from [10.0.1.6] ([83.240.62.52]) by smtp.gmail.com with ESMTPSA id f7sm15911393wmg.6.2021.11.19.06.41.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Nov 2021 06:41:51 -0800 (PST)
Message-ID: <775cc45b-51d8-8867-a19b-a7e55e2794c5@redhat.com>
Date: Fri, 19 Nov 2021 15:41:51 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0
To: Sam Hartman <hartmans-ietf@mit.edu>, Greg Hudson <ghudson@mit.edu>, kitten@ietf.org
References: <0100017d06db6c83-21cbd2ce-f371-48a9-88ce-5b6452842241-000000@email.amazonses.com> <99094d0b-6bc1-d896-4f70-83f2e1696eb3@mit.edu> <tslczmx6rgl.fsf@suchdamage.org>
From: =?UTF-8?Q?Pavel_B=c5=99ezina?= <pbrezina@redhat.com>
In-Reply-To: <tslczmx6rgl.fsf@suchdamage.org>
Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbrezina@redhat.com
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/BBYYrrhqiNLAsLJmIIenOec_sds>
Subject: Re: [kitten] Kerberos Preauth Registration for OAuth2 device flow
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Nov 2021 14:41:58 -0000

On 11/18/21 23:15, Sam Hartman wrote:
>>>>>> "Greg" == Greg Hudson <ghudson@mit.edu> writes:
> 
>      Greg> On 11/9/21 5:39 PM, Sam Hartman wrote:
>      >> Basic approach.  The KDC provides the client a URI and a code (or
>      >> a URI specific to that authentication interaction.)  The client
>      >> spawns a web browser, does stuff, and eventually somehow the
>      >> client lets its Kerberos app know that authentication has
>      >> happened, and then the KDC goes off to see if it believes that.
>      >>
>      >> AS far as I can tell, the reply key is never used (it is
>      >> replaced) so a long-term password is not needed.
> 
>      Greg> Some additional context: this is essentially the same user
>      Greg> experience as one sees when authorizing a set-top box to a
>      Greg> video streaming service using OAuth2.  The initial proposal
>      Greg> was to extend MIT krb5's FAST OTP implementation to support
>      Greg> this on the back end.
>      Greg> Like FAST OTP without must-encrypt-nonce, this mechanism
>      Greg> replaces the reply key with the armor key, so that the
>      Greg> mechanism can be used in place of a long-term password.
> 
> I think you and the person submitting the registration to the IANA are
> in the mind set of "This is how we're going to use this," and are
> thinking about  the security analysis of that and  of  your intended
> usage.
> 
> I think my job is to imagine all the ways people might try to use a
> protocol like this  and think about those implications.
> So, I think my job is to think much more broadly than how you're
> thinking.
> And some of your responses to me come across  roughly of the form of
> "but we weren't going to do that."
> 
> If this were an IETF reviewed document, I'd probably say "But someone
> probably will; it's the Internet."
> For an expert review, though I think it's a lot more relaxed.
> 
> I think a couple of things would make me happy to approve this:
> 
> 1) The registration template submitted to IANA did not actually include
> a name for the assigned  value.
> I'd like to include Redhat or FreeIPA in the name.
> If we do that I think it will make it more clear we're focused on a
> specific use case.
> 
> 2) it sounds like  you eventually plan to release a spec or some
> documentation or something.
> In most of the cases where I or anyone else brings something up, a fine
> response would be to  track that as something to include in eventual
> docs.
> In effect, to make sure you document restrictions on the scope or
> intended use.
> 
> 
>      >> 1) It appears to have the same issues with anonymous pkinit that
>      >> OTP has.  You probably do not want to use this FAST factor with a
>      >> armor ticket you got from anonymous pkinit.  If you do, you need
>      >> to verify the KDC's identity elsewhere.
> 
>      Greg> If a Kerberos client contains an implementation of
>      Greg> unauthenticated PKINIT, I would expect it to also contain some
>      Greg> facility for recognizing armor tickets that don't authenticate
>      Greg> the KDC, and reject the use of those as armor for FAST OTP
>      Greg> (without must-encrypt-nonce) or this mechanism.
> 
> Yes, and I think OTP's security considerations talks about that.
> I think agreeing this would be something to mention as a constraint
> would resolve this concern.
> 
>      >> 2) This effectively gives you an arbitrary URI that you have no
>      >> way to validate and encourages the user to go authenticate to
>      >> that URI.
>      >>
>      >> * Appears to be a phishing vector
> 
>      Greg> Potentially, as is FAST OTP.  One hopes that it is at least as
>      Greg> difficult to fool a user into authenticating to a malicious
>      Greg> Kerberos realm as it would be to directly fool the user into
>      Greg> authenticating to the malicious URI.
> 
> I'm not at all sure this is generally true.
> In protocol design we've often found that  adding a new mechanism for
> redirects has security implications.
> 
> In this case, your trust model is at least more complex than the
> traditional trust model of Kerberos because you now need to trust
> probably the web PKI to authenticate the URI.
> 
> I think this is probably safe in a situation where you have a statically
> configured realm.  I'm less sure about a situation where this mechanism
> is used with clients that can successfully authenticate to a wide
> variety of KDCs all with different trust levels.
> 
> 
> I suspect you are making some assumptions about how this will be used
> under which this is probably safe.
> For example in a relatively closed environment with a single realm that
> is also closely connected with the OAuth provider this seems safe.
> 
> What I'm hoping for here at a minimum is acknowledgement that  when
> you're talking about the security of this scheme you will explain the
> assumptions under which phishing is not an issue.
> 
> The IETF also provides a great place to discuss those assumptions if you
> want to get additional feedback on your security analysis.
> 
>      Greg> The user is not being
>      Greg> asked to present any additional information of value to the
>      Greg> given URI beyond what is necessary to authenticate, since the
>      Greg> code is presented by the same authority as the URI.
> 
> I agree, but that's not the attack I was envisioning.
> I was worried about a case where a user gets a URI from a KDC that they
> shouldn't have trusted as much as they do
> and authenticates to a URI provided by that KDC.
> If I have a strong password with Kerberos, particularly with SPAKE,
> authenticating to the wrong KDC doesn't hurt me much.
> 
> But this mechanism could be used for converting a federated identity of
> some kind into a local identity.
> In a case where I don't know the realm where I'm getting a new local
> identity well, I could be phished if they give me a URI that is an MITM
> for some site where I have an account.
> 
> I suspect your use cases for this protocol rule out the sort of
> deployments I'm thinking about.
> For a non-IETF document I think that's fine, I'm just asking you to
> think about and confirm it is secure in your use case and write it down
> when you get there.
> 
> 
>      >> * Appears to be a malicious code vector.  I'm particularly
>      >> concerned about a case where this is part of machine login.
>      >> You'd be running potentially attacker supplied code in a
>      >> pre-login context.  I hope your sandboxing is good.
> 
>      Greg> I don't think we're expecting the Kerberos client
>      Greg> implementation to fire up its own web browser.  As with a
>      Greg> set-top box or similar device, the URL and code are presented
>      Greg> to the user in a prompt.  If this mechanism were used at login
>      Greg> time, the user would probably have to run the browser on a
>      Greg> different device.
> 
> Okay, sounds like another thing you are ruling out of scope
> Would you be willing to track and write down when you do describe
> security?
> 
>      >> On the interoperability side, the protocol between the KDC and
>      >> the OAuth provider does not appear to be described at all.  You
>      >> get vendor lockin between a KDC and OAuth provider as far as I
>      >> can tell.
> 
>      Greg> Preauth mechs don't generally specify back-end protocols;
>      Greg> certainly RFC 6560 does not.
> 
> I think it's the first preauth mechanism where that was an issue.
> My thoughts at the time reading the draft was that the kind of tokens
> used for OTP were fairly well understood  and it wasn't a big deal.
> 
> I think my answer here is that I personally don't mind the  backend
> protocol being out of scope, and no one else in the WG seems to mind
> either, so it is okay.
> 
> 
> So, in conclusion, if nothing else comes up i propose that:

Hi Sam,

thank you for thorough reply.

> 1) We agree on a name for the preauth constant that makes it clear this
> is either Redhat or FreeIPA specific or something like that.

The proposal write-up contained a name PA-IDP-OAUTH2. If you think it is 
better to show Red Hat/FreeAPI affiliation we can use the name:

PA-REDHAT-IDP-OAUTH2

> 2) You track the security concerns and when you eventually produce
> documentation explain the use case in a way that scopes it to a use case
> where the protocol is safe

I agree.

> 3) Without waiting for 2, I approve the registration.

We will prioritize and focus on describing the preauthentication method 
in more detail, including the backend specifics and security analyses in 
a publicly available document. Once the work is finished, this document 
will be presented either in FreeIPA or SSSD documentation.

If you are not comfortable with the approval without this document and 
further discussion, we are certainly willing to wait and provide more 
information.

Thank you,
Pavel.


From nobody Sun Nov 21 11:19:45 2021
Return-Path: <ghudson@mit.edu>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2A7653A0541 for <kitten@ietfa.amsl.com>; Sun, 21 Nov 2021 11:19:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.351
X-Spam-Level: 
X-Spam-Status: No, score=-3.351 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, NICE_REPLY_A=-1.852, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
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 7v2q0I2IQNVD for <kitten@ietfa.amsl.com>; Sun, 21 Nov 2021 11:19:40 -0800 (PST)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (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 A76AC3A00D7 for <kitten@ietf.org>; Sun, 21 Nov 2021 11:19:40 -0800 (PST)
Received: from [18.30.133.57] ([18.30.133.57]) (authenticated bits=0) (User authenticated as ghudson@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 1ALJJaEd020889 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Sun, 21 Nov 2021 14:19:37 -0500
To: Sam Hartman <hartmans-ietf@mit.edu>, kitten@ietf.org
Cc: =?UTF-8?Q?Pavel_B=c5=99ezina?= <pbrezina@redhat.com>
References: <0100017d06db6c83-21cbd2ce-f371-48a9-88ce-5b6452842241-000000@email.amazonses.com> <99094d0b-6bc1-d896-4f70-83f2e1696eb3@mit.edu> <0100017d351e67c9-dc6040a5-6e14-4d36-ba07-815290f9f8c3-000000@email.amazonses.com>
From: Greg Hudson <ghudson@mit.edu>
Message-ID: <3ff4dce4-b9a3-8324-ae15-8951608aede3@mit.edu>
Date: Sun, 21 Nov 2021 14:19:36 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <0100017d351e67c9-dc6040a5-6e14-4d36-ba07-815290f9f8c3-000000@email.amazonses.com>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/qoKlYzfHAWred6uNyt620Wi4q84>
Subject: Re: [kitten] Kerberos Preauth Registration for OAuth2 device flow
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Nov 2021 19:19:43 -0000

On 11/18/21 5:15 PM, Sam Hartman wrote:
> 1) We agree on a name for the preauth constant that makes it clear this
> is either Redhat or FreeIPA specific or something like that.
> 
> 2) You track the security concerns and when you eventually produce
> documentation explain the use case in a way that scopes it to a use case
> where the protocol is safe
> 
> 3) Without waiting for 2, I approve the registration.

I think this is reasonable, and the name PA-REDHAT-IDP-OAUTH2 proposed
by Pavel seems fine.


From nobody Mon Nov 22 16:24:40 2021
Return-Path: <hartmans-ietf@mit.edu>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 83F103A0B23 for <kitten@ietfa.amsl.com>; Mon, 22 Nov 2021 16:24:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level: 
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
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 ItbdzHgeCzB7 for <kitten@ietfa.amsl.com>; Mon, 22 Nov 2021 16:24:34 -0800 (PST)
Received: from mail.suchdamage.org (mail.suchdamage.org [52.9.186.167]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 318F53A0B12 for <kitten@ietf.org>; Mon, 22 Nov 2021 16:24:34 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail.suchdamage.org (Postfix) with ESMTP id 4BFA930CEB; Mon, 22 Nov 2021 19:24:33 -0500 (EST)
Received: from mail.suchdamage.org ([127.0.0.1]) by localhost (mail.suchdamage.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IyJybOkiMcDs; Mon, 22 Nov 2021 19:24:33 -0500 (EST)
Received: from carter-zimmerman.suchdamage.org (71-218-140-158.hlrn.qwest.net [71.218.140.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "laptop", Issuer "laptop" (not verified)) (Authenticated sender: hartmans-laptop) by mail.suchdamage.org (Postfix) with ESMTPSA; Mon, 22 Nov 2021 19:24:33 -0500 (EST)
Received: by carter-zimmerman.suchdamage.org (Postfix, from userid 8042) id 901F2196E8C1; Mon, 22 Nov 2021 17:24:32 -0700 (MST)
From: Sam Hartman <hartmans-ietf@mit.edu>
To: Greg Hudson <ghudson@mit.edu>, Sam Hartman <hartmans-ietf@mit.edu>, kitten@ietf.org
Cc: Pavel =?utf-8?Q?B=C5=99ezina?= <pbrezina@redhat.com>
In-Reply-To: <3ff4dce4-b9a3-8324-ae15-8951608aede3@mit.edu>
References: <0100017d06db6c83-21cbd2ce-f371-48a9-88ce-5b6452842241-000000@email.amazonses.com> <99094d0b-6bc1-d896-4f70-83f2e1696eb3@mit.edu> <0100017d351e67c9-dc6040a5-6e14-4d36-ba07-815290f9f8c3-000000@email.amazonses.com> <3ff4dce4-b9a3-8324-ae15-8951608aede3@mit.edu>
Date: Mon, 22 Nov 2021 17:24:27 -0700
Message-ID: <tsl5ysj67no.fsf@suchdamage.org>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/AJbZsLQ8Kgs8VEX4xhjQWxL4siA>
Subject: Re: [kitten] Kerberos Preauth Registration for OAuth2 device flow
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Nov 2021 00:24:39 -0000

--=-=-=
Content-Type: text/plain


Do you have thoughts on a value?
167?

--Sam

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSj2jRwbAdKzGY/4uAsbEw8qDeGdAUCYZw0uwAKCRAsbEw8qDeG
dBrMAP0fZPSZEvt1ogx3amPWiXtE21B7JteEkJKKIFsfq+uhIwEAxuU+EkPEB43X
8BPbsloumjbXq7vMNXdy3qz0/BnccQk=
=+oSr
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Mon Nov 22 22:37:16 2021
Return-Path: <ghudson@mit.edu>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 625433A0801 for <kitten@ietfa.amsl.com>; Mon, 22 Nov 2021 22:37:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.351
X-Spam-Level: 
X-Spam-Status: No, score=-3.351 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, NICE_REPLY_A=-1.852, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
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 QlOh89Tz9VYV for <kitten@ietfa.amsl.com>; Mon, 22 Nov 2021 22:37:11 -0800 (PST)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (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 817403A07FC for <kitten@ietf.org>; Mon, 22 Nov 2021 22:37:11 -0800 (PST)
Received: from [18.30.128.104] ([18.30.128.104]) (authenticated bits=0) (User authenticated as ghudson@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 1AN6b7U2031731 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 23 Nov 2021 01:37:09 -0500
To: Sam Hartman <hartmans-ietf@mit.edu>, kitten@ietf.org
Cc: =?UTF-8?Q?Pavel_B=c5=99ezina?= <pbrezina@redhat.com>
References: <0100017d06db6c83-21cbd2ce-f371-48a9-88ce-5b6452842241-000000@email.amazonses.com> <99094d0b-6bc1-d896-4f70-83f2e1696eb3@mit.edu> <0100017d351e67c9-dc6040a5-6e14-4d36-ba07-815290f9f8c3-000000@email.amazonses.com> <3ff4dce4-b9a3-8324-ae15-8951608aede3@mit.edu> <0100017d4a2e16b3-65c1ab56-2ef1-427c-82b0-6206efb1e67e-000000@email.amazonses.com>
From: Greg Hudson <ghudson@mit.edu>
Message-ID: <edfa57c8-8544-fce4-c5dc-7d54d5685b4b@mit.edu>
Date: Tue, 23 Nov 2021 01:37:06 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <0100017d4a2e16b3-65c1ab56-2ef1-427c-82b0-6206efb1e67e-000000@email.amazonses.com>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/ldSiiyX5_a7dqb_-6aVauaFrt2U>
Subject: Re: [kitten] Kerberos Preauth Registration for OAuth2 device flow
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Nov 2021 06:37:15 -0000

On 11/22/21 7:24 PM, Sam Hartman wrote:> Do you have thoughts on a value?
> 167?

167 is PA-PAC-OPTIONS (MS-KILE 3.1.5.1).  Given Microsoft's history of
using types without registration, I would avoid anything in the 160-180
space as a practical matter.

I haven't heard of any conflicts with SPAKE being 151, so I think 152
should be safe.  But I would also be fine with picking a somewhat higher
base for registered but non-IETF-standardized types.


From nobody Fri Nov 26 05:01:29 2021
Return-Path: <pbrezina@redhat.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0CFAA3A0115 for <kitten@ietfa.amsl.com>; Fri, 26 Nov 2021 05:01:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.654
X-Spam-Level: 
X-Spam-Status: No, score=-4.654 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.701, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-1.852, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.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 GEf8EtlFIkjd for <kitten@ietfa.amsl.com>; Fri, 26 Nov 2021 05:01:24 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 F231F3A0105 for <kitten@ietf.org>; Fri, 26 Nov 2021 05:01:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637931682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yK3nJNfw8N4M/xToknjZ/U0CrB9c7DfrgBPYrICdNP4=; b=HwJSKTRqxmt+olFuryWctaq+Vs7rlrvZLSFLbwu3sA0LgXLzR9YliorUh4ar7ePmxxCkLG 6gVlrbb8ENT+ltvl+EswuUzLxsbAh7Qd2lADdVEPIB9rv6SO13diZu4ct6DW3dhBrlvLxo WNzYJFFC+BeG3P7lnogaj7pHKvLSOCM=
Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-430-St64CGyXOw2N7uQMKQHzrA-1; Fri, 26 Nov 2021 08:01:19 -0500
X-MC-Unique: St64CGyXOw2N7uQMKQHzrA-1
Received: by mail-wr1-f71.google.com with SMTP id o4-20020adfca04000000b0018f07ad171aso1671542wrh.20 for <kitten@ietf.org>; Fri, 26 Nov 2021 05:01:18 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=yK3nJNfw8N4M/xToknjZ/U0CrB9c7DfrgBPYrICdNP4=; b=Qs+XBcNavnj/i0raDu4sPeA2lx+XayVMOkoHpnExVvOs9PFbu1Scpj96wzyrrtBPzP K5EpyYVeKNKCP+fBChJGP2NeTodZlsmD9MyM840eNgRbinzaDTrbsEe8z/sPrJiS75m6 N2Gk/BN7MnyK8TtuSpizycpBwE6KIHnS8iPMhEOXsbIzbgDQklSS8H82IffGz7KPgXXj nkhkPI+ngTr+j6EGtRRD3xJ3eEe5g9lKfNYnoTx4iYM++XnwCDlLrpG++eZhcvH3wLpN SAtRIHrj38ezbDaUC+4deZrs8LMc3rlcNfcsB8gB6PIQLUdAtuH0dIvsQVxvp4cKIyQ5 +fSw==
X-Gm-Message-State: AOAM531jVfEs67ioMmAG4+fFe45gaxzKtyWbEfXHC7ePb2lsh4dfWUVr ENmRxH3OGepVw2RYnKotiJN2mCF9y1eYpFVCVoUg/rNVB1yWAtsUjmXqOlN6woHSgRBBNV5t/5v 7ZedKId0=
X-Received: by 2002:a1c:8015:: with SMTP id b21mr15070565wmd.161.1637931677820;  Fri, 26 Nov 2021 05:01:17 -0800 (PST)
X-Google-Smtp-Source: ABdhPJwke/9P4rv9nf4RbhRxnKCKKxwA+OE0CRz6oIBL7AxLK25Sfsv9h6BeSrWwS3DvOlYyOilXnQ==
X-Received: by 2002:a1c:8015:: with SMTP id b21mr15070536wmd.161.1637931677636;  Fri, 26 Nov 2021 05:01:17 -0800 (PST)
Received: from [10.0.1.6] ([83.240.62.52]) by smtp.gmail.com with ESMTPSA id l8sm11820008wmc.40.2021.11.26.05.01.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Nov 2021 05:01:17 -0800 (PST)
Message-ID: <dd0259a1-35af-778d-c46d-48613bf4a484@redhat.com>
Date: Fri, 26 Nov 2021 14:01:16 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0
To: Greg Hudson <ghudson@mit.edu>, Sam Hartman <hartmans-ietf@mit.edu>, kitten@ietf.org
References: <0100017d06db6c83-21cbd2ce-f371-48a9-88ce-5b6452842241-000000@email.amazonses.com> <99094d0b-6bc1-d896-4f70-83f2e1696eb3@mit.edu> <0100017d351e67c9-dc6040a5-6e14-4d36-ba07-815290f9f8c3-000000@email.amazonses.com> <3ff4dce4-b9a3-8324-ae15-8951608aede3@mit.edu> <0100017d4a2e16b3-65c1ab56-2ef1-427c-82b0-6206efb1e67e-000000@email.amazonses.com> <edfa57c8-8544-fce4-c5dc-7d54d5685b4b@mit.edu>
From: =?UTF-8?Q?Pavel_B=c5=99ezina?= <pbrezina@redhat.com>
In-Reply-To: <edfa57c8-8544-fce4-c5dc-7d54d5685b4b@mit.edu>
Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbrezina@redhat.com
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/obPhQKgyPgT7ZJDd8mY8SemY72E>
Subject: Re: [kitten] Kerberos Preauth Registration for OAuth2 device flow
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Nov 2021 13:01:28 -0000

On 11/23/21 07:37, Greg Hudson wrote:
> On 11/22/21 7:24 PM, Sam Hartman wrote:> Do you have thoughts on a value?
>> 167?
> 
> 167 is PA-PAC-OPTIONS (MS-KILE 3.1.5.1).  Given Microsoft's history of
> using types without registration, I would avoid anything in the 160-180
> space as a practical matter.
> 
> I haven't heard of any conflicts with SPAKE being 151, so I think 152
> should be safe.  But I would also be fine with picking a somewhat higher
> base for registered but non-IETF-standardized types.

I'm fine with any number, but using higher for non-standard types sounds 
like a reasonable thing to do.


From nobody Fri Nov 26 14:49:22 2021
Return-Path: <hartmans-ietf@mit.edu>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B0AAB3A083B for <kitten@ietfa.amsl.com>; Fri, 26 Nov 2021 14:49:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level: 
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
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 6DcKbMPJ9nWk for <kitten@ietfa.amsl.com>; Fri, 26 Nov 2021 14:49:17 -0800 (PST)
Received: from mail.suchdamage.org (mail.suchdamage.org [52.9.186.167]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7868F3A083A for <kitten@ietf.org>; Fri, 26 Nov 2021 14:49:17 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail.suchdamage.org (Postfix) with ESMTP id 6BB1530D2D; Fri, 26 Nov 2021 17:49:16 -0500 (EST)
Received: from mail.suchdamage.org ([127.0.0.1]) by localhost (mail.suchdamage.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zwHQJhcLH9l5; Fri, 26 Nov 2021 17:49:16 -0500 (EST)
Received: from carter-zimmerman.suchdamage.org (71-218-140-158.hlrn.qwest.net [71.218.140.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "laptop", Issuer "laptop" (not verified)) (Authenticated sender: hartmans-laptop) by mail.suchdamage.org (Postfix) with ESMTPSA; Fri, 26 Nov 2021 17:49:16 -0500 (EST)
Received: by carter-zimmerman.suchdamage.org (Postfix, from userid 8042) id 9D0A218F9621; Fri, 26 Nov 2021 15:49:14 -0700 (MST)
From: Sam Hartman <hartmans-ietf@mit.edu>
To: iana-prot-param-comment@iana.org
Cc: hartmans-ietf@mit.edu, kitten@ietf.org
In-Reply-To: <rt-4.4.3-14227-1636160774-60.1215829-9-0@icann.org>
References: <RT-Ticket-1215829@icann.org> <3c51mk00st-1@ppa3.lax.icann.org> <rt-4.4.3-14227-1636160774-60.1215829-9-0@icann.org>
Date: Fri, 26 Nov 2021 15:49:14 -0700
Message-ID: <tsltufy353p.fsf@suchdamage.org>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/MoUZ_2kTPA5URJcRxvxjyBTGwao>
Subject: Re: [kitten] [IANA #1215829] Request for Assignment (kerberos-parameters)
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Nov 2021 22:49:22 -0000

>>>>> "Amanda" == Amanda Baber via RT <iana-prot-param-comment@iana.org> writes:

We had a discussion of this registration on the kitten list which has
now settled.

    Amanda> Hi Sam, IANA has received a request to add an entry to the
    Amanda> Kerberos Pre-authentication and Typed Data registry, as
    Amanda> described below.

    Amanda> If this is OK to register, we have two questions:

I approve the registration.

    Amanda> 1) Which number should we assign? 26-29, 32-40, 42-100, 110,
    Amanda> 113-127, 139-140, 152-164, and values greater than 166 are
    Amanda> all available.

Value 152.

    Amanda> 2) What name should we use in the "Value" field?
  PA-REDHAT-IDP-OAUTH2

