From nobody Mon Dec 11 19:58:44 2023 X-Original-To: ports-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 4Spsxw5TNyz541rD for ; Mon, 11 Dec 2023 19:58:44 +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 4Spsxw4PzCz4hJN for ; Mon, 11 Dec 2023 19:58:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702324724; a=rsa-sha256; cv=none; b=Cvq1aG2RzexMHLLJx3Q8udOwjUD6VW00btP1L/hQD2wf7c5E9xRu6hsJoxfluS45x5VIG9 ALKbfgAkcckjlwnaeaJvZ2vboq2Z8i6qJK2vNEQ3iPEY/BxQJZ8rkLKzlm7LJ7Txy+d5mT DR0la2rkCW/dbMhrY8/Eg/087APG/q6JqlLuet3qtZGR47LxbfLhH57zztXGa6zOZy3p5l R8Pj5uJEaYEzBbDA6aH7tYf1f0eQrHaA/o7q/Gd0cGxL4/6hmGF+HviTRYVNAFYaT3YVB2 ntrQY06aOJ20A4pFzANinRLl3eJw2zwBv5T5jGWzJZ//25RZ2305R5JTOSRBKQ== 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=1702324724; 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=e5Eci9uWkUMOkOJDwjVD21WuEnFS1SLPlpWnIh5Mq1g=; b=BNTkAZSN8reOZQDrw96BZ2lb1gNPzfS8FeNV92lDg5asuTlVjumpy4LsvUscvtrNPZpUAa ZUb8riF6pwlYTQAhDtbzva5mybgNJp3L8Uus9LFTR9Vr8W5YfOdS3LyePKNI52Xy2y4z0v 1IYamMXKUSfDJPqIapxqxGYT6oOggKa1pKI84XkMvIh0BLSQ4HtM6qvygyNjbJxIESedAE X/HqhnynZbJZuDK6m5LQbsWvBhZMhUnkJk75mKRqAXK/5SqMWRcN+ElGjaQkTaSAZEMtGD dK2IukwPXK4D28sfOeVoisNymQOiZZ/4Ho9Sb+L3fHttQcKC64BIpEUCgSlqXA== 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 4Spsxw3PGWzkr7 for ; Mon, 11 Dec 2023 19:58:44 +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 3BBJwiO6026109 for ; Mon, 11 Dec 2023 19:58:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BBJwi7X026108 for ports-bugs@FreeBSD.org; Mon, 11 Dec 2023 19:58:44 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: ports-bugs@FreeBSD.org Subject: [Bug 275705] net-mgmt/ping_exporter: should not install setuid root Date: Mon, 11 Dec 2023 19:58:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lexi.freebsd@le-fay.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275705 Bug ID: 275705 Summary: net-mgmt/ping_exporter: should not install setuid root Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: lexi.freebsd@le-fay.org CC: jp+ports@supplntr.io Flags: maintainer-feedback?(jp+ports@supplntr.io) CC: jp+ports@supplntr.io from pkg-plist: @mode 4755 bin/ping_exporter this causes it to install setuid: -rwsr-xr-x 1 root wheel 10107456 Dec 8 19:40 /usr/local/bin/ping_exporter there is no reason to install ping_exporter setuid, because it should only = be started by root and has no utility for normal users. in addition, it doesn= 't seem to be aware of its setuid nature and doesn't drop privileges after startup: # ps -o pid,comm,ruid,euid -p 15502 PID COMMAND RUID UID 15502 ping_exporter 65534 0 --=20 You are receiving this mail because: You are the assignee for the bug.=