Apache mod_suexec Multiple Privilege Escalation Vulnerabilities

Medium 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: Medium

ID: 17693

File Name: apache_mod_suexec.nasl

Version: 1.8

Type: remote

Family: Web Servers

Published: 2011/11/18

Modified: 2018/11/15

Dependencies: 48204

Risk Information

Risk Factor: Medium

CVSS v2.0

Base Score: 6.2

Temporal Score: 4.6

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

Temporal Vector: CVSS2#E:U/RL:OF/RC:C

CVSS v3.0

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 Available: false

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 2007/04/11

Reference Information

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

BID: 23438