From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: bug#37744: Per-user profile directory hijack (CVE-2019-17365 for Nix) Date: Wed, 16 Oct 2019 18:28:08 +0200 Message-ID: References: <87o8yjsr8o.fsf@gnu.org> <87blujsqq0.fsf@gnu.org> <87y2xno85o.fsf@nckx> <87d0eyuqzd.fsf@gnu.org> <87mue2nkrj.fsf@nckx> <8736fttby6.fsf@gnu.org> <87tv89rnva.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]:34062) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKmAY-0002Qa-Un for bug-guix@gnu.org; Wed, 16 Oct 2019 12:29:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKmAX-0007yO-QG for bug-guix@gnu.org; Wed, 16 Oct 2019 12:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37610) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iKmAX-0007yE-Ne for bug-guix@gnu.org; Wed, 16 Oct 2019 12:29:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iKmAX-0004hP-Iv for bug-guix@gnu.org; Wed, 16 Oct 2019 12:29:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:33929) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKmAC-0002P1-En for bug-guix@gnu.org; Wed, 16 Oct 2019 12:28:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKmAB-0007hx-7p for bug-guix@gnu.org; Wed, 16 Oct 2019 12:28:40 -0400 In-Reply-To: <87tv89rnva.fsf@gnu.org> 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, ludo@gnu.org, me@tobias.gr Cc: guix-security@gnu.org Le 16 octobre 2019 12:22:33 GMT+02:00, "Ludovic Court=C3=A8s" a =C3=A9crit : >Hello! > >Here=E2=80=99s a patch that fixes the issue, partly based on what the Nix= folks >did=2E > >For the client-connecting-over-TCP case, I added special handling: >=E2=80=98set-build-options=E2=80=99 now passes a =E2=80=9Cuser-name=E2=80= =9D property, potentially >allowing to create =E2=80=98per-user/$USER=E2=80=99 at that point (like y= ou suggested, >Tobias=2E) > >In a cluster setup, it means that the machine that runs =E2=80=98guix-dae= mon=E2=80=99 >must see the same users as the machines where its clients run, but >that=E2=80=99s basically already what we expect: >=2E > >There=E2=80=99s one case that won=E2=80=99t be correctly handled: in a cl= uster setup, >an >old client talking to a new daemon won=E2=80=99t provide info to create >=E2=80=98per-user/$USER=E2=80=99, and thus =E2=80=98guix package=E2=80=99= & co=2E won=E2=80=99t be able to create >the user=E2=80=99s profile it it doesn=E2=80=99t already exist=2E I thin= k that=E2=80=99s hard to >avoid though=2E > >Thoughts? > >Thanks, >Ludo=E2=80=99=2E We could advise people to restart the service too, with e=2Eg=2E systemctl= restart guix-daemon