From nobody Mon Mar 4 10:55:21 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TpFw95ps3z5CNS7 for ; Mon, 4 Mar 2024 10:55:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TpFw949v2z4q9c for ; Mon, 4 Mar 2024 10:55:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709549721; a=rsa-sha256; cv=none; b=MhDUgfhN/y/k4rXPCPnBKSSW3ScguwYcPjyR663rBkDJIGKQ8VzAZ/jky6JzS8SpSzAgFf ARwVJrRz9MQ/OIbNTq4jzruwp+6gJuNnQlfLVxrzwkdE9WduBe0P2JlAVlWuU6viErh988 UJi5QtE6ORD+IaGBBPLjohowdqNCpxk6pr+YRLgXZHmCTFVTCDWDQCLiKwOV36aZD6lSZF LSMrSI9tWY1TSI6aCkTt8RN94JhEcIoYT4V+No3i2NmmTS7eFUeRP0bfjmEgSCQpxGm8M1 ztfa3941zrPN36qONHXyf8Xj4wDJ5AsQzLq7+PD/M61ko8OywzEdlljcwf2LsA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709549721; 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; bh=o3n6FaBbFnrzHugp8y4GxBbTRKzIK8jWRLpuJcEWFig=; b=MbfLjUfMohiMs1dru5LOsMrqSAvrF+rUIgWjRvpOwI+HX1djJGdmgdwrYem7F25bpg4bc1 1XmToZZ8i0tvfV9hlLlN8F+Nv31D9vMX2nrOhxBq3KYGz6SOldvrqV44WNMgzARSkrkH8H 7L3k0+J7o/Dyf7pbJIZLzFirNB9mN5G8GjOC7KUDtZa8hClWqtoUUUHiAyPN993Kak8OH8 OaW9Nw6W4mg1Vp+B931pQs2M9uB+c0wY33A6Oex1u6uP6ILNmHGgDH7EnPkAc7Lkfy6aZ7 wNhQvAeOk11DGaNesJ2RFlKDhvKJw2ytZteeIpB0EM3JP8CCQ7WFTZDqq5gJhw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TpFw93gNrzJbT for ; Mon, 4 Mar 2024 10:55:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 424AtLRw034186 for ; Mon, 4 Mar 2024 10:55:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 424AtLZK034185 for bugs@FreeBSD.org; Mon, 4 Mar 2024 10:55:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 277470] Security Vulnerability: etcupdate incorrectly sets permissions for /var/db/etcupdate/conflicts/etc/master.passwd Date: Mon, 04 Mar 2024 10:55:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: chris@cretaforce.gr X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277470 Bug ID: 277470 Summary: Security Vulnerability: etcupdate incorrectly sets permissions for /var/db/etcupdate/conflicts/etc/master.passwd Product: Base System Version: 13.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: chris@cretaforce.gr I've encountered an issue while upgrading systems from 13.2 to 13.3. Upon executing the upgrade process using the following commands: cd /usr/src make buildworld make buildkernel make installkernel etcupdate -p make installworld etcupdate I noticed that during the final step (etcupdate), conflicts were detected in the files /etc/master.passwd and /etc/group. Consequently, I utilized `etcupdate resolve` to rectify these conflicts. Before resolving the conflicts, I checked the file /var/db/etcupdate/conflicts/master.passwd and found that it had insecure permissions: ls -la /var/db/etcupdate/conflicts/etc/master.passwd -rw-r--r-- 1 root wheel 5690 Feb 28 00:05 /var/db/etcupdate/conflicts/etc/master.passwd The file master.passwd contains encrypted root and user passwords, thereby presenting a significant security risk due to its unrestricted read access. Your attention to this matter would be greatly appreciated, and I remain available to provide any additional information or assistance required for troubleshooting. --=20 You are receiving this mail because: You are the assignee for the bug.=