OrderSys Multiple Vulnerabilities


Description   Multiple vulnerabilities have been discovered in OrderSys, which can be exploited by malicious people to cross-site scripting and SQL injection attacks.
1) Input passed via the "where_clause" parameter to interface_creator/index.php, interface_creator/index_short.php, and interface_creator/index_long.php (when "table_name" is set to "vendor" and "function" is set to "search") 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 to multiple scripts is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
List of affected scripts and parameters:
<a href="http://[host]/ordering/items.php?page
" target="_blank">http://[host]/ordering/items.php?page
</a>
<a href="http://[host]/ordering/vendors.php
" target="_blank">http://[host]/ordering/vendors.php
</a>
<a href="http://[host]/ordering/items.php
" target="_blank">http://[host]/ordering/items.php
</a>
<a href="http://[host]/ordering/orders.php
" target="_blank">http://[host]/ordering/orders.php
</a>
3) Input passed via the "where_field" parameter to interface_creator/index.php is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
The vulnerabilities are confirmed in version 1.6.4. Other versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
OrderSys 1.x
     
Solution   Update to version 1.7.
     
CVE   CVE-2011-5183
     
References   muuratsalo:
http://archives.neohapsis.com/archives/fulldisclosure/2011-11/att-0071/ordersys.txt
NS-12-007:
http://www.mavitunasecurity.com/xss-and-sql-injection-vulnerabilities-in-ordersys/
     
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 
Moderate 

 Vulnerability First Public Report Date 
2011-11-10 

 Target Type 
Server 

 Possible exploit 
Remote