Skip to main content
Vulnerability Database/CVE-2024-45699

CVE-2024-45699: Zabbix Cross-Site Scripting Vulnerability

CVE-2024-45699 is a cross-site scripting flaw in Zabbix that allows attackers to inject malicious scripts through the backurl parameter. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-45699 Overview

CVE-2024-45699 is a reflected Cross-Site Scripting (XSS) vulnerability in Zabbix affecting the /zabbix.php?action=export.valuemaps endpoint. The flaw stems from unsafe reflection of the backurl parameter without proper HTML escaping or output encoding. An attacker can craft a URL containing a JavaScript payload that executes in the victim's browser session when the link is visited. The weakness is tracked under CWE-79.

Critical Impact

Successful exploitation lets attackers execute arbitrary JavaScript in an authenticated Zabbix user's browser, enabling session theft, interface manipulation, or administrative action hijacking.

Affected Products

  • Zabbix (web frontend) — multiple versions prior to the vendor-released fixes
  • Debian LTS distributions shipping affected Zabbix packages
  • Any deployment exposing the export.valuemaps action to end users

Discovery Timeline

  • 2025-04-02 - CVE-2024-45699 published to the National Vulnerability Database (NVD)
  • 2025-04 - Debian LTS security announcement published
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-45699

Vulnerability Analysis

The Zabbix web frontend exposes an export workflow for value maps at /zabbix.php?action=export.valuemaps. This action accepts a backurl query parameter used to construct the navigation context after export. The frontend reflects the parameter value into HTML output without applying context-appropriate encoding. Attackers who supply JavaScript inside backurl cause that script to render and execute within the authenticated user's browser.

Because execution occurs in the context of the Zabbix origin, the payload can read session cookies accessible to JavaScript, forge API calls, pivot into administrative pages, or alter monitoring data presented to the operator. Monitoring platforms such as Zabbix frequently host privileged sessions, which raises the operational impact of a reflected XSS in this endpoint.

Root Cause

The root cause is missing output encoding on a user-controlled parameter. The backurl value is treated as trusted navigation data instead of untrusted input. The absence of HTML entity escaping and URL validation lets <script> tags and javascript: constructs reach the rendered page.

Attack Vector

Exploitation requires an authenticated Zabbix user to click or load an attacker-crafted link pointing to the vulnerable endpoint. The payload is delivered through the backurl query parameter and executes immediately upon reflection. The attack vector is network-based and requires user interaction, aligning with the CVSS 4.0 vector published for this CVE.

No verified public exploit code is available. The vulnerability mechanism is documented in the Zabbix Issue Tracker Entry (ZBX-26254) and the Debian LTS Announcement.

Detection Methods for CVE-2024-45699

Indicators of Compromise

  • Web server access logs containing requests to /zabbix.php?action=export.valuemaps with backurl values that include <, >, script, javascript:, onerror=, or URL-encoded equivalents such as %3Cscript%3E.
  • Referer headers originating from external domains that point users to the export action.
  • Unexpected outbound requests from browsers rendering Zabbix pages, indicating payload callbacks.

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules that inspect the backurl parameter for HTML tags, event handlers, and script protocol handlers.
  • Correlate authenticated session identifiers with anomalous API calls that follow a visit to export.valuemaps.
  • Review browser Content Security Policy (CSP) violation reports for the Zabbix origin to flag injected scripts.

Monitoring Recommendations

  • Centralize Zabbix frontend access logs and alert on suspicious query strings targeting zabbix.php actions.
  • Monitor administrative actions in Zabbix audit logs for unexpected configuration changes following user navigation events.
  • Track user-agent and IP anomalies for accounts that recently interacted with export URLs.

How to Mitigate CVE-2024-45699

Immediate Actions Required

  • Upgrade Zabbix to a fixed version published by the vendor as referenced in ZBX-26254.
  • Apply Debian LTS updates described in the Debian LTS Announcement for affected package versions.
  • Restrict Zabbix frontend access to trusted networks or VPN-reachable segments until patching completes.

Patch Information

Zabbix has addressed the issue through updates tracked in the vendor advisory ZBX-26254. Operators should install the fixed Zabbix frontend packages for their distribution and verify the backurl parameter is encoded in rendered output after the upgrade. Debian LTS users should install the patched zabbix source package provided in the April 2025 LTS announcement.

Workarounds

  • Enforce a strict Content Security Policy on the Zabbix frontend that disallows inline scripts and restricts script sources to the Zabbix origin.
  • Configure a WAF rule to reject requests to /zabbix.php when backurl contains HTML control characters or non-relative URLs.
  • Train operators to avoid clicking Zabbix URLs delivered via email, chat, or external sources without verification.
bash
# Example ModSecurity rule to block script payloads in backurl
SecRule ARGS:backurl "@rx (?i)(<script|javascript:|onerror=|onload=|%3Cscript)" \
    "id:1004569,phase:2,deny,status:403,log,\
     msg:'CVE-2024-45699: Zabbix backurl XSS attempt blocked'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.