Apache mod_suexec Multiple Privilege Escalation Vulnerabilities

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


Synopsis :

The remote Apache server is vulnerable to multiple privilege
escalation attacks.

Description :

The remote host appears to be running Apache and is potentially
affected by the following vulnerabilities:

- Multiple race conditions exist in suexec between the
validation and usage of directories and files. Under
certain conditions local users are able to escalate
privileges and execute arbitrary code through the
renaming of directories or symlink attacks.
(CVE-2007-1741)

- Apache's suexec module only performs partial
comparisons on paths, which could result in privilege
escalation. (CVE-2007-1742)

- Apache's suexec module does not properly verify user
and group IDs on the command line. When the '/proc'
filesystem is mounted, a local user can utilize suexec
to escalate privileges. (CVE-2007-1743)

Note that this plugin only checks for the presence of Apache, and does
not actually check the configuration.

See also :

http://marc.info/?l=apache-httpd-dev&m=117511568709063&w=2
http://marc.info/?l=apache-httpd-dev&m=117511834512138&w=2

Solution :

Disable suexec or disallow users from writing to the document root.

Risk factor :

Medium / CVSS Base Score : 6.2
(CVSS2#AV:L/AC:H/Au:N/C:C/I:C/A:C)
CVSS Temporal Score : 5.6
(CVSS2#E:F/RL:W/RC:ND)
Public Exploit Available : true

Family: Web Servers

Nessus Plugin ID: 17693 ()

Bugtraq ID: 23438

CVE ID: CVE-2007-1741
CVE-2007-1742
CVE-2007-1743