FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

rkhunter -- insecure temporary file creation

Affected packages
rkhunter < 1.2.5

Details

VuXML ID f14ad681-5b88-11dc-812d-0011098b2f36
Discovery 2005-04-26
Entry 2007-09-05

Gentoo reports:

Sune Kloppenborg Jeppesen and Tavis Ormandy of the Gentoo Linux Security Team have reported that the check_update.sh script and the main rkhunter script insecurely creates several temporary files with predictable filenames.

A local attacker could create symbolic links in the temporary files directory, pointing to a valid file somewhere on the filesystem. When rkhunter or the check_update.sh script runs, this would result in the file being overwritten with the rights of the user running the utility, which could be the root user.

References

Bugtraq ID 13399
CVE Name CVE-2005-1270
URL http://www.gentoo.org/security/en/glsa/glsa-200504-25.xml