Path traversal with ID of created entities
Package
rudder-server
(rudder)
Affected versions
< 7.3.15
>= 8.0.0, < 8.0.9
>= 8.1.0, < 8.1.3
Patched versions
7.3.15
8.0.9
8.1.3
rudder-webapp
(rudder)
*
None
Impact
It is possible to write files outside of the git configuration repository (by default
/var/rudder/configuration-repository/
) using a path traversal when creating a rule or parameter from Rudder Rest API. With the following request:we could create the
/etc/app/settings.xml
file, and override it's content with the one for the rule if the file already exists.Impact is limited because it only affects files or directories ending with
.xml
. Privilege escalation is also limited as exploitation requires write access on rules or parameters.Patches
Workarounds
None.
References