S.u.S.E. Linux useradd Vulnerability

BID:350

Info

S.u.S.E. Linux useradd Vulnerability

Bugtraq ID: 350
Class: Design Error
CVE:
Remote: No
Local: Yes
Published: Jun 06 1999 12:00AM
Updated: Jun 06 1999 12:00AM
Credit: First posted to BugTraq by Emils Klotins <[email protected]> on June 11, 1999.
Vulnerable: SuSE Linux 6.1
Not Vulnerable:

Discussion

S.u.S.E. Linux useradd Vulnerability

The useradd binary included with S.u.S.E. 6.1 had a parameter, -p, not listed in the man page for the new user's password that caused a plaintext password to be written to /etc/shadow if the individual adding the account specified the plaintext.

[root@box etc]$ useradd newuser -p password

The paramater is meant for adding an encrypted password (using one of the mkpasswd utilities) at the command line.

Besides the fact that a password on the command line is a bad idea, this percieved misfeature makes the system vulnerable by writing the plaintext to /etc/shadow. It's not readable by world, but it could allow for more intelligent compromise if the administrator were to think that they could add their plaintext password on the command line. The account, of course, won't work as the user's encrypted password will not match the plaintext in /etc/shadow.

Exploit / POC

S.u.S.E. Linux useradd Vulnerability

Currently the SecurityFocus staff are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected].

Solution / Fix

S.u.S.E. Linux useradd Vulnerability

Solution:
S.u.S.E. 6.1 ships with older manpages that don't explain the -p option. The new version/manpages are available at:

ftp://piast.t19.ds.pwr.wroc.pl/pub/linux/shadow/

References

S.u.S.E. Linux useradd 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