Lucene search

K
gentooGentoo FoundationGLSA-200606-06
HistoryJun 07, 2006 - 12:00 a.m.

AWStats: Remote execution of arbitrary code

2006-06-0700:00:00
Gentoo Foundation
security.gentoo.org
27

0.955 High

EPSS

Percentile

99.4%

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.

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:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=www-misc/awstats-6.5-r1"
OSVersionArchitecturePackageVersionFilename
Gentooanyallwww-misc/awstats< 6.5-r1UNKNOWN