Lucene search

zdtTaurus Omar1337DAY-ID-36593
HistoryJul 26, 2021 - 12:00 a.m.

Zabbix 5.x SQL Injection / Cross Site Scripting Vulnerabilities

Taurus Omar
# Exploit Title: Zabbix all version  / Multiple Vulnerabilities
# Exploit Author: TaurusOmar
# Twitter:@TaurusOmar
# CVSS: 3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L 
# Version: Zabbix [1.x, 2.x, 3.x, 4,x 5.x]  
# Risk: High (9.0)
# Vendor Homepage:
# Tested on: Arch Linux
# Greetz: PwnEc

# Software Description:
Zabbix is the ultimate enterprise-level software designed for real-time monitoring of millions of metrics collected from tens of thousands of servers, virtual machines and network devices.
With encryption support it is possible to secure communications between separate Zabbix components (such as Zabbix server, proxies, agents and command-line utilities) using Transport Layer 
Security (TLS) protocol v.1.2. Certificate-based and pre-shared key-based encryption is supported. Encryption is optional and configurable for individual components.

# 1.) Vulnerability Description => Blind Sqli (affect all versions):
An error in the application allows executing sql statements blindly
Path: https://domain/zabbix/hostinventoriesoverview.php?sid=[RANDOM_TOKEN]+Blind_Sqli&form_refresh=1&groupid=0&groupby=alias

# 2.) Vulnerability Description => Bypass login (affect all versions):
An error in the security of the form allows the login page to be skipped directly to the administration panel, which allows an attacker to access the entire application, 
managing to make queries, edit parameters, among others.

Path: http://domain/zabbix/index.php

Vulnerable Form:
<form method="post" action="index.php" accept-charset="utf-8" aria-label="Sign in">
<li><label for="name">Username</label><input type="text" id="name" name="name" value="" maxlength="255" autofocus="autofocus"></li>
<li><label for="password">Password</label><input type="password" id="password" name="password" value="" maxlength="255"></li>
<li><input type="checkbox" id="autologin" name="autologin" value="1" class="checkbox-radio" checked="checked"><label for="autologin"><span></span>Remember me for 30 days</label></li>
<li><button type="submit" id="enter" name="enter" value="Sign in">Sign in</button></li>
<li class="sign-in-txt">or <a href="index.php?enter=guest">sign in as guest</a></li>

Pocs Bypass login - access dashborad:

# 3.) Vulnerability Description => Stored Cross Site Scripting (affect all versions):
The application allows uploading an xml file which can be modified by the <name> parameter with a load util XSS

Path: https://domain//zabbix/screen.import.php?rules_preset=screen

Malicious File .xml

<?xml version="1.0" encoding="UTF-8"?>

# 4.) Samples web Vulnerabilities whit diferent version:[bypasslogin][blind_sqli][Stored_Xss][bypasslogin][blind_sqli][Stored_Xss][bypasslogin][blind_sqli][Stored_Xss][bypasslogin][blind_sqli][Stored_Xss][bypasslogin][blind_sqli][Stored_Xss][bypasslogin][blind_sqli][Stored_Xss]

#  Disclaimer:
#  This or previous programs are for Educational purpose ONLY. Do not use it without permission. 
#  The usual disclaimer applies, especially the fact that Taurus Omar is not liable for any damages 
#  caused by direct or indirect use of the  information or functionality provided by these programs. 
#  The author or any Internet provider  bears NO responsibility for content or misuse of these programs 
#  or any derivatives thereof. By using these programs you accept the fact  that any damage (dataloss, 
#  system crash, system compromise, etc.) caused by the use  of these programs are not Taurus Omar's 
#  responsibility.