AWStats fails to properly filter user-supplied input

2005-02-10T00:00:00
ID VU:272296
Type cert
Reporter CERT
Modified 2005-02-21T16:39:00

Description

Overview

A lack of input validation in AWStats may allow a remote attacker to execute arbitrary commands.

Description

AWStats is a Perl CGI script that collects and graphically displays statistics from web, FTP, and mail servers. The configdir parameter, within the awstats.pl Perl script, is supplied user-controlled data and then passed as a parameter to the Perl routine open(). A lack of input validation on the configdir parameter may allow an attacker to compromise a vulnerable server. If an attacker supplies this parameter with arbitrary commands prefixed with the '|' character, those commands will be executed on the server.

Please note that according to public reports, this vulnerability is being actively exploited.


Impact

If a remote attacker supplies AWStats with specially crafted input, that attacker may be able to execute arbitrary commands with the privileges of the attacked server process, in most cases user nobody.


Solution

Upgrade

This issue has been corrected in AWStats version 6.3. Users are strongly encouraged to upgrade to this version.


Vendor Information

272296

Filter by status: All Affected Not Affected Unknown

Filter by content: __ Vendor has issued information

__ Sort by: Status Alphabetical

Expand all

Affected Unknown __ Unaffected

Javascript is disabled. Click here to view vendors.

__ AWStats

Updated: February 10, 2005

Status

__ Vulnerable

Vendor Statement

No statement is currently available from the vendor regarding this vulnerability.

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

Addendum

According to AWStats website:

_Warning, a security hole was recently found in AWStats versions from 5.0 to 6.2 when AWStats is used as a CGI: A remote user can execute arbitrary commands on your server using permissions of your web server user (in most cases user "nobody"). If you use AWStats with another version or with option AllowToUpdateStatsFromBrowser to 0, you are safe. If not, it is highly recommanded to update to 6.3 version that fix this security hole. _

If you have feedback, comments, or additional information about this vulnerability, please send us email.

CVSS Metrics

Group | Score | Vector
---|---|---
Base | N/A | N/A
Temporal | N/A | N/A
Environmental | | N/A

References

Credit

This vulnerability was reported by iDEFENSE.

This document was written by Jeff Gennari.

Other Information

CVE IDs: | CVE-2005-0116
---|---
Severity Metric:** | 13.39
Date Public:
| 2005-01-18
Date First Published: | 2005-02-10
Date Last Updated: | 2005-02-21 16:39 UTC
Document Revision: | 44