Joined: 12 May 2004
|Posted: Wed Nov 21, 2007 1:26 am Post subject: [ GLSA 200711-32 ] Feynmf: Insecure temporary file creation
|Gentoo Linux Security Advisory
Title: Feynmf: Insecure temporary file creation (GLSA 200711-32)
Date: November 20, 2007
A vulnerability has been discovered in Feynmf allowing local users to
overwrite arbitrary files via a symlink attack.
Feynmf is a combined LaTeX and Metafont package for easy drawing of
professional quality Feynman (and maybe other) diagrams.
Vulnerable: < 1.08-r2
Unaffected: >= 1.08-r2
Architectures: All supported architectures
Kevin B. McCarty discovered that the feynmf.pl script creates a
temporary "properly list" file at the location "$TMPDIR/feynmf$PID.pl",
where $PID is the process ID.
A local attacker could create symbolic links in the directory where the
temporary files are written, pointing to a valid file somewhere on the
filesystem that is writable by the user running Feynmf. When Feynmf
writes the temporary file, the target valid file would then be
overwritten with the contents of the Feynmf temporary file.
There is no known workaround at this time.
All Feynmf users should upgrade to the latest version:
|# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-tex/feynmf-1.08-r2"
Last edited by GLSA on Tue Aug 26, 2014 4:25 am; edited 2 times in total