CVE-2024-28831
Medium · 5.4CVSS
5.4
EPSS
0.3%
Published
Jun 25, 2024
CISA due date
—
Cloudanix analysis
A bug in monitoring software lets someone who can enter text trick other users into running unwanted code when they see certain confirmation messages.
- Exploitation
- Requires User Interaction
- 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 vulnerability allowing injection of arbitrary HTML/JS into user input fields that render in confirmation pop-ups, enabling script execution in other users' browsers with the application's privileges.
Why it matters to the business
Attackers can hijack user sessions, steal monitoring data, or perform unauthorized actions inside the Checkmk console, potentially disrupting infrastructure visibility and operations; low exploit probability reduces immediate urgency but still requires patching.
How an attack unfolds
An authenticated low-privileged user supplies malicious HTML or script content into fields that later appear in confirmation dialogs; when another user triggers the dialog, the injected code executes in their browser context without further interaction.
How to fix it
Upgrade Checkmk to version 2.3.0p7 or 2.2.0p28 or later; if immediate upgrade is not possible, restrict untrusted user input and monitor for suspicious HTML in relevant fields.
How to confirm the fix worked
After upgrade, verify the vulnerable input paths no longer render raw HTML in pop-ups by re-testing with benign script markers; confirm version numbers match or exceed the fixed releases.
Typical attack path
- Obtain a low-privileged Checkmk user account
- Locate input fields that feed into confirmation pop-ups
- Inject crafted HTML/JS payload into the field and save
- Wait for or social-engineer a higher-privileged user to view the confirmation dialog
- Script executes, performing actions such as cookie theft or API calls
How to detect it
Review web server and application logs for unexpected HTML tags or script elements in fields that populate confirmation dialogs; check browser developer tools or proxy captures for unusual script execution originating from Checkmk pages.
What your security team should do
- Prioritize upgrade to 2.3.0p7 or 2.2.0p28 within standard change windows given low EPSS and no KEV listing
- Audit current Checkmk user permissions to limit who can supply data to confirmation-related fields
- Add web application firewall rules or input sanitization if upgrades are delayed
The record
Stored XSS in some confirmation pop-ups in Checkmk before versions 2.3.0p7 and 2.2.0p28 allows Checkmk users to execute arbitrary scripts by injecting HTML elements into some user input fields that are shown in a confirmation pop-up.
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