AWStats migrate Parameter Arbitrary Command Execution

medium Nessus Plugin ID 21328

Synopsis

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

Description

The remote host is running AWStats, a free logfile analysis tool written in Perl.

The version of AWStats installed on the remote host fails to sanitize input to the 'migrate' parameter before passing it to a Perl 'open()' function. Provided 'AllowToUpdateStatsFromBrowser' is enabled in the AWStats site configuration file, an unauthenticated attacker can exploit this issue to execute arbitrary code on the affected host, subject to the privileges of the web server user id.

Solution

Upgrade to AWStats version 6.6 or later.

See Also

http://www.osreviews.net/reviews/comm/awstats

http://www.awstats.org/awstats_security_news.php

Plugin Details

Severity: Medium

ID: 21328

File Name: awstats_migrate_cmd_exec.nasl

Version: 1.25

Type: remote

Family: CGI abuses

Published: 5/8/2006

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.0

CVSS v2

Risk Factor: Medium

Base Score: 5.1

Temporal Score: 4.2

Vector: CVSS2#AV:N/AC:H/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

Exploited by Nessus: true

Vulnerability Publication Date: 5/5/2006

Exploitable With

Core Impact

Metasploit (AWStats migrate Remote Command Execution)

Reference Information

CVE: CVE-2006-2237

BID: 17844