razorCMS Multiple Vulnerabilities


Description   A security issue and multiple vulnerabilities have been discovered in razorCMS, which can be exploited by malicious users to conduct script insertion attacks and compromise a vulnerable system and by malicious people to disclose sensitive information and conduct cross-site request forgery attacks.
1) Input passed via the "content" parameter to admin/index.php when creating or editing a page is not properly sanitised before being displayed to the user. This can be exploited to insert arbitrary HTML and script code, which will be executed in a user's browser session in context of an affected site when the malicious data is being viewed.
This vulnerability is confirmed in version 1.0 STABLE and 1.2.1 STABLE. Other versions may also be affected.
2) The application stores a database backup inside the "datastore/backup" directory within the web root and can be exploited to disclose sensitive information by downloading the file.
This security issue is confirmed in version 1.2.1 STABLE. Other versions may also be affected.
3) The application allows users to perform certain actions via HTTP requests without performing any validity checks to verify the requests. This can be exploited to e.g. unpublish site content by tricking a logged in administrator into visiting a malicious web site.
4) The admin/core/admin_func.php script does not verify uploaded files and can be exploited to execute arbitrary PHP code by uploading a malicious PHP script.
These vulnerabilities are confirmed in version 1.2.1 STABLE. Other versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
razorCMS 1.x
     
Solution   Edit the source code to ensure that input is properly sanitised and verified. Restrict access to the "datastore/backup" directory (e.g. via ".htaccess"). Do not browse untrusted sites or follow untrusted links while being logged-in to the application.
     
CVE   CVE-2010-5051
     
References   HTB22376:
http://www.htbridge.ch/advisory/xss_vulnerability_in_razorcms.html
KedAns-Dz:
http://packetstormsecurity.org/files/109705/Razor-CMS-1.2-File-Disclosure.html
Hyo jun Oh:
http://www.exploit-db.com/exploits/18574/
Ivano Binetti:
http://www.exploit-db.com/exploits/18575/
     
Vulnerability Manager Detection   No
     
IPS Protection  
ASQ Engine alarm Available Since
XSS - Prevention - POST : suspicious tag with event found in data
3.2.0
XSS - Prevention - POST : suspicious 'meta' tag found in data
3.2.0
XSS - Prevention - POST : suspicious 'object' tag found in data
3.2.0
XSS - Prevention - POST : suspicious 'applet' tag found in data
3.2.0
XSS - Prevention - POST : 'location' javascript object found in data
3.2.0
XSS - Prevention - POST : javascript code found in data
3.2.0
XSS - Prevention - POST : suspicious 'iframe' tag found in data
3.2.0
XSS - Prevention - POST : code allowing cookie access found in data
3.2.0
XSS - Prevention - POST : suspicious 'img' attribute found in data
3.2.0
XSS - Prevention - POST : suspicious 'embed' tag found in data
3.2.0
XSS - Prevention - POST : suspicious 'style' tag found in data
3.2.0
XSS - Prevention - POST : suspicious 'div' tag found in data
3.2.0
XSS - Prevention - POST : 'script' tag found in data
3.2.0
XSS - Prevention - POST : suspicious 'style' attribute found in data
3.2.0
XSS - Prevention - POST : suspicious 'style' tag found in data
5.0.0
XSS - Prevention - POST : javascript code found in data
5.0.0
XSS - Prevention - POST : suspicious tag with event found in data
5.0.0
XSS - Prevention - POST : suspicious 'embed' tag found in data
5.0.0
XSS - Prevention - POST : 'location' javascript object found in data
5.0.0
XSS - Prevention - POST : code allowing cookie access found in data
5.0.0
XSS - Prevention - POST : 'script' tag found in data
5.0.0
XSS - Prevention - POST : suspicious 'style' attribute found in data
5.0.0
XSS - Prevention - POST : suspicious 'applet' tag found in data
5.0.0
XSS - Prevention - POST : suspicious 'div' tag found in data
5.0.0
XSS - Prevention - POST : suspicious 'img' attribute found in data
5.0.0
XSS - Prevention - POST : suspicious 'meta' tag found in data
5.0.0
XSS - Prevention - POST : suspicious 'object' tag found in data
5.0.0
XSS - Prevention - POST : suspicious 'iframe' tag found in data
5.0.0
     


 
 
 
 
 Risk level 
Moderate 

 Vulnerability First Public Report Date 
2010-05-26 

 Target Type 
Server 

 Possible exploit 
Remote