ThinkSAAS最新版2.4 Xss漏洞 指谁打谁

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

### 简要描述: thinksaas2.4+php2.6+apache2 未过滤 感谢@xfkxfk ### 详细说明: 先看消息写入代码: /var/www/html/thinksaas/app/user/action/message.php ``` case "do": $msg_userid = $userid; $msg_touserid = intval($_POST['touserid']); $msg_content = tsFilter($_POST['content']); //用tsFilter过滤 aac('system')->antiWord($msg_content); //过滤垃圾词 aac('message')->sendmsg($msg_userid,$msg_touserid,$msg_content); /× //发送消息 public function sendmsg($userid,$touserid,$content){ $userid = intval($userid); $touserid = intval($touserid); $content = str_replace(SITE_URL,'[SITE_URL]',$content); $content = addslashes(trim($content)); if($touserid && $content){ $messageid = $this->create('message',array( 'userid'=> $userid, 'touserid'=> $touserid, 'content'=> $content, 'addtime'=> time(), )); } } } ×/ header("Location: ".tsUrl('message','my')); break; } ``` /var/www/html/thinksaas/thinksaas/tsFunction.php ``` function tsFilter($value) { $value = trim($value); //定义不允许提交的SQl命令和关键字 $words = array(); $words[] = "add "; $words[] = "and...

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