CVE-2024-5741
Medium · 5.4CVSS
5.4
EPSS
0.3%
Published
Jun 17, 2024
CISA due date
—
Cloudanix analysis
A bug in monitoring software could let someone with limited access trick administrators into running harmful code in their browsers when they look at certain data views.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Other
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stored cross-site scripting flaw allows injection of script payloads into inventory tree data that are later rendered without sanitization in users' browsers.
Why it matters to the business
Attackers who can add or modify monitored inventory items may hijack administrator sessions, perform unauthorized actions, or steal data within the monitoring application, increasing risk of broader network compromise.
How an attack unfolds
An attacker with low-privileged access crafts malicious inventory data containing a script payload. The payload is stored by the application and executed automatically when any user with sufficient rights views the inventory tree view, enabling session theft or further actions.
How to fix it
Upgrade Checkmk to version 2.3.0p7 or later, 2.2.0p28 or later, or 2.1.0p45 or later. Disable or restrict inventory tree features for untrusted users until patches are applied.
How to confirm the fix worked
Verify installed version against the fixed releases listed in remediation guidance; review inventory rendering code for proper output encoding; attempt controlled XSS test payloads in a non-production instance.
Typical attack path
- Obtain low-privileged account in the monitoring application
- Inject or modify inventory data to include a malicious script payload
- Wait for or lure a privileged user to view the affected inventory tree
- Script executes in the victim's browser to exfiltrate tokens or perform actions
How to detect it
Inspect application logs and inventory data stores for entries containing script tags, event handlers, or encoded JavaScript; review web server access logs for requests that include suspicious payloads in inventory-related parameters; check browser console or proxy captures for unexpected script execution during tree rendering.
What your security team should do
- Apply the listed Checkmk updates immediately on all instances
- Review and restrict which accounts can contribute inventory data
- Monitor application logs for unexpected script execution or unusual inventory entries
- Implement web application firewall rules to block common XSS patterns targeting inventory endpoints
The record
Stored XSS in inventory tree rendering in Checkmk before 2.3.0p7, 2.2.0p28, 2.1.0p45 and 2.0.0 (EOL)
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | check-mk | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | check-mk | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | check-mk | 0 | No fix |
Related vulnerabilities
- CVE-2024-47094 Insertion of Sensitive Information into Log File in Checkmk GmbH's Checkmk versions… Also affects check-mk
- CVE-2024-38863 Exposure of CSRF tokens in query parameters on specific requests in Checkmk GmbH's… Also affects check-mk
- CVE-2024-38862 Insertion of Sensitive Information into Log File in Checkmk GmbH's Checkmk versions… Also affects check-mk
- CVE-2024-6747 Information leakage in mknotifyd in Checkmk before 2.3.0p18, 2.2.0p36, 2.1.0p49 and in… Also affects check-mk
- CVE-2024-8606 Bypass of two factor authentication in RestAPI in Checkmk < 2.3.0p16 and < 2.2.0p34… Also affects check-mk
- CVE-2024-38860 Improper neutralization of input in Checkmk before versions 2.3.0p16 and 2.2.0p34 allows… Also affects check-mk
- CVE-2024-38858 Improper neutralization of input in Checkmk before version 2.3.0p14 allows attackers to… Also affects check-mk
- CVE-2024-38859 XSS in the view page with the SLA column configured in Checkmk versions prior to… Also affects check-mk