Headline
CVE-2022-47909: Fix command injection in livestatus query headers
Livestatus Query Language (LQL) injection in the AuthUser HTTP query header of Tribe29’s Checkmk <= 2.1.0p11, Checkmk <= 2.0.0p28, and all versions of Checkmk 1.6.0 (EOL) allows an attacker to perform direct queries to the application’s core from localhost.
Component
Livestatus
Title
Fix command injection in livestatus query headers
Date
Aug 26, 2022
Checkmk Edition
Checkmk Raw (CRE)
Checkmk Version
2.2.0b1 2.1.0p12 2.0.0p29
Level
Trivial Change
Class
Security Fix
Compatibility
Compatible - no manual interaction needed
Prior to this Werk it was possible to inject livestatus commands in Checkmk’s livestatus wrapper and python API. Attackers could add additional commands in the AuthUser query header using newline characters. This allowed running arbitrary livestatus commands, including external commands to the core.
The issue could only be exploited by attackers from localhost, where the tampered header could be injected in a request to graph data.
We thank Stefan Schiller (SonarSource) for reporting this issue.
Affected Versions: All currently supported versions are affected: 1.6, 2.0, and 2.1.
Mitigations: Immediate mitigations are not available.
Indicators of Compromise: Review the logs of Nagios / CMC for suspicious commands.
Vulnerability Management: We have rated the issue with a CVSS Score of 6.8 (Medium) with the following CVSS vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L. A CVE has been requested.
Changes: This Werk adds sanitization for the AuthUser header field.
To the list of all Werks