AWStats Referrer Header Arbitrary Command Execution

This script is Copyright (C) 2005-2014 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
servers.

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 :

http://www.nessus.org/u?e529878e
http://archives.neohapsis.com/archives/fulldisclosure/2005-08/0239.html
http://archives.neohapsis.com/archives/fulldisclosure/2005-08/0371.html

Solution :

Upgrade to AWStats 6.5 or later.

Risk factor :

Medium / CVSS Base Score : 5.1
(CVSS2#AV:N/AC:H/Au:N/C:P/I:P/A:P)
CVSS Temporal Score : 4.2
(CVSS2#E:F/RL:OF/RC:ND)
Public Exploit Available : true

Family: CGI abuses

Nessus Plugin ID: 19415 (awstats_referer_cmd_exec.nasl)

Bugtraq ID: 14525

CVE ID: CVE-2005-1527