Thinksaas 越权+SQL注入#1

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

### 简要描述: Thinksaas SQL注入#1 ### 详细说明: /app/article/action/edit.php ``` case "do" : $articleid = intval ( $_POST ['articleid'] ); $cateid = intval ( $_POST ['cateid'] ); $title = tsClean ( $_POST ['title'] );//过滤 $content = tsClean ( $_POST ['content'] );//过滤 if ($TS_USER ['user'] ['isadmin'] == 0) { // 过滤内容开始 aac ( 'system' )->antiWord ( $title );//过滤垃圾词 aac ( 'system' )->antiWord ( $content );//过滤过滤垃圾词 // 过滤内容结束 } if ($title == '' || $content == '') qiMsg ( "标题和内容都不能为空!" ); $new ['article']->update ( 'article', array ( 'articleid' => $articleid ) , array ( 'cateid' => $cateid, 'title' => $title, 'content' => $content ) ); ``` 跟进tsClean,/thinksaas/tsFunction.php: ``` function tsClean($text) { $text = cleanJs ( $text ); return $text; } function cleanJs($text) { $text = trim ( $text ); $text = stripslashes ( $text ); // 完全过滤注释 $text = preg_replace ( '/<!--?.*-->/', '', $text ); // 完全过滤动态代码 $text = preg_replace ( '/<\?|\?>/', '', $text ); // 完全过滤js $text = preg_replace (...

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