Vulnerabilities > CVE-2008-3922 - Code Injection vulnerability in Telartis BV Awstats Totals
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
awstatstotals.php in AWStats Totals 1.0 through 1.14 allows remote attackers to execute arbitrary code via PHP sequences in the sort parameter, which is used by the multisort function when dynamically creating an anonymous PHP function.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 5 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Leverage Executable Code in Non-Executable Files An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
- Manipulating User-Controlled Variables This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
D2sec
name | = 1.14 RCE |
url | http://www.d2sec.com/exploits/awstats_totals_=_1.14_rce.html |
Exploit-Db
description AWStats Totals =< v1.14 multisort Remote Command Execution. CVE-2008-3922. Webapps exploit for php platform file exploits/php/webapps/17324.rb id EDB-ID:17324 last seen 2016-02-02 modified 2011-05-25 platform php port published 2011-05-25 reporter metasploit source https://www.exploit-db.com/download/17324/ title AWStats Totals <= 1.14 multisort - Remote Command Execution type webapps description AWStats Totals (awstatstotals.php sort) Remote Code Execution Exploit. CVE-2008-3922. Webapps exploit for php platform file exploits/php/webapps/6368.php id EDB-ID:6368 last seen 2016-02-01 modified 2008-09-05 platform php port published 2008-09-05 reporter Ricardo Almeida source https://www.exploit-db.com/download/6368/ title AWStats Totals awstatstotals.php sort Remote Code Execution Exploit type webapps
Metasploit
description | This module exploits an arbitrary command execution vulnerability in the AWStats Totals PHP script. AWStats Totals version v1.0 - v1.14 are vulnerable. |
id | MSF:EXPLOIT/UNIX/WEBAPP/AWSTATSTOTALS_MULTISORT |
last seen | 2020-03-15 |
modified | 2017-11-08 |
published | 2011-05-25 |
references | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-3922 |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/unix/webapp/awstatstotals_multisort.rb |
title | AWStats Totals multisort Remote Command Execution |
Nessus
NASL family | CGI abuses |
NASL id | AWSTATSTOTALS_SORT_REMOTE_EXEC.NASL |
description | The remote web server is running a version of awstatstotals.php which does not properly sanitize its |
last seen | 2020-06-01 |
modified | 2020-06-02 |
plugin id | 34055 |
published | 2008-08-27 |
reporter | This script is Copyright (C) 2008-2018 Tenable Network Security, Inc. |
source | https://www.tenable.com/plugins/nessus/34055 |
title | AWStats Totals awstatstotals.php multisort() Function sort Parameter Arbitrary PHP Code Execution |
code |
|
Packetstorm
data source | https://packetstormsecurity.com/files/download/101698/awstatstotals_multisort.rb.txt |
id | PACKETSTORM:101698 |
last seen | 2016-12-05 |
published | 2011-05-26 |
reporter | Patrick Webster |
source | https://packetstormsecurity.com/files/101698/AWStats-Totals-1.14-Remote-Command-Execution.html |
title | AWStats Totals 1.14 Remote Command Execution |
References
- http://secunia.com/advisories/31630
- http://secunia.com/advisories/31630
- http://securityreason.com/securityalert/4218
- http://securityreason.com/securityalert/4218
- http://securityreason.com/securityalert/8259
- http://securityreason.com/securityalert/8259
- http://userwww.service.emory.edu/~ekenda2/EMORY-2008-01.txt
- http://userwww.service.emory.edu/~ekenda2/EMORY-2008-01.txt
- http://www.exploit-db.com/exploits/17324
- http://www.exploit-db.com/exploits/17324
- http://www.securityfocus.com/archive/1/495770/100/0/threaded
- http://www.securityfocus.com/archive/1/495770/100/0/threaded
- http://www.securityfocus.com/bid/30856
- http://www.securityfocus.com/bid/30856
- http://www.telartis.nl/xcms/awstats/
- http://www.telartis.nl/xcms/awstats/
- http://www.vupen.com/english/advisories/2008/2442
- http://www.vupen.com/english/advisories/2008/2442
- https://exchange.xforce.ibmcloud.com/vulnerabilities/44712
- https://exchange.xforce.ibmcloud.com/vulnerabilities/44712
- https://www.exploit-db.com/exploits/6368
- https://www.exploit-db.com/exploits/6368