AWStats fails to properly handle "\\" when specifying a configuration file directory. This could allow an attacker to specify an arbitrary configuration file located on an SMB share.
From the AWStats project website: "AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically". AWStats is vulnerable to remote command execution when installed on Apache Tomcat on Microsoft Windows operating systems. The AWStats application fails to properly handle "\\" when specifying a configuration file directory.
An attacker can instruct the web server to load a malicious configuration file located on a malicious SMB file share. The malicious configuration file can contain arbitrary commands to be run on the vulnerable remote server as the web service account.
According to the vendor's changelog this vulnerability has been addressed in AWStats 7.0.
Thanks to StenoPlasma at ExploitDevelopment for reporting this vulnerability.
This document was written by Michael Orlando.