This Werk fixes a code injection vulnerability in watolib.
Prior to this Werk it was possible for authenticated users to inject PHP code in files generated by Wato for NagVis integration.
The code would be executed once a request to the respective NagVis component is made.
The underlying reason for this issue was that user data entered in Wato was not properly sanitized when writing to the PHP file.
We thank Stefan Schiller (SonarSource) for reporting this issue.
All currently supported versions are affected: 1.6, 2.0, and 2.1.
As an immediate mitigation you can entirely disable PHP on your server.
Note that NagVis will not work anymore without PHP.
Indicators of Compromise:
Malicious code is injected in either of the files var/check_mk/wato/auth/auth.php or var/check_mk/wato/php-api/hosttags.php.
Check these files for suspicious code.
We have rated the issue with a CVSS Score of 9.1 (Critical) with the following CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L.
We have assigned CVE-2022-46836 for this issue.
This Werk fixes the vulnerability by improving sanitization.
To the list of all Werks