ThinkSAAS 最新版注入

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

### 简要描述: ThinkSAAS 2.4 ### 详细说明: app\group\action\add.php 60行开始 ``` // 执行发布帖子 case "do" : ......省略...... $groupid = intval ( $_POST ['groupid'] ); $title = trim( $_POST ['title'] ); $content = tsClean( $_POST ['content'] ); $typeid = intval ( $_POST ['typeid'] ); $tag = $_POST ['tag']; ......省略...... // 处理@用户名 if (preg_match_all ( '/@/', $content, $at )) { preg_match_all ( "/@(.+?)([\s|:]|$)/is", $content, $matches ); $unames = $matches [1]; $ns = "'" . implode ( "','", $unames ) . "'"; $csql = "username IN($ns)"; if ($unames) { $query = $db->fetch_all_assoc ( "select userid,username from " . dbprefix . "user_info where $csql" ); foreach ( $query as $v ) { $content = str_replace ( '@' . $v ['username'] . '', '[@' . $v ['username'] . ':' . $v ['userid'] . ']', $content ); $msg_content = '我在帖子中提到了你<br />去看看:' . tsUrl ( 'group', 'topic', array ( 'id' => $topicid ) ); aac ( 'message' )->sendmsg ( $userid, $v ['userid'], $msg_content ); } $new ['group']->update ( 'group_topic', array (...

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