TCCMS在app/controller/news.class.php存在sql注入漏洞

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

### 1. 漏洞成因 在app/controller/news.class.php中all函数对参数过滤不严 ``` public function all() { $this->userIsLogin (); $_Obj = M($this->objName); $categoryObj = M("category"); $_Obj->pageSize = 20; $where = "1=1"; $key = StringUtil::GetSQLValueString($_POST['key']); $cid = intval($_GET['cid']); if ($key != "") { $where .= " and title like '$key%'"; } if (!empty($cid) && $cid != "") { $where .= " and classid = " . $cid; } if ($_GET["type"] == "user") { $where .= " and uid = " . $_COOKIE['userId']; } if (isset($_GET['yz'])) { $where .= " AND yz =".$_GET['yz']; } if (isset($_GET['levels'])) { $where .= " AND levels =".$_GET['levels']; } if (isset($_GET['special'])) { $where .= " AND special =".$_GET['special']; } if (isset($_GET['top'])) { $where .= " AND top =".$_GET['top']; } if (isset($_GET['flashpic'])) { $where .= " AND flashpic =".$_GET['flashpic']; } if (isset($_GET['isphoto'])) { $where .= " AND isphoto =".$_GET['isphoto']; } $_Obj->setSortId(); $orderBy = $_GET['sortId']; $_objAry =...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息