GLSA-200407-01 : Esearch: Insecure temp file handling

This script is Copyright (C) 2004-2014 Tenable Network Security, Inc.


Synopsis :

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

Description :

The remote host is affected by the vulnerability described in GLSA-200407-01
(Esearch: Insecure temp file handling)

The eupdatedb utility uses a temporary file (/tmp/esearchdb.py.tmp) to
indicate that the eupdatedb process is running. When run, eupdatedb
checks to see if this file exists, but it does not check to see if it
is a broken symlink. In the event that the file is a broken symlink,
the script will create the file pointed to by the symlink, instead of
printing an error and exiting.

Impact :

An attacker could create a symlink from /tmp/esearchdb.py.tmp to a
nonexistent file (such as /etc/nologin), and the file will be created
the next time esearchdb is run.

Workaround :

There is no known workaround at this time. All users should upgrade to
the latest available version of esearch.

See also :

http://www.gentoo.org/security/en/glsa/glsa-200407-01.xml

Solution :

All users should upgrade to the latest available version of esearch, as
follows:
# emerge sync
# emerge -pv '>=app-portage/esearch-0.6.2'
# emerge '>=app-portage/esearch-0.6.2'

Risk factor :

High / CVSS Base Score : 7.2
(CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 14534 (gentoo_GLSA-200407-01.nasl)

Bugtraq ID:

CVE ID: CVE-2004-0655