From nobody Mon May 15 07:09:09 2023 X-Original-To: standards@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 4QKVps6Cf2z4BGXK for ; Mon, 15 May 2023 07:09:09 +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 4QKVps2YH9z3PTQ for ; Mon, 15 May 2023 07:09:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684134549; 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: in-reply-to:in-reply-to:references:references; bh=pJ1D3uCUO2wP37qXRylMMPIFh9raTsy+oGpyvpiERBg=; b=I4CUoXTOK9+TDEDaSuFR1/gUi0EiNKxU5DsUPSvf6/PP0pousWBzfFAw25KVTljpmPxhpr 4ZJIka5QS0ZwddxlGmUVhrBbpO4IBi488mATTO7a/F7L/zyc9YyMzMqQTqlcvPYHJj8LNA OyWiZT86E2/Bff9V0yo22DV1k+Q2+OxoX+QG81yMQnQWWKnrX2ennASgihdp7Puf1Fdxls v2NBepxdWV2OnUnDV9aD1ONUxyDFL0ohpy5kCJ6ys0KZmRUwuSaE2Sm8eh1ZzUjLyMmdTs BGHLBkgRJlDkahrLrhbwXjoNAVlNCSKM0CaQ4E7PrWB5IPUUP+TWFGrr4RR6Vg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684134549; a=rsa-sha256; cv=none; b=O1X7NENRbHWWRyq9hzUsaBXVh79n+I/68c0x6uk3yxdCkyElE339WBXwXwXzZiAq4QS25T FXIpC6uflcJCtf8AQlJUh2r0X9QZ2TiBj++WsZttaTcD+dB+tvJvjUEAQBtczM7eAj0dID IYKM8i7kgB6uM6+in3JMUa35qzWV0bxoSEOoSfacmSOE4ytLXjVtA0Lu+8ts5L22vf27wC ChDUD2CxL2DLQ6YTtJlduq7mxlz85BesMct9KxgyHA2kSDyFpcSx6gvDLWJa7/V7MBS0We l43JoiX3/WVX2TO9kz+DXEz/I+26rvK9ePk+nN3xz3/x/vRgQOIG51med1ky9Q== 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 4QKVps1Vd8zW5G for ; Mon, 15 May 2023 07:09:09 +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 34F799w2094022 for ; Mon, 15 May 2023 07:09:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34F799F4094021 for standards@FreeBSD.org; Mon, 15 May 2023 07:09:09 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: standards@FreeBSD.org Subject: [Bug 271427] FreeBSD pw command injection vulnerability Date: Mon, 15 May 2023 07:09:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: 858573819@qq.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271427 --- Comment #3 from pbuff <858573819@qq.com> --- (In reply to Baptiste Daroussin from comment #2) Hello, this is a git-format patch: diff --git a/pw_user.c b/pw_user.c index 3d625a0..b16faaf 100644 --- a/pw_user.c +++ b/pw_user.c @@ -635,7 +635,7 @@ pw_checkname(char *name, int gecos) showtype =3D "gecos field"; } else { /* See if the name is valid as a userid or group. */ - badchars =3D " ,\t:+&#%$^()!@~*?<>=3D|\\/\""; + badchars =3D " ,\t:+&#%$^()!@~*?<>=3D|\\/\";"; showtype =3D "userid/group name"; /* Userids and groups can not have a leading '-'. */ if (*ch =3D=3D '-') --=20 You are receiving this mail because: You are the assignee for the bug.=