GLSA-200701-19 : OpenLDAP: Insecure usage of /tmp during installation

This script is Copyright (C) 2007-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-200701-19
(OpenLDAP: Insecure usage of /tmp during installation)

Tavis Ormandy of the Gentoo Linux Security Team has discovered that the
file gencert.sh distributed with the Gentoo ebuild for OpenLDAP does
not exit upon the existence of a directory in /tmp during installation
allowing for directory traversal.

Impact :

A local attacker could create a symbolic link in /tmp and potentially
overwrite arbitrary system files upon a privileged user emerging
OpenLDAP.

Workaround :

There is no known workaround at this time.

See also :

http://www.gentoo.org/security/en/glsa/glsa-200701-19.xml

Solution :

All OpenLDAP users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose 'net-nds/openldap'

Risk factor :

Medium / CVSS Base Score : 4.6
(CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:P)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 24255 (gentoo_GLSA-200701-19.nasl)

Bugtraq ID:

CVE ID: CVE-2007-0476