CVE-2008-3922
published 2008-09-04CVE-2008-3922: 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…
PriorityP275critical9.3CVSS 2.0
AVNACMAuNCCICAC
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
53.20%
98.8th percentile
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.
Affected
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| telartis_bv | awstats_totals | — | — |
| telartis_bv | awstats_totals | — | — |
| telartis_bv | awstats_totals | — | — |
| telartis_bv | awstats_totals | — | — |
| telartis_bv | awstats_totals | — | — |
Detection & IOCsextracted from sources · hover to see the quote
- →Detect exploitation attempts by monitoring HTTP GET requests to awstatstotals.php containing PHP injection sequences in the 'sort' parameter, particularly patterns like `"].` followed by PHP function calls such as `phpinfo()`, `passthru()`, or `exit()`. ↗
- →The Metasploit check method sends `sort='].phpinfo().exit().$a['` and looks for 'localhost' in the response body to confirm vulnerability — alert on this exact sort parameter value in web logs. ↗
- →The exploit payload uses `passthru()` with echo-delimited output markers `YYY` to extract command output — detect `YYY` boundary strings in HTTP responses or `passthru` in the sort parameter. ↗
- →The Metasploit module uses a hardcoded User-Agent string `Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)` for exploit requests — correlate this UA with requests to awstatstotals.php containing injection patterns. ↗
- ·All versions v1.0 through v1.14 of AWStats Totals are affected; there is no safe version in this range. ↗
- ·The vulnerability is in the `multisort` function which dynamically creates an anonymous PHP function from user-supplied input — the `sort` GET parameter is the sole attack vector. ↗
CVSS provenance
nvdv2.09.3CRITICALAV:N/AC:M/Au:N/C:C/I:C/A:C
vulncheck9.3CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-9qqc-cwxq-gc75: awstatstotals
ghsa_unreviewed·2022-05-02
CVE-2008-3922 [HIGH] CWE-94 GHSA-9qqc-cwxq-gc75: awstatstotals
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.
VulnCheck
telartis_bv awstats_totals Improper Control of Generation of Code ('Code Injection')
vulncheck·2008·CVSS 9.3
CVE-2008-3922 [CRITICAL] telartis_bv awstats_totals Improper Control of Generation of Code ('Code Injection')
telartis_bv awstats_totals Improper Control of Generation of Code ('Code Injection')
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.
Affected: telartis_bv awstats_totals
Required Action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Exploitation References: https://www.researchgate.net/publication/348602660_An_analysis_of_the_use_of_CVEs_by_IoT_malware
No detection rules found.
Exploit-DB
AWStats Totals 1.14 multisort - Remote Command Execution (Metasploit)
exploitdb·2011-05-25
CVE-2008-3922 AWStats Totals 1.14 multisort - Remote Command Execution (Metasploit)
AWStats Totals 1.14 multisort - Remote Command Execution (Metasploit)
---
##
# $Id: awstatstotals_multisort.rb 12715 2011-05-25 10:45:36Z patrickw $
##
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##
require 'msf/core'
class Metasploit3 'AWStats Totals = %q{
This module exploits an arbitrary command execution vulnerability in the
AWStats Totals PHP script. AWStats Totals version v1.0 - v1.14 are vulnerable.
},
'Author' => [ 'patrick' ],
'License' => MSF_LICENSE,
'Version' => '$Revision: 12715 $',
'References' =>
[
['CVE', '2008-3922'],
['OSVDB', '47807'],
['BID', '30856'],
['URL
Exploit-DB
AWStats Totals 1.14 - 'AWStatstotals.php' Remote Code Execution
exploitdb·2008-09-05
CVE-2008-3922 AWStats Totals 1.14 - 'AWStatstotals.php' Remote Code Execution
AWStats Totals 1.14 - 'AWStatstotals.php' Remote Code Execution
---
\nEx: awtotalhack.php host.tld on\n");}
array_shift($argv);
$host = $argv[0];
$magic = $argv[1];
# Start the interactive shell
while(1){
fwrite(STDOUT, "[shell:~ # ");
if ($magic == "on") {
$c = str_split(trim(fgets(STDIN)));
if (implode($c) == "exit") {die();};
for($i=0;$i
# milw0rm.com [2008-09-05]
Metasploit
AWStats Totals multisort Remote Command Execution
metasploit
AWStats Totals multisort Remote Command Execution
AWStats Totals multisort Remote Command Execution
This module exploits an arbitrary command execution vulnerability in the AWStats Totals PHP script. AWStats Totals version v1.0 - v1.14 are vulnerable.
Unit42
Mirai Variant ECHOBOT Resurfaces with 13 Previously Unexploited Vulnerabilities
blogs_unit42·2019-12-13
Mirai Variant ECHOBOT Resurfaces with 13 Previously Unexploited Vulnerabilities
Threat Research Center
Threat Research
Malware
## Mirai Variant ECHOBOT Resurfaces with 13 Previously Unexploited Vulnerabilities
Ruchna Nigam
Published: December 13, 2019
Malware
Threat Research
Vulnerabilities
Echobot
IoT
IoT Vulnerability
Mirai
Mirai variant
## Executive Summary
Since the discovery of the Mirai variant using the binary name ECHOBOT in May 2019, it has resurfaced from time to time, using new infrastructure, and more remarkably, adding to the list of vulnerabilities it scans for, as a means to increase its attack surface with each evolution.
Unlike other Mirai variants, this particular variant stands out for the sheer number of exploits it incorporates, with the latest version having a total of 71 unique exploits, 13 of which haven’t been seen exploite
Unit42
Mirai Variant ECHOBOT Resurfaces with 13 Previously Unexploited Vulnerabilities
blogs_unit42·2019-12-13
Mirai Variant ECHOBOT Resurfaces with 13 Previously Unexploited Vulnerabilities
## Executive Summary
Since the discovery of the Mirai variant using the binary name ECHOBOT in May 2019, it has resurfaced from time to time, using new infrastructure, and more remarkably, adding to the list of vulnerabilities it scans for, as a means to increase its attack surface with each evolution.
Unlike other Mirai variants, this particular variant stands out for the sheer number of exploits it incorporates, with the latest version having a total of 71 unique exploits, 13 of which haven’t been seen exploited in the wild until now, ranging from extremely old CVEs from as long back as 2003, to recent vulnerabilities made public as recently as early December 2019. Based on this seemingly odd choice, one could risk a guess that the attackers could potentially be aiming for the sweet sp
http://secunia.com/advisories/31630http://securityreason.com/securityalert/4218http://securityreason.com/securityalert/8259http://userwww.service.emory.edu/~ekenda2/EMORY-2008-01.txthttp://www.exploit-db.com/exploits/17324http://www.securityfocus.com/archive/1/495770/100/0/threadedhttp://www.securityfocus.com/bid/30856http://www.telartis.nl/xcms/awstats/http://www.vupen.com/english/advisories/2008/2442https://exchange.xforce.ibmcloud.com/vulnerabilities/44712https://www.exploit-db.com/exploits/6368http://secunia.com/advisories/31630http://securityreason.com/securityalert/4218http://securityreason.com/securityalert/8259http://userwww.service.emory.edu/~ekenda2/EMORY-2008-01.txthttp://www.exploit-db.com/exploits/17324http://www.securityfocus.com/archive/1/495770/100/0/threadedhttp://www.securityfocus.com/bid/30856http://www.telartis.nl/xcms/awstats/http://www.vupen.com/english/advisories/2008/2442https://exchange.xforce.ibmcloud.com/vulnerabilities/44712https://www.exploit-db.com/exploits/6368
2008-09-04
Published
Exploited in the wild