Php-Stats Multiple Command Execution and SQL Injection Vulnerabilities


Description   Multiple vulnerabilities have been identified in Php-Stats, which could be exploited by remote attackers to execute arbitrary commands or disclose sensitive information.
The first issue is due to input validation errors in the "admin.php" script that does not properly validate the "option[language]" and "option[template]" parameters, which could be exploited by remote attackers to include local files.
The second flaw is due to an input validation error in the "admin.php" script when handling the "option[prefix]" variable, which could be exploited by malicious people to conduct SQL injection attacks.
The third vulnerability is due to an error in the "admin.php" file when handling the "option[admin_pass]" variable, which could be exploited by remote attackers to obtain adminitrative privileges and inject arbitrary PHP commands via the "config.php" or "option/php-stats-options.php" scripts.
The fourth issue is due to an input validation error in the "click.php" script that does not properly validate the "REMOTE_ADDR" HTTP header before being used in SQL statements, which could be exploited by malicious people to conduct SQL injection attacks.
The fifth issue is due to a design error where the "checktables.php" is accessible without requiring user authentication, which could be exploited by remote attackers to gain knowledge of sensitive information (e.g. table_prefix).
     
Vulnerable Products   Vulnerable Software:
Php-Stats version 0.1.9.1 and prior
     
Solution   Upgrade to PhpStats version 0.1.9.1b : http://www.phpstats.net/?Downloads
     
CVE   CVE-2006-1088
CVE-2006-1087
CVE-2006-1085
CVE-2006-1084
CVE-2006-1083
     
References   http://www.frsirt.com/english/reference/6883
     
Vulnerability Manager Detection   No
     
IPS Protection  
ASQ Engine alarm Available Since
SQL injection Prevention - GET : suspicious OR statement in URL
3.2.0
SQL injection Prevention - POST : suspicious SELECT statement in data
3.2.0
SQL injection Prevention - GET : suspicious combination of 'OR' or 'AND' statements in URL
3.2.0
SQL injection Prevention - POST : possible version probing in data
3.2.0
SQL injection Prevention - GET : suspicious CREATE statement in URL
3.2.0
SQL injection Prevention - GET : suspicious OPENROWSET statement in URL
3.2.0
SQL injection Prevention - POST : suspicious OPENQUERY statement in data
3.2.0
SQL injection Prevention - POST : suspicious CREATE statement in data
3.2.0
SQL injection Prevention - POST : suspicious UPDATE statement in data
3.2.0
SQL injection Prevention - POST : suspicious UNION statement in data
3.2.0
SQL injection Prevention - GET : suspicious OPENQUERY statement in URL
3.2.0
SQL injection Prevention - GET : suspicious shutdown statement in URL
3.2.0
SQL injection Prevention - GET : suspicious UNION SELECT statement in URL
3.2.0
SQL injection Prevention - POST : suspicious DROP statement in data
3.2.0
SQL injection Prevention - GET : possible database version probing
3.2.0
SQL injection Prevention - POST : suspicious INSERT statement in data
3.2.0
SQL injection Prevention - POST : suspicious OR statement in data
3.2.0
SQL injection Prevention - GET : suspicious UPDATE SET statement in URL
3.2.0
SQL injection Prevention - POST : suspicious EXEC statement in data
3.2.0
SQL injection Prevention - GET : suspicious SELECT statement in URL
3.2.0
SQL injection Prevention - GET : suspicious INSERT statement in URL
3.2.0
SQL injection Prevention - GET : suspicious DROP statement in URL
3.2.0
SQL injection Prevention - POST : suspicious OPENROWSET statement in data
3.2.0
SQL injection Prevention - GET : suspicious EXEC statement in URL
3.2.0
SQL injection Prevention - POST : suspicious HAVING statement in data
3.2.0
     


 
 
 
 
 Risk level 
High 

 Vulnerability First Public Report Date 
2006-03-05 

 Target Type 
Server 

 Possible exploit 
Local & Remote