Werk #14384: Fix command injection in livestatus query headers

Komponente Livestatus
Titel Fix command injection in livestatus query headers
Datum 26.08.2022
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 2.0.0p29 2.1.0p12 2.2.0b1
Level Kleine Änderung
Klasse Sicherheitsfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

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. We have assigned CVE-2022-47909 for this issue.

Changes: This Werk adds sanitization for the AuthUser header field.

Zur Liste aller Werks