From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CC+hNgwhyWAlfgAAgWs5BA (envelope-from ) for ; Tue, 15 Jun 2021 23:52:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8OUzMgwhyWC2DgAAB5/wlQ (envelope-from ) for ; Tue, 15 Jun 2021 21:52:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 084DC11DDC for ; Tue, 15 Jun 2021 23:52:12 +0200 (CEST) Received: from localhost ([::1]:33374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltGyh-0002hq-08 for larch@yhetil.org; Tue, 15 Jun 2021 17:52:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltGyY-0002h5-F8 for bug-guix@gnu.org; Tue, 15 Jun 2021 17:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39425) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltGyY-0005G1-7V for bug-guix@gnu.org; Tue, 15 Jun 2021 17:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ltGyX-0004eO-Ox for bug-guix@gnu.org; Tue, 15 Jun 2021 17:52:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49035: TLS downgrade at bitbucket.org Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 15 Jun 2021 21:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49035 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 49035@debbugs.gnu.org Received: via spool by 49035-submit@debbugs.gnu.org id=B49035.162379388017789 (code B ref 49035); Tue, 15 Jun 2021 21:52:01 +0000 Received: (at 49035) by debbugs.gnu.org; 15 Jun 2021 21:51:20 +0000 Received: from localhost ([127.0.0.1]:50971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltGxr-0004cq-W4 for submit@debbugs.gnu.org; Tue, 15 Jun 2021 17:51:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltGxp-0004cW-JH for 49035@debbugs.gnu.org; Tue, 15 Jun 2021 17:51:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43676) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltGxi-0004nI-TM; Tue, 15 Jun 2021 17:51:10 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33584 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltGxi-0006Si-Ej; Tue, 15 Jun 2021 17:51:10 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <871r93v665.fsf@inria.fr> <87pmwns3of.fsf@gnu.org> Date: Tue, 15 Jun 2021 23:51:08 +0200 In-Reply-To: <87pmwns3of.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 15 Jun 2021 14:38:56 +0200") Message-ID: <87eed2re43.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Emmanuel Agullo , gnutls-help@lists.gnutls.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623793932; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=RU2qbRe+bRUhsZZJELU1OpeOISH2wYKdRn/CiGGI/18=; b=Pjv9FlXSHZKA1Kr+7rwO18vwQHxrDOaYvYTHY9AUqunoQeMNU+d29tc1AlS6Wm8xY20Suz FeaWYNDQrUvl+44T0TfJGPBjoB/mYiVu9V+a2PR0+LGD0BYVYptRhkwnMs8eQuv7jRbtr9 qjO8IAuyZ23+9KnQL4imrm0SdotUiWGuycHLhZ/hfyBZSzboWg3dUuF5JOYvvUuj9nJQ+z OYsa4qn1hCFzLebWzN5abuRVKeTDxy1yLkAo9rKMKSo5Ew+uaT6I0pIHXO0FozDePx2rJ8 45blmvbEieLT6xVsTH2BfYjMCsknWpt1qxNY2TXiAmXyw2a4oIHwX2vJJz6wgQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623793932; a=rsa-sha256; cv=none; b=SZwZPMvQEGnQDTw1vFfwUI5wFm7II8/H3h+c28/E/eLmX8Ar/q/YQoqWI4tbY6yaRihyjN bZuAjeu14i7b8Hk1W+ADuqBD9/mD3cLJymZV0Fzm36ImK61irGesMYcih0JEsDxoHaiUZm /DOZOJ9fpYZY9g9iptYS2FfalcEORTuur1zZo1dXIb1KMCG6Mr437Y4aW9oPUsFE6MMRCp hngDwf89gyNy9iOgzJy7qa+jRnthscYt9RmdDebdoTzS18XbUV1cumUwcrTtLohbfXZ7om 7KhZYyZ9sNcnkkO33fZ4UqxMMjyoV+QHDSSAau6QEqPXs0UigZ/dn1d/TNz8Eg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 084DC11DDC X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: J5c0QjLCPqzh Hi, (+Cc: gnutls-help; this is about a TLS 1.3=E2=86=921.2 downgrade at bitbucket.org, see for context.) Ludovic Court=C3=A8s skribis: > And indeed, cURL 7.77 (the replacement) exhibits the bogus behavior: > > $ guix environment -CN --no-grafts --ad-hoc curl@7.77 nss-certs -- curl h= ttps://bitbucket.org > /dev/null > % Total % Received % Xferd Average Speed Time Time Time C= urrent > Dload Upload Total Spent Left S= peed > 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- = 0 > curl: (35) gnutls_handshake() failed: An illegal parameter has been recei= ved. > $ guix environment -CN --no-grafts --ad-hoc curl@7.74 nss-certs -- curl h= ttps://bitbucket.org > /dev/null > % Total % Received % Xferd Average Speed Time Time Time C= urrent > Dload Upload Total Spent Left S= peed > 100 75735 100 75735 0 0 134k 0 --:--:-- --:--:-- --:--:-- = 134k So these two cURL versions use different TLS priority strings; here=E2=80= =99s the one that cURL 7.77 uses (bad) vs. the one that 7.74 uses (good): --8<---------------cut here---------------start------------->8--- $ gnutls-cli --priority=3D"NORMAL:-ARCFOUR-128:-CTYPE-ALL:+CTYPE-X509:-VERS= -SSL3.0:-VERS-TLS-ALL:+VERS-TLS1.0:+VERS-TLS1.1:+VERS-TLS1.2:+VERS-TLS1.3" = -p https bitbucket.org Processed 444 CA certificate(s). Resolving 'bitbucket.org:https'... Connecting to '2406:da00:ff00::6b17:d1f5:443'... |<1>| Detected downgrade to TLS 1.2 from TLS 1.3 *** Fatal error: An illegal parameter has been received. $ gnutls-cli --priority=3D"NORMAL:-ARCFOUR-128:-CTYPE-ALL:+CTYPE-X509:-VERS= -SSL3.0" -p https bitbucket.org Processed 444 CA certificate(s). Resolving 'bitbucket.org:https'... Connecting to '2406:da00:ff00::6b17:d1f5:443'... - Certificate type: X.509 - Got a certificate list of 2 certificates. - Certificate[0] info: - subject `CN=3Dbitbucket.org,OU=3DBitbucket,O=3DAtlassian\, Inc.,L=3DSan = Francisco,ST=3DCalifornia,C=3DUS,serialNumber=3D3928449,jurisdictionOfIncor= porationStateOrProvinceName=3DDelaware,jurisdictionOfIncorporationCountryNa= me=3DUS,businessCategory=3DPrivate Organization', issuer `CN=3DDigiCert SHA= 2 Extended Validation Server CA,OU=3Dwww.digicert.com,O=3DDigiCert Inc,C=3D= US', serial 0x040c19f4e9ba36e333316834b8908235, EC/ECDSA key 256 bits, sign= ed using RSA-SHA256, activated `2020-03-27 00:00:00 UTC', expires `2022-05-= 23 12:00:00 UTC', pin-sha256=3D"nFuN2gwclU/9rBe3vz/UUe48hIdL5wLVY8Zke9vApM0= =3D" Public Key ID: sha1:5f7c6de5e52a6bc39dfdcd5230220f1a7957772b sha256:9c5b8dda0c1c954ffdac17b7bf3fd451ee3c84874be702d563c6647bdbc0a4cd Public Key PIN: pin-sha256:nFuN2gwclU/9rBe3vz/UUe48hIdL5wLVY8Zke9vApM0=3D - Certificate[1] info: - subject `CN=3DDigiCert SHA2 Extended Validation Server CA,OU=3Dwww.digic= ert.com,O=3DDigiCert Inc,C=3DUS', issuer `CN=3DDigiCert High Assurance EV R= oot CA,OU=3Dwww.digicert.com,O=3DDigiCert Inc,C=3DUS', serial 0x0c79a944b08= c11952092615fe26b1d83, RSA key 2048 bits, signed using RSA-SHA256, activate= d `2013-10-22 12:00:00 UTC', expires `2028-10-22 12:00:00 UTC', pin-sha256= =3D"RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=3D" - Status: The certificate is trusted.=20 - Description: (TLS1.3-X.509)-(ECDHE-SECP256R1)-(ECDSA-SECP256R1-SHA256)-(A= ES-128-GCM) - Options: OCSP status request, - Handshake was completed - Simple Client Mode: C-c C-c --8<---------------cut here---------------end--------------->8--- The key thing here is =E2=80=9CDetected downgrade to TLS 1.2 from TLS 1.3= =E2=80=9D. Why is a downgrade detected when using the most explicit priority string and not when using the shorter string? Aren=E2=80=99t these two priority strings supposed to be equivalent today? (This is with GnuTLS 3.6.16.) Thanks, Ludo=E2=80=99.