OCS Inventory NG Server SQL Injection and File Disclosure Vulnerabilities


Description   Multiple vulnerabilities were identified in OCS Inventory NG Server, which could be exploited to conduct directory traversal and SQL injection attacks.
This first issue is caused by input validation errors in the "ocsreports/download.php" and "ocsreports/group_show.php" scripts when processing the "N", "DL", "O", "V", and "SYSTEMID" parameters, which may be exploited by malicious users to conduct SQL injection attacks.
The second vulnerability is caused by an input validation error in the "ocsreports/cvs.php" script when processing the "log" parameter, which may be exploited to disclose the contents of arbitrary files via directory traversal attacks.
     
Vulnerable Products   Vulnerable Software:
OCS Inventory NG Server version 1.02 and prior
     
Solution   Upgrade to version 1.02.1 : http://www.ocsinventory-ng.org/index.php?page=1-02-1
     
CVE  
     
References   http://www.ocsinventory-ng.org/index.php?mact=News
cntnt01
detail
0&cntnt01articleid=140&cntnt01returnid=15
http://milw0rm.com/exploits/8836
http://milw0rm.com/exploits/8868
     
Vulnerability Manager Detection   No
     
IPS Protection  
ASQ Engine alarm Available Since
Misc : Directory traversal - parameter starting with ../
3.2.0
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
PHP : Remote file inclusion prevention : suspicious root_path parameter found 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 - POST : suspicious OPENQUERY statement in data
3.2.0
SQL injection Prevention - POST : suspicious CREATE statement in data
3.2.0
Directory traversal using ..\..
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
Directory traversal
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
PHP : Remote file inclusion prevention : URL found as 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
Directory traversal backward root folder
3.2.0
SQL injection Prevention - POST : suspicious DECLARE statement in data
3.2.0
SQL injection Prevention - POST : suspicious HAVING statement in data
3.2.0
SQL injection Prevention - POST : suspicious CAST statement in data
3.2.0
SQL injection Prevention - GET : suspicious SQL statement in header
4.0.0
     


 
 
 
 
 Risk level 
Moderate 

 Vulnerability First Public Report Date 
2009-06-04 

 Target Type 
Server 

 Possible exploit 
Local & Remote