System API token is visible in process list
Package
rudder-jetty
(rudder)
Affected versions
*
Patched versions
None
rudder-server
(rudder)
< 8.1.8
>= 8.2.0, < 8.2.1
8.1.8
8.2.1
Impact
In different contexts, the system API token, which has full access to the API, can be leaked in the process list in curl's
--header
parameter. The features that can leak the system API token are:rudder server node-to-relay/relay-to-node
commandsrudder server reload-techniques/reload-groups/trigger-policy-generation
commandsrudder server directive-{upgrade,replace,migrate-package}
commandsrudder remote run
commandopenscap
,security-benchmarks
andsystem-updates
pluginFix
The problem is fixed by making the application generate a second token file including the header name (
/var/rudder/run/api-token-header
), and use the file reading feature ofcurl
:Users using the system tokens in scripts should update them to use this new file as well.
Patches
Workarounds
None.
References