CVE-2024-38858
Medium · 6.1CVSS
6.1
EPSS
0.3%
Published
Sep 2, 2024
CISA due date
—
Cloudanix analysis
A flaw in monitoring software lets attackers slip malicious code into a logs page so that anyone who looks at it could have their account taken over.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper input neutralization allows injection of arbitrary JavaScript that executes in the browser when users view Robotmk logs.
Why it matters to the business
Attackers can hijack administrator sessions, steal credentials, or perform actions on behalf of logged-in users who view the affected logs view, increasing risk of unauthorized access to monitoring data and infrastructure.
How an attack unfolds
An attacker supplies crafted input that reaches the Robotmk logs view without sanitization; when a privileged user opens the logs page the injected script runs in their browser context, enabling theft of session tokens or further actions.
How to fix it
Upgrade Checkmk to a build containing commit 779a2941a075e1461b45407f715176524414b994 or later release (2.3.0p14 or newer) to enforce proper input neutralization in the Robotmk logs view.
How to confirm the fix worked
Confirm the installed Checkmk version includes commit 779a2941a075e1461b45407f715176524414b994 or is at least 2.3.0p14; test by submitting known XSS payloads to inputs that populate Robotmk logs and verify they are neutralized in the rendered view.
Typical attack path
- Identify or trigger input paths that feed into Robotmk logs
- Inject malicious script payload via the unsanitized input
- Lure or wait for an administrator to view the Robotmk logs view
- Script executes in victim browser to exfiltrate tokens or perform actions
How to detect it
Inspect web server and application logs for requests to the Robotmk logs endpoint containing script tags or event handlers; review Robotmk log files for entries with HTML or JavaScript fragments; correlate unusual access to the logs view with subsequent suspicious browser activity or API calls.
- /robotmk/logs
- script src=
- onerror=
- onload=
What your security team should do
- Apply the fixed commit or upgrade to 2.3.0p14 or newer immediately
- Review and restrict access to the Robotmk logs view until patched
- Monitor for unusual script execution or session anomalies in browser consoles of monitoring users
- Add the vulnerability to the internal patching backlog with high priority due to direct administrator exposure
The record
Improper neutralization of input in Checkmk before version 2.3.0p14 allows attackers to inject and run malicious scripts in the Robotmk logs view.
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-38859 XSS in the view page with the SLA column configured in Checkmk versions prior to… Also affects check-mk
- CVE-2024-6542 Improper neutralization of livestatus command delimiters in mknotifyd in Checkmk <=… Also affects check-mk