Expect mkpasswd Biased Random Number Generation Vulnerability

BID:2632

Info

Expect mkpasswd Biased Random Number Generation Vulnerability

Bugtraq ID: 2632
Class: Design Error
CVE:
Remote: Yes
Local: Yes
Published: Apr 11 2001 12:00AM
Updated: Apr 11 2001 12:00AM
Credit: Reported to Bugtraq by Shez <[email protected]> on April 11, 2001.
Vulnerable: Don Libes Expect 5.2.8
+ Redhat Linux 7.0
+ Redhat Linux 6.2
Not Vulnerable:

Discussion

Expect mkpasswd Biased Random Number Generation Vulnerability

The 'mkpasswd' password generation script that ships with expect contains a biased random number generation bug.

The script uses its own random number generator and seeds it with a process id. As a result, only a small set of possible passwords are generated.

Exploit / POC

Expect mkpasswd Biased Random Number Generation 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] <mailto:[email protected]>.

Solution / Fix

Expect mkpasswd Biased Random Number Generation Vulnerability

Solution:
Currently the SecurityFocus staff are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.

References

Expect mkpasswd Biased Random Number Generation 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