Description
AWStats 6.1, and other versions before 6.3, allows remote attackers to execute arbitrary commands via shell metacharacters in the configdir parameter to aswtats.pl.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | awstats | 6.2-1.1 | — |
| Debian 13 | awstats | 6.2-1.1 | — |
| Debian 12 | awstats | 6.2-1.1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
AWStats configdir Remote Command Execution
exploit/unix/webapp/awstats_configdir_exec
Exploit-DB 4
- AWStats 6.1 < 6.2 - 'configdir' Remote Command Execution (Metasploit) EDB-16905 · webapps · Dec 26, 2009 · verified
- AWStats 6.0 < 6.2 - 'configdir' Remote Command Execution EDB-772 · webapps · Jan 25, 2005 · verified
- AWStats 6.0 < 6.2 - 'configdir' Remote Command Execution EDB-773 · webapps · Jan 25, 2005 · verified
- AWStats 6.2 < 6.1 - configdir Command Injection (Metasploit) EDB-9912 · webapps · Jan 15, 2005 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 20050117 AWStats Remote Command Execution Vulnerability third-party-advisory
- 12298 vdb-entry
- http://packetstormsecurity.org/0501-exploits/AWStatsVulnAnalysis.pdf
- VU#272296 third-party-advisory
- 13002 vdb-entry
- 13893 third-party-advisory
- http://awstats.sourceforge.net/docs/awstats_changelog.txt