CVE-2022-24919
Medium · 4.4CVSS
4.4
EPSS
1.2%
Published
Mar 9, 2022
CISA due date
—
Cloudanix analysis
A logged-in user can create a link that tricks other users into running harmful code on their screens when they click it.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- High
- Impact
- Data Tampering
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
An authenticated user can inject reflected JavaScript into a link for the graphs page; the payload executes in the victim's browser only if the attacker's link includes the victim's current CSRF token, granting the script the same DOM access as the legitimate page and allowing arbitrary content modifications.
Why it matters to the business
Successful social-engineering attacks can alter what users see on the graphs page, enabling phishing, credential theft, or unauthorized actions without persistent code on the server.
How an attack unfolds
An authenticated attacker crafts a URL containing malicious JavaScript for the graphs page, obtains the victim's current CSRF token through another channel or timing, and sends the link to the victim; when the victim clicks it the script runs with the victim's session privileges and can modify page contents in real time.
How to fix it
Upgrade the Zabbix frontend to a release that sanitizes all graph-page parameters and enforces strict CSRF validation; until then disable or restrict the graphs feature for untrusted users and enforce a strict Content-Security-Policy header.
How to confirm the fix worked
After upgrade, attempt to load a graphs URL containing a script tag and confirm the payload is rejected or escaped; scan recent web-access logs for any graph requests that contain script, javascript:, or data: schemes.
Typical attack path
- Attacker authenticates with a low-privileged account
- Attacker builds a graphs-page URL that embeds attacker-controlled JavaScript and the victim's current CSRF token
- Attacker distributes the crafted link via email, chat, or another trusted channel
- Victim clicks the link while logged in, causing the browser to execute the injected script
- Script performs actions visible to the victim such as displaying fake forms or exfiltrating displayed data
How to detect it
Review web-server access logs for graphs requests whose query strings contain script, javascript:, or encoded angle brackets; correlate any such requests with subsequent unusual DOM changes reported by users or browser telemetry.
What your security team should do
- Apply the vendor patch for the Zabbix frontend at the earliest maintenance window
- Add a Content-Security-Policy that blocks inline scripts on all authenticated pages
- Train users to treat unexpected graphs links with caution and to verify sender identity
- Enable enhanced logging of graph-page requests that contain non-alphanumeric parameters
The record
An authenticated user can create a link with reflected Javascript code inside it for graphs’ page and send it to other users. The payload can be executed only with a known CSRF token value of the victim, which is changed periodically and is difficult to predict. Malicious code has access to all the same objects as the rest of the web page and can make arbitrary modifications to the contents of the page being displayed to a victim during social engineering attacks.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | zabbix | 0 | 1:4.0.4+dfsg-1+deb10u1 |
| Debian:11 | zabbix | 0 | 1:5.0.44+dfsg-1+deb11u1 |
| Debian:12 | zabbix | 0 | 1:6.0.7+dfsg-2 |
| Debian:13 | zabbix | 0 | 1:6.0.7+dfsg-2 |
| Debian:9 | zabbix | 0 | 1:3.0.32+dfsg-0+deb9u3 |
| SUSE:Linux Enterprise Server 12 SP5 | zabbix | 0 | 4.0.12-4.15.2 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | zabbix | 0 | 4.0.12-4.15.2 |
| Ubuntu:20.04:LTS | zabbix | 0 | No fix |
| Ubuntu:22.04:LTS | zabbix | 0 | No fix |
| Ubuntu:24.10 | zabbix | 0 | 1:6.0.29+dfsg-1 |
| Ubuntu:Pro:20.04:LTS | zabbix | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | zabbix | 0 | No fix |
Related vulnerabilities
- CVE-2023-32726 The vulnerability is caused by improper check for check if RDLENGTH does not overflow the… Also affects zabbix
- CVE-2023-29456 URL validation scheme receives input from a user and then parses it to identify its… Also affects zabbix
- CVE-2023-29457 Reflected XSS attacks, occur when a malicious script is reflected off a web application… Also affects zabbix
- CVE-2023-29455 Reflected XSS attacks, also known as non-persistent attacks, occur when a malicious… Also affects zabbix
- CVE-2023-29454 Stored or persistent cross-site scripting (XSS) is a type of XSS where the attacker first… Also affects zabbix
- CVE-2022-43515 Zabbix Frontend provides a feature that allows admins to maintain the installation and… Also affects zabbix
- CVE-2022-24917 An authenticated user can create a link with reflected Javascript code inside it for… Also affects zabbix
- CVE-2022-24349 An authenticated user can create a link with reflected XSS payload for actions’ pages… Also affects zabbix