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

high Nessus Plugin ID 21407

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.

Solution

Update the affected package.

See Also

https://awstats.sourceforge.io/awstats_security_news.php

http://www.osreviews.net/reviews/comm/awstats

http://www.nessus.org/u?2b696abf

Plugin Details

Severity: High

ID: 21407

File Name: freebsd_pkg_2df297a2dc7411daa22b000c6ec775d9.nasl

Version: 1.15

Type: local

Published: 5/13/2006

Updated: 1/6/2021

Supported Sensors: Nessus

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:awstats, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Patch Publication Date: 5/5/2006

Vulnerability Publication Date: 5/3/2006

Reference Information

Secunia: 19969