Bug 97184 - sys-cluster/xpvm <= 1.2.5-r2 insecure tmp file creation
|
Bug#:
97184
|
Product: Gentoo Security
|
Version: unspecified
|
Platform: All
|
|
OS/Version: All
|
Status: RESOLVED
|
Severity: minor
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: security@gentoo.org
|
Reported By: zataz@zataz.net
|
|
Component: Vulnerabilities
|
|
|
URL:
http://secunia.com/advisories/16040/
|
|
Summary: sys-cluster/xpvm <= 1.2.5-r2 insecure tmp file creation
|
|
Keywords:
|
|
Status Whiteboard: B3 [noglsa] jaervosz
|
|
Opened: 2005-06-27 03:52 0000
|
Hello,
Take a look at
src/xpvm.tcl :
158 #
159 # Get User Name
160 #
161
162 set user [ get_user_name ]
832 if { $tfck == 0 } { set trace_file "/tmp/xpvm.trace.$user" }
834 $CTRL.file_entry insert 0 $trace_file
Regards.
Hello,
Vendor notified.
Regards.
confirmed by rob, moving to vulnerabilities.
Leaked by Secunia, SA16040
Pulling in maintainer :
The project looks quite dead (upstream mail failed), should we patch it ? remove
it ?
Tantive seems to be MIA, pulling in the rest of cluster.
If someone is able to fix it, then let's fix it, otherwise we have to remove or
mask it.
Personally i'd love to see a fix so it can stay in portage.
Yuri are you sure about that? I don't use wish much or xpvm at all but
I've done a fair bit of tcl in my day and I've never seen ns_tmpnam.
Perhaps it's an aolserver only function?
solar@simple xpvm $ wish
% ns_tmpnam
invalid command name "ns_tmpnam"
solar@simple xpvm $ tclsh
Loading module ptrace
8.4.6> ns_tmpnam
invalid command name "ns_tmpnam"
solar@simple xpvm $ tcl
tcl>ns_tmpnam
Error: invalid command name "ns_tmpnam"
There is another way to solve this problem but it'll require
>=dev-tcltk/tcllib-1.7 to be added as dependency so "::fileutil::tempfile ?
prefix ?" can be used, but I think it's not worth adding another dependency
considerings the before mentioned support for file tempfile subcommand is
expected to be added in tcl 8.5.
Also, in case the patch gets accepted, please credit solar@gentoo.org for it's
authorship as I my just cleaned it.
solar, you're the TCL expert, could you review the patch ? If you're OK with
it,
tantive can plug it in.
The code is fine.
shell$ qfile /bin/tempfile
sys-apps/debianutils (/bin/tempfile)
A dep would have to be added either way.
Micheal please provide an updated ebuild.
I added a patched xpvm-1.2.5-r4 to the tree and removed the old ebuilds.
Thanks for your help.
Thx Micheal.
This one is ready for GLSA decision. I tend to vote NO.
Looks like a tool that would typically run as root, which would make me vote
yes, but I really don't know.
Michael, could you provide some insight on how the software is typically run,
and if it always uses the temporary file (vs. it only uses it if option
--verbosity=high is set)...
Micheal/Cluster please advise.
OK; looks like we won't get input about this from the cluster herd, so security
members, make up your mind. In doubt I vote YES.
Reverting my vote to full NO -> Closing without GLSA. Feel free to reopen if
you disagree.