Werk #14385: Fix limited SSRF in agent-receiver API
|Komponente||Core & setup|
|Titel||Fix limited SSRF in agent-receiver API|
|Checkmk-Editon||Checkmk Raw (CRE)|
|Kompatibilität||Kompatibel - benötigt kein manuelles Eingreifen|
Prior to this Werk attackers could use the host registration API for Server Side Request Forgery.
An attacker would have been able to make the Checkmk server issue local requests to endpoints that should only be accessible from localhost. In order to exploit this vulnerability attackers would have needed the privileges to register hosts. This vulnerability was caused by insufficient sanitization of the hostname of the host to be registered.
We thank Stefan Schiller (SonarSource) for reporting this issue.
Affected Versions: 2.1
Mitigations: The affected API can be disabled using omd stop agent-receiver. Note however, that this makes it impossible to register new hosts.
Vulnerability Management: We have rated the issue with a CVSS Score of 5.0 (Medium) with the following CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N. A CVE has been requested.
Changes: This Werk adds validation for the hostname and ensures hostnames are escaped in requests to the REST API.