90_ 发表于 2013-3-8 10:59:41

帝国CMS(EmpireCMS)商品评分插件注入

由于对参数的变量未作初始化检测导致 pf\rate.php 和 pf\ratemovie.php 中变量 $id 存在注入风险。
$id = $_GET['id'];
$query = "SELECT infopfen,infopfennum FROM phome_ecms_shop WHERE id=$id";
$result = mysql_query($query);

$v = $_GET['v'];
$id = $_GET['id'];
$query = "UPDATE phome_ecms_shop SET infopfen = infopfen + $v,infopfennum = infopfennum+1 WHERE id=$id";
$result = mysql_query($query);
$query = "SELECT infopfen,infopfennum FROM phome_ecms_shop WHERE id=$id";
$result = mysql_query($query);


作者:Varsog

点评:其实是没单引号
页: [1]
查看完整版本: 帝国CMS(EmpireCMS)商品评分插件注入