The "sharedfile_to_node" method does not verify the policy server's certificate with default configuration
Package
rudder-agent
(rudder)
Affected versions
>= 7.3.0, < 7.3.6
< 7.2.11
Patched versions
7.3.6
7.2.11
rudder-server
(rudder)
>= 7.3.0, < 7.3.6
< 7.2.11
7.3.6
7.2.11
rudder-webapp
(rudder)
*
None
Impact
The
sharedfile_to_node
method uses therudder_verify_certs_option
variable (from the system techniques) as a parameter to curl. This is a leftover from Rudder 6.X certificate check configuration. As a consequence, it uses the value from theRUDDER_VERIFY_CERTIFICATES
system variable which is described in the settings as only used for 6.X nodes compatibility. When the settings is set to false (which is its default value), an--insecure
flag is passed to the curl call and the certificate is hence not checked.This also affects the following plugins which use this method internally:
The plugins use the method to send file to the root server, which means an attacker could get access to a list of monitoring roles for the nodes or OpenSCAP reports. This does not expose additional data nor give write access to anything.
Patches
To fix the bug, it is necessary to upgrade both the central Rudder server and the agents using the method.
Workarounds
None.
References