Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: 913fadf303119077982ea53183a345add5dec3d1
https://github.com/tribe29/checkmk/commit/913fadf303119077982ea53183a345add…
Author: Hannes Rantzsch <hannes.rantzsch(a)tribe29.com>
Date: 2022-09-01 (Thu, 01 Sep 2022)
Changed paths:
A .werks/14384
M livestatus/api/python/livestatus.py
M tests/unit/livestatus/test_livestatus_unit.py
Log Message:
-----------
14384 SEC Fix command injection in livestatus query headers
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.
<b>Affected Versions</b>: All currently supported versions are affected:
1.6, 2.0, and 2.1.
<b>Mitigations</b>: Immediate mitigations are not available.
<b>Indicators of Compromise</b>: Review the logs of Nagios / CMC for
suspicious commands.
<b>Vulnerability Management</b>: We have rated the issue with a CVSS
Score of 6.8 (Medium) with the following CVSS vector:
<tt>CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L</tt>. A CVE has been
requested.
<b>Changes</b>: This Werk adds sanitization for the AuthUser header
field.
CMK-11203
Change-Id: Ie34b324ab57e84df03fd0ecbf54d22804d101723