Apache mod_suexec Multiple Privilege Escalation Vulnerabilities

high Nessus Plugin ID 17693

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.

Solution

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

See Also

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

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

Plugin Details

Severity: High

ID: 17693

File Name: apache_mod_suexec.nasl

Version: 1.8

Type: remote

Family: Web Servers

Published: 11/18/2011

Updated: 11/15/2018

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 6.2

Temporal Score: 4.6

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

CVSS v3

Risk Factor: High

Base Score: 7

Temporal Score: 6.1

Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:apache:http_server

Required KB Items: installed_sw/Apache, Settings/PCI_DSS

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 4/11/2007

Reference Information

CVE: CVE-2007-1741, CVE-2007-1742, CVE-2007-1743

BID: 23438