AWStats: Remote execution of arbitrary code AWStats contains a bug in the sanitization of the input parameters which can lead to the remote execution of arbitrary code. awstats 2006-06-07 2009-05-28 130487 remote 6.5-r1 6.5-r1

AWStats is an advanced log file analyzer and statistics generator.

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.

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.

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.

All AWStats users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose ">=www-misc/awstats-6.5-r1"
CVE-2006-1945 CVE-2006-2237 koon falco falco