GLSA-200412-05 : mirrorselect: Insecure temporary file creation

Medium Nessus Plugin ID 15922


The remote Gentoo host is missing one or more security-related patches.


The remote host is affected by the vulnerability described in GLSA-200412-05 (mirrorselect: Insecure temporary file creation)

Ervin Nemeth discovered that mirrorselect creates temporary files in world-writable directories with predictable names.
Impact :

A local attacker could create symbolic links in the temporary files directory, pointing to a valid file somewhere on the filesystem. When mirrorselect is executed, this would result in the file being overwritten with the rights of the user running the utility, which could be the root user.
Workaround :

There is no known workaround at this time.


All mirrorselect users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=app-portage/mirrorselect-0.89'

See Also

Plugin Details

Severity: Medium

ID: 15922

File Name: gentoo_GLSA-200412-05.nasl

Version: $Revision: 1.13 $

Type: local

Published: 2004/12/07

Modified: 2015/04/13

Dependencies: 12634

Risk Information

Risk Factor: Medium


Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:mirrorselect, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 2004/12/07

Vulnerability Publication Date: 2004/12/07

Reference Information

CVE: CVE-2004-1167

OSVDB: 12254

GLSA: 200412-05