Skip to content

Path traversal in archive import

Low
amousset published GHSA-gvvg-f4j5-v39x Apr 8, 2024

Package

rudder-server (rudder)

Affected versions

>= 8.0.0, < 8.0.6
< 7.3.12

Patched versions

8.0.6
7.3.12
rudder-webapp (rudder)
*
None

Description

Impact

It is possible to write files outside of the git configuration repository (by default /var/rudder/configuration-repository/) using a path traversal when importing an archive from the Rudder interface or API. After editing an xml field value of an active technique category id, e.g. from c65e1edc-2b23-4215-a719-c36cfd919252 to ../../../../../etc/app/settings, commiting the change with git and restoring the archive, we could create the /etc/app/settings/category.xml.

Impact is limited because it does not allow overriding existing file/directories, and the output file will always be category.xml.

Patches

Workarounds

None.

References

Severity

Low

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

CVE ID

No known CVE

Weaknesses