OSClass Multiple Vulnerabilities


Description   Multiple vulnerabilities have been discovered in OSClass, which can be exploited by malicious people to conduct cross-site scripting, cross-site request forgery, and SQL injection attacks.
1) Input passed via the "sCity", "sPattern", "sPriceMax", and "sPriceMin" parameters to index.php (when "page" is set to "search") and via the "id" parameter to oc-admin/index.php (when "page" is set to "ajax" and "action" is set to "enable_category") is not properly sanitised in the "getParam()" function in oc-includes/osclass/core/Params.php 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.
2) Input passed via the "sCategory" parameter to index.php (when "page" is set to "search") is not properly sanitised in the "osc_search_category_id()" function in oc-includes/osclass/helpers/hSearch.php and the "findBySlug()" function in oc-includes/osclass/model/Category.php before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
3) The application allows users to perform certain actions via HTTP requests without performing proper validity checks to verify the requests. This can be exploited to e.g. upload PHP files when a logged-in administrator visits a specially crafted web page.
The vulnerabilities are confirmed in version 2.3.4.1. Prior versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
OSClass 2.x
     
Solution   Update to version 2.3.5.
     
CVE  
     
References   High-Tech Bridge SA:
https://www.htbridge.ch/advisory/multiple_vulnerabilities_in_osclass.html
OSClass:
http://osclass.org/2012/01/16/osclass-2-3-5/
CSA-12003:
http://www.codseq.it/advisories/multiple_vulnerabilities_in_osclass
     
Vulnerability Manager Detection   No
     
IPS Protection  
ASQ Engine alarm Available Since
XSS - Prevention - GET : suspicious 'iframe' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious 'meta' tag found in URL
3.2.0
SQL injection Prevention - GET : suspicious OR statement in URL
3.2.0
XSS - Prevention - GET : suspicious tag with event found in URL
3.2.0
XSS - Prevention - GET : suspicious 'applet' tag found 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
XSS - Phishing : suspicious 'div' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious 'style' attribute found in URL
3.2.0
XSS - Prevention - GET : suspicious 'img' tag found 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
XSS - Phishing : suspicious 'a' tag found in URL
3.2.0
XSS - Prevention - GET : cookie access attempt using script language found in URL
3.2.0
SQL injection Prevention - GET : suspicious UPDATE SET statement in URL
3.2.0
XSS - Prevention - GET : suspicious 'embed' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious 'object' tag found in URL
3.2.0
SQL injection Prevention - GET : suspicious SELECT statement in URL
3.2.0
XSS - Phishing : suspicious 'form' tag found in URL
3.2.0
SQL injection Prevention - GET : suspicious INSERT statement in URL
3.2.0
XSS - Prevention - GET : javascript code found 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
XSS - Prevention - GET : evasion attempt using tag characters encoding in URL
3.2.0
SQL injection Prevention - GET : block comment delimiters in URL
3.2.0
XSS - Prevention - GET : suspicious 'style' tag found in URL
3.2.0
XSS - Phishing : suspicious 'link' tag found in URL
3.2.0
XSS - Prevention - GET : 'script' tag found in URL
3.2.0
XSS - Prevention - GET : 'location' javascript object found in URL
3.2.0
XSS - Prevention - GET : suspicious 'div' tag found 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 
2012-01-25 

 Target Type 
Server 

 Possible exploit 
Remote