FreeBSD : awstats -- arbitrary command execution vulnerability (2df297a2-dc74-11da-a22b-000c6ec775d9)

This script is Copyright (C) 2006-2013 Tenable Network Security, Inc.


Synopsis :

The remote FreeBSD host is missing a security-related update.

Description :

OS Reviews reports :

If the update of the stats via web front-end is allowed, a remote
attacker can execute arbitrary code on the server using a specially
crafted request involving the migrate parameter. Input starting with a
pipe character ('|') leads to an insecure call to Perl's open function
and the rest of the input being executed in a shell. The code is run
in the context of the process running the AWStats CGI.

Arbitrary code can be executed by uploading a specially crafted
configuration file if an attacker can put a file on the server with
chosen file name and content (e.g. by using an FTP account on a shared
hosting server). In this configuration file, the LogFile directive can
be used to execute shell code following a pipe character. As above, an
open call on unsanitized input is the source of this vulnerability.

See also :

http://awstats.sourceforge.net/awstats_security_news.php
http://www.osreviews.net/reviews/comm/awstats
http://www.nessus.org/u?0d25006c

Solution :

Update the affected package.

Risk factor :

High

Family: FreeBSD Local Security Checks

Nessus Plugin ID: 21407 (freebsd_pkg_2df297a2dc7411daa22b000c6ec775d9.nasl)

Bugtraq ID:

CVE ID:

Ready to Amp Up Your Nessus Experience?

Get Nessus Professional to scan unlimited IPs, run compliance checks & more

Buy Nessus Professional Now