Elite Bulletin Board Multiple SQL Injection Vulnerabilities


Description   High-Tech Bridge SA has discovered multiple vulnerabilities, which can be exploited by malicious people to conduct SQL injection attacks.
Input appended to the URL after multiple scripts is not properly sanitised within the "update_whosonline_reg()" and "update_whosonline_guest()" functions (includes/user_function.php) before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
List of affected scripts:
<a href="http://[host]/checkuser.php
" target="_blank">http://[host]/checkuser.php
</a>
<a href="http://[host]/groups.php
" target="_blank">http://[host]/groups.php
</a>
<a href="http://[host]/index.php
" target="_blank">http://[host]/index.php
</a>
<a href="http://[host]/login.php
" target="_blank">http://[host]/login.php
</a>
<a href="http://[host]/quicklogin.php
" target="_blank">http://[host]/quicklogin.php
</a>
<a href="http://[host]/register.php
" target="_blank">http://[host]/register.php
</a>
<a href="http://[host]/search.php
" target="_blank">http://[host]/search.php
</a>
<a href="http://[host]/viewboard.php
" target="_blank">http://[host]/viewboard.php
</a>
<a href="http://[host]/viewtopic.php
" target="_blank">http://[host]/viewtopic.php
</a>
The vulnerabilities are confirmed in version 2.1.21. Prior versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
Elite Bulletin Board 2.x
     
Solution   Update to version 2.1.22.
     
CVE   CVE-2012-5874
     
References   Elite Bulletin Board:
http://elite-board.us/Community/viewtopic.php?bid=1&
tid=310
HTB23133:
https://www.htbridge.com/advisory/HTB23133
     
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 - GET : suspicious combination of 'OR' or 'AND' statements in URL
3.2.0
SQL injection Prevention - GET : suspicious CREATE statement in URL
3.2.0
SQL injection Prevention - GET : suspicious CAST statement in URL
3.2.0
SQL injection Prevention - GET : suspicious OPENROWSET statement in URL
3.2.0
SQL injection Prevention - GET : suspicious DECLARE statement in URL
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 - GET : possible database version probing
3.2.0
SQL injection Prevention - GET : suspicious UPDATE SET statement in URL
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 - GET : suspicious EXEC statement in URL
3.2.0
SQL injection Prevention - GET : block comment delimiters in URL
3.2.0
SQL injection Prevention - GET : suspicious SQL statement in header
4.0.0
SQL injection Prevention - GET : Authentication bypass attempt with OR statement
5.0.0
     


 
 
 
 
 Risk level 
Moderate 

 Vulnerability First Public Report Date 
2012-12-20 

 Target Type 
Server 

 Possible exploit 
Remote