帝国CMS(EmpireCMS)商品评分插件漏洞

  • 发表于
  • Vulndb

由于对参数的变量未作初始化检测导致 pf\rate.php 和 pf\ratemovie.php 中变量 $id 存在注入风险。
使用EmpireCMS,并且使用了这个评分插件的朋友,可能你已经中招了,检查吧!

片断说明

$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);