From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#37420: [PATCH] Recommend against SHA-1 for security-related applications Date: Mon, 16 Sep 2019 10:53:27 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="00000000000069d6310592a7bd9a" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="204272"; mail-complaints-to="usenet@blaine.gmane.org" To: 37420@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 16 10:54:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i9mlw-000qzy-Li for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Sep 2019 10:54:12 +0200 Original-Received: from localhost ([::1]:60076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9mlu-0006Hw-Jk for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Sep 2019 04:54:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34107) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9mln-0006Hj-MD for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2019 04:54:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i9mlm-0004JO-BM for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2019 04:54:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40349) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i9mlm-0004JJ-7f for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2019 04:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i9mlm-0007Bg-4l for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2019 04:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Sep 2019 08:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37420 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156862402427595 (code B ref -1); Mon, 16 Sep 2019 08:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Sep 2019 08:53:44 +0000 Original-Received: from localhost ([127.0.0.1]:49170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9mlU-0007B0-8F for submit@debbugs.gnu.org; Mon, 16 Sep 2019 04:53:44 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:42563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9mlS-0007At-Qx for submit@debbugs.gnu.org; Mon, 16 Sep 2019 04:53:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34043) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9mlR-0006Cj-FH for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2019 04:53:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i9mlQ-000465-2x for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2019 04:53:41 -0400 Original-Received: from mail-pl1-f177.google.com ([209.85.214.177]:44671) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i9mlP-00041h-RF for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2019 04:53:40 -0400 Original-Received: by mail-pl1-f177.google.com with SMTP id k1so16618904pls.11 for ; Mon, 16 Sep 2019 01:53:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pYOLBXx6bPFJgqX9GeJDqB7Fb8wpeFyHgunwQq7PMaU=; b=fr98pwRhIz2SA2/Fs1nWp5AXz9ohGf5cbiMSvf9HuBy7Jgr2mWnmfx0pUSCL3L54n1 eU1PwnqtCW4QteY01DYbeF4li0K/pKGRChJ7T1KABOnsIVL0Keiv8WuPLNMXPaPny2yY h5oTESXPLah/5BzRwfCcAeGKVebWhOZZpv2OqmNaAp5Bgfb2FpBG0xCcS75kL5rJFVes zWtK17FEJqTLEtw56nrAvwarrNuLLDlsIF0tfVY0MxnvSqPhWvlI5pI6+Pgqgri3PTAa t6UMXLrPg7dxmZUfPmBrdMXZauDv5a/2GHTK8cLNVUykt/LIogg31tE4QsioSvTfWTKM p6Ww== X-Gm-Message-State: APjAAAU7Kidh04MkMDIYuOahEYaR5iYWrOy21/z2YSGbjhp0/ctXdW7K S2u+LRFxV+jiHDD18j2Nt1Ca7xYtlod/4EH/976gOJ+G7f8= X-Google-Smtp-Source: APXvYqwZ0ndTVWfN8LGjycLJTUIakbQjv9QVHMY+CeWBdYewpAXt//oaCkBdlMf3Z9S02UrIzx2qWZbt9NGJK4SKbQ4= X-Received: by 2002:a17:902:326:: with SMTP id 35mr64316024pld.128.1568624018545; Mon, 16 Sep 2019 01:53:38 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166543 Archived-At: --00000000000069d6310592a7bd9a Content-Type: text/plain; charset="UTF-8" SHA-1 has now seen collision attacks: https://www.zdnet.com/article/sha-1-collision-attacks-are-now-actually-practical-and-a-looming-danger/ We should clarify that these attacks are not only theoretical, and actively discourage using it in security-related applications in the Elisp Manual. The attached patch is an attempt at doing that. Any comments? Best regards, Stefan Kangas --00000000000069d6310592a7bd9a Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Recommend-against-SHA-1-for-security-related-applica.patch" Content-Disposition: attachment; filename="0001-Recommend-against-SHA-1-for-security-related-applica.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k0m6617o0 RnJvbSA1M2E0MjQ3MDYwNGUzZGI2ZTJmMDU1MmViMzQ4MWZhNjRhODUzNDU4IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdGVmYW4gS2FuZ2FzIDxzdGVmYW5rYW5nYXNAZ21haWwuY29t PgpEYXRlOiBNb24sIDE2IFNlcCAyMDE5IDEwOjQ1OjE0ICswMjAwClN1YmplY3Q6IFtQQVRDSF0g UmVjb21tZW5kIGFnYWluc3QgU0hBLTEgZm9yIHNlY3VyaXR5LXJlbGF0ZWQgYXBwbGljYXRpb25z CgoqIGRvYy9saXNwcmVmL3RleHQudGV4aSAoQ2hlY2tzdW0vSGFzaCk6IENsYXJpZnkgdGhhdCBT SEEtMSBpcyBub3QKY29sbGlzaW9uIHJlc2lzdGFudC4KLS0tCiBkb2MvbGlzcHJlZi90ZXh0LnRl eGkgfCAxMiArKysrKystLS0tLS0KIDEgZmlsZSBjaGFuZ2VkLCA2IGluc2VydGl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