Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Bugtraq: Re: Tempfile vulnerabilities

Re: Tempfile vulnerabilities

From: Werner Koch <wk_at_GNUPG.ORG>
Date: Wed, 2 Feb 2000 09:27:32 +0100

On Mon, 31 Jan 2000, Grant Taylor wrote:

> open RAN, "/dev/random" || die;
> read(RAN,$foo,16);
> close RAN;
> $file = '/tmp/autobuse' . unpack('H16',$foo);

Please, never use /dev/random or /dev/urandom for such purposes.

Aside the fact, that it does not help much in what you want to achieve
it is a desaster to system performance because it empties the system's
entropy pool and wastes precious entropy for unneeded things.

Crypto software _really_ needs these random numbers.

--
Werner Koch at guug.de           www.gnupg.org           keyid 621CC013
     Boycott Amazon!  -  http://www.gnu.org/philosophy/amazon.html
Received on Feb 02 2000
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos