From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#37744: Per-user profile directory hijack (CVE-2019-17365 for Nix) Date: Mon, 14 Oct 2019 09:47:35 +0200 Message-ID: <87o8yjsr8o.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48423) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJv5H-0008EN-Uj for bug-guix@gnu.org; Mon, 14 Oct 2019 03:48:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJv5G-0007ff-UV for bug-guix@gnu.org; Mon, 14 Oct 2019 03:48:03 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:48403) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJv4y-0008BU-9M for bug-guix@gnu.org; Mon, 14 Oct 2019 03:47:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iJv4y-0007Yu-5L for bug-guix@gnu.org; Mon, 14 Oct 2019 03:47:44 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=36064 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iJv4s-0008El-Qq for bug-guix@gnu.org; Mon, 14 Oct 2019 03:47:43 -0400 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 37744@debbugs.gnu.org Cc: GNU Guix maintainers , guix-security@gnu.org Hello Guix, That the per-user profile directory is world-writable allows an attacker to hijack code run by other users, as has been reported in the context of Nix: https://www.openwall.com/lists/oss-security/2019/10/09/4 I believe it applies to Guix as well. Nix people are tracking it here: https://github.com/NixOS/nix/pull/3134 https://github.com/NixOS/nix/issues/509 Looks like we=E2=80=99ll need to do something similar to: . Thoughts? Thanks, Ludo=E2=80=99.