phpBB Remote Command Execution and SQL Injection Vulnerabilities


Description   Multiple vulnerabilities were identified in phpBB, which could be exploited by remote attackers to execute arbitrary commands or conduct SQL injection and cross site scripting attacks.
The first issue is due to an input validation error in the "usercp_register.php" script that does not properly validate the "signature_bbcode_uid" variable, which could be exploited by malicious people to conduct SQL injection attacks (when "magic_quotes_gpc" is set to "Off") or execute arbitrary PHP commands by injecting the "e" modifier into a "preg_replace()" statement.
The second vulnerability is due to input validation errors in the "usercp_register.php", "login.php", and "search.php" scripts when processing a specially crafted "error_msg", "forward_page", or "list_cat" variable, which may be exploited by attackers to cause arbitrary scripting code to be executed by the user's browser.
Note : A fully functional exploit has been released.
     
Vulnerable Products   Vulnerable Software:
phpBB version 2.0.17 and prior
     
Solution   Upgrade to phpBB version 2.0.18 : http://www.phpbb.com/downloads.php
     
CVE   CVE-2005-3419
CVE-2005-3418
CVE-2005-3417
CVE-2005-3416
CVE-2005-3415
     
References   http://www.phpbb.com/phpBB/viewtopic.php?f=14&t=336756
http://www.hardened-php.net/advisory_172005.75.html
     
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
phpBB: code execution attempt using the signature_bbcode_uid parameter
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
phpBB: HTML code injection attempt
3.2.0
SQL injection Prevention - POST : suspicious HAVING statement in data
3.2.0
     


 
 
 
 
 Risk level 
High 

 Vulnerability First Public Report Date 
2005-10-31 

 Target Type 
Server 

 Possible exploit 
Local & Remote