Discuz! moderation.inc.php 数据库'注射'漏洞

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

在文件include/moderation.inc.php里代码: $threadlist = $loglist = array(); if($tids = implodeids($moderate)) { $query = $db->query("SELECT * FROM {$tablepre}threads WHERE tid IN ($tids) AND fid='$fid' AND displayorder>='0' AND digest>='0' LIMIT $tpp"); while($thread = $db->fetch_array($query)) { ... $threadlist[$thread['tid']] = $thread; ... foreach($threadlist as $tid => $thread) { ... if($type == 'redirect') { $db->query("INSERT INTO {$tablepre}threads (fid, readperm, iconid, author, authorid, subject, dateline, lastpost, lastposter, views, replies, displayorder, digest, closed, special, attachment) VALUES ('$thread[fid]', '$thread[readperm]', '$thread[iconid]', '".addslashes($thread['author'])."', '$thread[authorid]', '".addslashes($thread['subject'])."', '$thread[dateline]', '$thread[dblastpost]', '$thread[lastposter]', '0', '0', '0', '0', '$thread[tid]', '0', '0')"); 这个比较明显,从数据库查询出的值$thread[lastposter]直接带入了insert语句中,导致了注射:)...

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