#33150 [Opn]: shtool php insecure temporary file creation

From: Date: Thu, 26 May 2005 11:56:01 +0000
Subject: #33150 [Opn]: shtool php insecure temporary file creation
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79541@lists.php.net to get a copy of this message
 ID:               33150
 User updated by:  eromang at zataz dot net
 Reported By:      eromang at zataz dot net
 Status:           Open
 Bug Type:         Unknown/Other Function
 Operating System: UNIX
 PHP Version:      4.3.11
 New Comment:

suggested fix:

-     tmpfile="$tmpdir/.shtool.$$"
-     rm -f $tmpfile >/dev/null 2>&1
-     touch $tmpfile
-     chmod 600 $tmpfile
+     tmpfile=mktemp "$tmpdir/.shtool.XXXXXX"


Previous Comments:
------------------------------------------------------------------------

[2005-05-26 13:43:40] eromang at zataz dot net

Description:
------------
Hello,

php is using a vulnerable version of shtool.

For more informations :

http://www.securityfocus.com/bid/13767?ref=rss

Regards



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=33150&edit=1


Thread (9 messages)

« previous php.bugs (#79541) next »