AWStats Referrer Header Arbitrary Command Execution

This script is Copyright (C) 2005-2012 Tenable Network Security, Inc.

Synopsis :

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

Description :

The remote host is running AWStats, an open source web analytics tool used for
analyzing data from internet services such as web, streaming, media, mail and FTP

The version of AWStats installed on the remote host collects data
about the web referrers and uses them without proper sanitation in an
eval() statement. Using specially crafted referrer data, an attacker
can cause arbitrary Perl code to be executed on the remote host within
the context of the affected application once the stats page has been
regenerated and when a user visits the referer statistics page.

Note that successful exploitation requires that at least one URLPlugin
is enabled.

See also :

Solution :

Upgrade to AWStats 6.5 or later.

Risk factor :

Medium / CVSS Base Score : 5.1
CVSS Temporal Score : 4.2
Public Exploit Available : true

Family: CGI abuses

Nessus Plugin ID: 19415 (awstats_referer_cmd_exec.nasl)

Bugtraq ID: 14525

CVE ID: CVE-2005-1527