AWStats awstats.pl configdir Parameter Arbitrary Command Execution

high Nessus Plugin ID 16189

Synopsis

The remote web server contains a CGI script that allows execution of arbitrary commands.

Description

The remote host is running AWStats, a free logfile analysis tool for analyzing ftp, mail, web, ... traffic.

The remote version of this software fails to sanitize user-supplied input to the 'configdir' parameter of the 'awstats.pl' script. An attacker may exploit this condition to execute commands remotely or disclose contents of files, subject to the privileges under which the web server operates.

Solution

Upgrade to AWStats version 6.3 or later.

See Also

http://www.nessus.org/u?2210a10f

http://www.awstats.org/docs/awstats_changelog.txt

Plugin Details

Severity: High

ID: 16189

File Name: awstats_configdir.nasl

Version: 1.28

Type: remote

Family: CGI abuses

Published: 1/18/2005

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.0

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

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

Vulnerability Information

CPE: cpe:/a:laurent_destailleur:awstats

Required KB Items: www/AWStats

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 1/1/2005

Exploitable With

Metasploit (AWStats configdir Remote Command Execution)

Reference Information

CVE: CVE-2005-0116

BID: 12270, 12298

CWE: 20