Rapid7 Velociraptor directory traversal in client ID parameter
Rapid7 Velociraptor did not properly sanitize the client ID parameter to the CreateCollection API, allowing a directory traversal in where the collection task could be written. It was possible to provide a client id of "../clients/server" to schedule the collection for the server (as a server artifact), but only require privileges to schedule collections on the client.
Normally, to schedule an artifact on the server, the COLLECT_SERVER permission is required. This permission is normally only granted to "administrator" role. Due to this issue, it is sufficient to have the COLLECT_CLIENT privilege, which is normally granted to the "investigator" role.
To exploit this vulnerability, the attacker must already have a Velociraptor user account at least "investigator" level, and be able to authenticate to the GUI and issue an API call to the backend. Typically, most users deploy Velociraptor with limited access to a trusted group, and most users will already be administrators within the GUI.
This issue affects Velociraptor versions before 0.6.7-5. Version 0.6.7-5, released January 16, 2023, fixes the issue.
Problem Types
Type | CWE ID | Description |
---|
CWE | CWE-22 | CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') |
Type: CWE
Description: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Metrics
Version | Base score | Base severity | Vector |
---|
Impacts
CAPEC ID | Description |
---|
CAPEC-233 | CAPEC-233 Privilege Escalation |
Description: CAPEC-233 Privilege Escalation
Timeline
Event | Date |
---|
Notification of the issue | 2023-01-13 05:23:00 |
Release 0.6.7-5 made available on Github | 2023-01-17 02:00:00 |
Event: Notification of the issue
Date: 2023-01-13 05:23:00
Event: Release 0.6.7-5 made available on Github
Date: 2023-01-17 02:00:00