CVE-2022-24917
Medium · 4.4CVSS
4.4
EPSS
1.2%
Published
Mar 9, 2022
CISA due date
—
Cloudanix analysis
Someone could trick a logged-in monitoring user into clicking a link that secretly changes what they see on the screen, but only if the attacker also guesses a hard-to-predict security token.
- Exploitation
- Requires User Interaction
- Attacker needs
- Low Privilege
- Complexity
- High
- Impact
- Data Tampering
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Reflected cross-site scripting flaw allowing an authenticated user to embed executable JavaScript in a crafted link to the services page; execution requires the victim's current CSRF token and runs with the same privileges as the victim's session.
Why it matters to the business
Low-urgency social-engineering risk that could let an attacker alter what a logged-in user sees or trigger unintended actions inside the monitoring interface, with minimal downstream exposure given stable low exploit probability and absence from known exploited lists.
How an attack unfolds
An attacker first creates a services-page URL containing a reflected script payload, then attempts to obtain the victim's periodic CSRF token through prior interaction or timing, and finally sends the link via email or chat; when the victim clicks while authenticated, the script runs in the browser context and can modify page contents.
How to fix it
Upgrade the Zabbix frontend to a patched release that enforces output encoding and proper CSRF handling on the services page; where direct upgrades are unavailable, apply vendor-supplied mitigations or web-application firewall rules that sanitize reflected parameters.
How to confirm the fix worked
Confirm the services page no longer reflects unsanitized script content in URL parameters; re-test with known XSS vectors after upgrade and verify CSRF token rotation remains effective.
Typical attack path
- Craft malicious URL containing reflected JavaScript targeting the services page
- Acquire or predict the victim's current CSRF token value
- Deliver the link to the target user via social-engineering channels
- Victim authenticates and activates the link
- Payload executes with access to the same DOM objects as the legitimate page
How to detect it
Inspect web-server and application logs for requests to the services page that contain script, javascript, or onerror patterns in query parameters; correlate with user sessions that later exhibit unexpected UI changes or POST requests they did not initiate.
- /services?*script*
- javascript: in services page query string
- onerror= or onload= parameters reaching the services endpoint
What your security team should do
- Prioritize upgrade of Zabbix frontend instances to the latest fixed release
- Enable strict content-security-policy headers for the Zabbix web interface
- Train users to treat unsolicited links to internal monitoring pages as suspicious
- Review web-server access logs for anomalous requests containing script tags to the services endpoint
The record
An authenticated user can create a link with reflected Javascript code inside it for services’ 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-24919 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