CVE-2024-6052
Medium · 6.5CVSS
6.5
EPSS
0.4%
Published
Jul 3, 2024
CISA due date
—
Cloudanix analysis
A problem in the Checkmk software lets people with basic access slip harmful code into pages that other users see, which could let attackers take over those users' accounts or actions.
- Exploitation
- Requires User Interaction
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits authenticated users to persistently inject arbitrary HTML and JavaScript into stored application data that is later rendered without proper sanitization in other users' browsers, enabling cross-site scripting.
Why it matters to the business
Successful exploitation can lead to session hijacking, unauthorized configuration changes, or credential theft within the monitoring platform, potentially exposing infrastructure visibility and operational control to attackers.
How an attack unfolds
An attacker logs in with limited privileges, locates input fields that accept and persist HTML content, inserts a malicious script payload, and waits for privileged users to load the affected view, causing the script to execute in their browser context.
How to fix it
Upgrade Checkmk installations to version 2.3.0p10 or later, 2.2.0p29 or later, or 2.1.0p45 or later. Version 2.0.0 is end-of-life and requires migration to a supported release.
How to confirm the fix worked
Confirm the running Checkmk version meets or exceeds the listed fixed releases. Validate input sanitization by attempting to store and render test HTML markup and verifying it is escaped or blocked.
Typical attack path
- Obtain a low-privileged authenticated account in Checkmk
- Locate persistent input fields that store and render user-supplied content
- Submit a payload containing malicious HTML or JavaScript
- Trigger display of the stored content to higher-privileged users
- Execute actions or harvest data via the victim's authenticated session
How to detect it
Review web access logs and application audit trails for requests containing script, img, or other HTML tags in fields expected to hold plain text. Inspect stored configuration or dashboard data for unexpected markup.
What your security team should do
- Apply the specified version upgrades immediately on all affected instances
- Audit existing stored content for unexpected HTML or script elements
- Enforce least-privilege access and review user roles within Checkmk
- Implement web application firewall rules to block common XSS patterns targeting the platform
The record
Stored XSS in Checkmk before versions 2.3.0p10, 2.2.0p29, 2.1.0p45, and 2.0.0 (EOL) allows users to execute arbitrary scripts by injecting HTML elements
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