Slackware /etc/group missing results in root access Vulnerability

BID:155

Info

Slackware /etc/group missing results in root access Vulnerability

Bugtraq ID: 155
Class: Access Validation Error
CVE: CVE-1999-1434
Remote: Yes
Local: Yes
Published: Jul 13 1998 12:00AM
Updated: Jul 11 2009 12:16AM
Credit: This vulnerability was found by Richard Thomas <[email protected]> and was posted to the Bugtraq mailing list on July 13, 1998.
Vulnerable: Slackware Linux 3.5
Slackware Linux 3.4
Slackware Linux 3.3
Slackware Linux 3.2
Slackware Linux 3.1
Not Vulnerable:

Discussion

Slackware /etc/group missing results in root access Vulnerability

Due to the way /bin/login behaves when a /etc/group file is not present under Slackware's version of the password shadowing suite, users who log in while this file is not present will be given uid and gid 0. This will allow them unrestricted access to the machine. This vulnerability is present in all versions of Slackware which have shadow passwords, up to and including 3.5

If the call to initgroups() fails in setup_uid_gid(), the function immediately returns value of -1. However, the call to setup_uid_gid() in login.c fails to check this return value. Since the uid and gid were not checked, their value is still 0, and the user will be logged in with 0 as their uid and gid.

Exploit / POC

Slackware /etc/group missing results in root access Vulnerability

Remove /etc/group and log in as a valid user. /etc/group must entirely not exist -- mode 000 is not sufficient.

References

Slackware /etc/group missing results in root access Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report