PunBB Multiple Remote SQL Injection and Local File Inclusion Vulnerabilities


Description   Multiple vulnerabilities have been identified in PunBB, which could be exploited by remote attackers to execute arbitrary commands.
The first issue is due to an input validation error in the "search.php" script that does not initialize the "result_list" array, which could be exploited in combination with the PHP "Zend_Hash_Del_Key_Or_Index" vulnerability to bypass security restrictions and conduct SQL injection attacks.
The second flaw is due to an input validation error in the "register.php" script that does not validate the "language" parameter before being inserted into the database and used as an inclusion parameter in the "include/common.php" file, which could be exploited by remote attackers to include local files (e.g. uploaded avatars) and execute arbitrary commands with the privileges of the web server.
The third vulnerability is due to input validation errors in various scripts that do not validate certain parameters before being used in SQL statements, which could be exploited by malicious administrators to conduct SQL injection attacks.
     
Vulnerable Products   Vulnerable Software:
PunBB version 1.2.13 and prior
     
Solution   Upgrade to PunBB version 1.2.14 : http://bfexplorer.sourceforge.net/downloads.php
     
CVE   CVE-2006-5738
CVE-2006-5736
CVE-2006-5735
     
References   http://www.punbb.org/changelogs/1.2.13_to_1.2.14.txt
http://www.wargan.org/index.php/2006/10/29/4-punbb-1213-multiple-vulnerabilities
     
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-10-30 

 Target Type 
Server 

 Possible exploit 
Local & Remote