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.
All currently supported versions are affected: 1.6, 2.0, and 2.1.
Immediate mitigations are not available.
Indicators of Compromise:
Review the logs of Nagios / CMC for suspicious commands.
We have rated the issue with a CVSS Score of 6.8 (Medium) with the following CVSS vector:
We have assigned CVE-2022-47909 for this issue.
This Werk adds sanitization for the AuthUser header field.
To the list of all Werks