From owner-freebsd-current@freebsd.org Thu Aug 11 17:45:59 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 196E5BB55B2 for ; Thu, 11 Aug 2016 17:45:59 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CFD841562 for ; Thu, 11 Aug 2016 17:45:58 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1bXu3C-0049zE-2F>; Thu, 11 Aug 2016 19:45:50 +0200 Received: from x4e34060c.dyn.telefonica.de ([78.52.6.12] helo=thor.walstatt.dynvpn.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (envelope-from ) id <1bXu3B-001UFR-Np>; Thu, 11 Aug 2016 19:45:49 +0200 Date: Thu, 11 Aug 2016 19:47:14 +0200 From: "O. Hartmann" To: Jan Bramkamp Cc: freebsd-current@freebsd.org Subject: Re: Passwordless accounts vi ports! Message-ID: <20160811194714.4eda9cd4.ohartman@zedat.fu-berlin.de> In-Reply-To: <84687796-5113-152c-cf34-9f8e891c3ea2@rlwinm.de> References: <20160811070505.2c1a1466@freyja.zeit4.iv.bundesimmobilien.de> <84687796-5113-152c-cf34-9f8e891c3ea2@rlwinm.de> Organization: FU Berlin X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/ZSAKFRxupUHoY=8JWAK5c+F"; protocol="application/pgp-signature" X-Originating-IP: 78.52.6.12 X-ZEDAT-Hint: A X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2016 17:45:59 -0000 --Sig_/ZSAKFRxupUHoY=8JWAK5c+F Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Thu, 11 Aug 2016 11:30:37 +0200 Jan Bramkamp schrieb: > On 11/08/16 07:05, O. Hartmann wrote: > > I just checked the security scanning outputs of FreeBSD and found this > > surprising result: > > > > [...] > > Checking for passwordless accounts: > > polkitd::565:565::0:0:Polkit Daemon User:/var/empty:/usr/sbin/nologin > > pulse::563:563::0:0:PulseAudio System User:/nonexistent:/usr/sbin/nolog= in > > saned::194:194::0:0:SANE Scanner Daemon:/nonexistent:/bin/sh > > clamav::106:106::0:0:Clamav Antivirus:/nonexistent:/usr/sbin/nologin > > bacula::910:910::0:0:Bacula Daemon:/var/db/bacula:/usr/sbin/nologin > > [...] > > > > Obviously, some ports install accounts but do not secure them as there = is an > > empty password. =20 >=20 > Are you certain that the ports didn't use "*" as crypted hash which=20 > isn't a valid hash for any supported algorithm and prevents password=20 > based authentication for the account? I checked the culprit system's master.passwd with "vipw" and I'm quite sure= , vipw (called as root) is showing a password - or empty if empty. And the password field = was empty as complained by the periodic scripts. >=20 > FreeBSD also uses two passwd files (and compiles them into databases for= =20 > fast lookups). The old /etc/passwd is world readable but contains no=20 > passwords and the real /etc/master.passwd which is only accessible by=20 > root. If you run `getent passwd` the missing password field is replaced= =20 > with "*" which can confuse buggy scripts. > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" --Sig_/ZSAKFRxupUHoY=8JWAK5c+F Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXrLoiAAoJEOgBcD7A/5N8UaEIAIblVxI5LYLaOwlNjMlhGgT8 Kuy/b4Y/dv3Opsvb3HpOhWxJEpHyPIVCnA8A1mOtkN3Vm01cPd+9aQbk82/3xoZd CGjE1N7+GtAKJynX/f8qNMOjjMXMIes/YfB/Aq1FxermHN6FPiGTXteLONakgoZE xflUTeFvFJ5PKpl4Lthz5bhDDbyEBTEcx2RHab8YiqIh2+8GozIAIC9U+HyN44aq p4DeXC9S6iniGImsTEEqJWc5ghwOgUIr4XjdMm+TxhqGs/zTFgV4eMz+K951o/rg 1dqUZ+UgChNUMEB733hXUKYFZKy8cOiG+qjLwdVqdLzRQxP2GUNwBSJ8sPAT35w= =VY4B -----END PGP SIGNATURE----- --Sig_/ZSAKFRxupUHoY=8JWAK5c+F--