Gentoo Logo

AWStats: Remote execution of arbitrary code

Content:

1. Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200606-06 / awstats
Release Date June 07, 2006
Latest Revision June 07, 2006: 01
Impact high
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
net-www/awstats < 6.5-r1 >= 6.5-r1 All supported architectures

Related bugreports: #130487

Synopsis

AWStats contains a bug in the sanitization of the input parameters which can lead to the remote execution of arbitrary code.

2. Impact Information

Background

AWStats is an advanced log file analyzer and statistics generator.

Description

Hendrik Weimer has found that if updating the statistics via the web frontend is enabled, it is possible to inject arbitrary code via a pipe character in the "migrate" parameter. Additionally, r0t has discovered that AWStats fails to properly sanitize user-supplied input in awstats.pl.

Impact

A remote attacker can execute arbitrary code on the server in the context of the application running the AWStats CGI script if updating of the statistics via web frontend is allowed. Nonetheless, all configurations are affected by a cross-site scripting vulnerability in awstats.pl, allowing a remote attacker to execute arbitrary scripts running in the context of the victim's browser.

3. Resolution Information

Workaround

Disable statistics updates using the web frontend to avoid code injection. However, there is no known workaround at this time concerning the cross-site scripting vulnerability.

Resolution

All AWStats users should upgrade to the latest version:

Code Listing 3.1

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=net-www/awstats-6.5-r1"

4. References



Updated June 07, 2006

Summary: This is a Gentoo Linux Security Advisory

security@gentoo.org
Contact Address

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2006 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.