GLSA-200501-36 : AWStats: Remote code execution

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


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200501-36
(AWStats: Remote code execution)

When 'awstats.pl' is run as a CGI script, it fails to validate specific
inputs which are used in a Perl open() function call. Furthermore, a
user could read log file content even when plugin rawlog was not
enabled.

Impact :

A remote attacker could supply AWStats malicious input, potentially
allowing the execution of arbitrary code with the rights of the web
server. He could also access raw log contents.

Workaround :

Making sure that AWStats does not run as a CGI script will avoid the
issue, but we recommend that users upgrade to the latest version, which
fixes these bugs.

See also :

http://awstats.sourceforge.net/docs/awstats_changelog.txt
http://www.nessus.org/u?020e4b8e
http://www.gentoo.org/security/en/glsa/glsa-200501-36.xml

Solution :

All AWStats users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=www-misc/awstats-6.3-r2'
Note: Users with the vhosts USE flag set should manually use
webapp-config to finalize the update.

Risk factor :

High / CVSS Base Score : 7.5
(CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)
Public Exploit Available : true

Family: Gentoo Local Security Checks

Nessus Plugin ID: 16427 (gentoo_GLSA-200501-36.nasl)

Bugtraq ID:

CVE ID: CVE-2005-0116
CVE-2005-0362
CVE-2005-0363