Thinksaas v2.1 Sql Injection

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

### 简要描述: 今天看到发布了2.1就去下载了个看看。 但是还是有洞没补。 ### 详细说明: \app\article\action\admin\cate.php 这文件在admin目录下 是为了让是管理才能访问的? 但是我自己在前台注册了一个用户, 可以直接访问到。 难道这是传说中的越权? ``` case "edit_do": $cateid = intval($_POST['cateid']); $catename = tsClean($_POST['catename']); $new['article']->update('article_cate',array( 'cateid'=>$cateid, ),array( 'catename'=>$catename, 'orderid'=>intval($_POST['orderid']), )); header("Location: ".SITE_URL."index.php?app=article&ac=admin&mg=cate&ts=list"); break; } ``` ``` 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 ( '/<script?.*\/script>/', '', $text ); // 过滤多余html $text = preg_replace ( '/<\/?(html|head|meta|link|base|body|title|style|script|form|iframe|frame|frameset)[^><]*>/i', '', $text ); // 过滤on事件lang js...

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