Basic Analysis and Security Engine SQL Injection and File Inclusion Vulnerabilities


Description   Two vulnerabilities have been discovered in Basic Analysis and Security Engine, which can be exploited by malicious people to conduct SQL injection attacks and compromise a vulnerable system.
1) Input passed via certain "ip_addr[][]" parameter array values to base_qry_main.php (when "submit" is set to "Query") is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
2) Input passed via the "BASE_path" parameter to base_graph_form.php is not properly verified before being used to include files. This can be exploited to include arbitrary files from local or external resources.
Successful exploitation of this vulnerability requires that "register_globals" is enabled.
The vulnerabilities are confirmed in version 1.4.5. Other versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
Basic Analysis and Security Engine (BASE) 1.x
     
Solution   Edit the source code to ensure that input is properly verified and sanitised.
     
CVE   CVE-2012-1199
CVE-2012-1198
CVE-2012-1017
     
References   http://packetstormsecurity.org/files/109488/BASE-1.4.5-SQL-Injection.html
http://packetstormsecurity.org/files/109663/BASE-1.4.5-Remote-File-Inclusion-Shell-Creation.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 - 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
     


 
 
 
 
 Risk level 
High 

 Vulnerability First Public Report Date 
2012-02-07 

 Target Type 
Server 

 Possible exploit 
Remote