UBB.threads 'Forum[]'数组SQL注入漏洞

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

BUGTRAQ ID: 31074 CNCAN ID:CNCAN-2008091108 UBB.threads是一款基于PHP的论坛程序。 UBB.threads搜索功能存在SQL注入攻击,远程攻击者可以利用漏洞获得敏感信息或操作数据库。 问题存在于dosearch.inc.php // The forums we are searching will be in a different format // depending on where we are coming from if (@is_array($_POST['Forum'])) { $Forum = join(",",$_POST['Forum']); } elseif (@is_array($_GET['Forum'])) { $Forum = join(",",$_GET['Forum']); } elseif (isset($_POST['Forum'])) { $Forum = ",{$_POST['Forum']},"; } elseif (isset($_GET['Forum'])) { $Forum = ",{$_GET['Forum']},"; } else { $Forum = ""; } 如上代码中,$Forum变量分配给未初始化的GPC数据,基于几个不同的条件,就会执行如下代码: // Now we need to figure out what forums we are searching $catin = ""; $boardin = ""; $allforums = ""; $forumlist = ""; $Forum = split(",",$Forum); for($i=0;$i $kids) { if (in_array($bnum,$kids) && !preg_match("/'$fid'/",$boardin)) { $boardin .="'$fid',"; } // end if } //...

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