Joined: 12 May 2004
|Posted: Fri Sep 30, 2005 1:18 pm Post subject: [ GLSA 200509-21 ] Hylafax: Insecure temporary file creation
|Gentoo Linux Security Advisory
Title: Hylafax: Insecure temporary file creation in xferfaxstats script (GLSA 200509-21)
Date: September 30, 2005
Updated: May 22, 2006
Hylafax is vulnerable to linking attacks, potentially allowing a local user to overwrite arbitrary files.
Hylafax is a client-server fax package for class 1 and 2 fax modems.
Vulnerable: < 4.2.2
Unaffected: >= 4.2.0-r3 < 4.2.1
Unaffected: >= 4.2.1-r2 < 4.2.2
Unaffected: >= 4.2.2
Architectures: All supported architectures
Javier Fernandez-Sanguino has discovered that xferfaxstats cron script supplied by Hylafax insecurely creates temporary files with predictable filenames.
A local attacker could create symbolic links in the temporary file directory, pointing to a valid file somewhere on the filesystem. When the xferfaxstats script of Hylafax is executed, this would result in the file being overwritten with the rights of the user running the script, which typically is the root user.
There is no known workaround at this time.
All Hylafax users should upgrade to the latest version:
|# emerge --sync
# emerge --ask --oneshot --verbose net-misc/hylafax
Original bug report
Last edited by GLSA on Sat Jun 14, 2008 4:17 am; edited 4 times in total