| CVE |
Vendors |
Products |
Updated |
CVSS v3.1 |
| The Velociraptor query() plugin allows a user to run a query in another org. In Vulnerable versions of Velociraptor, the plugin does not check that the user has a minimal permission in the target org of READ_RESULTS, but allows the query to proceed in the target org. A few plugins assume the user already has the minimal READ_RESULTS permission and do not check this permission - leading to some information leakage. Any VQL plugins which perform more critical work, do check the permissions and correctly deny the operation, so this issue only results in some information leakage such as client nonce and tools configuration. |
| An authenticated Velociraptor client can crash the Velociraptor frontend by sending a malformed VQLResponse message containing attacker-controlled ByteOffset and UncompressedSize values. During subsequent processing, the Rows goroutine performs a slice operation with a negative offset and panics. The panic terminates the frontend process. |
| A single authenticated API request can terminate the Velociraptor server process. When a tool URL uses the smb:// scheme and the URL password is shorter than five characters, the smb accessor panic without recovery, so the process exits. |
| Velociraptor users usually need various permissions to call VQL plugins on the server from VQL notebooks. However several VQL plugins were missing these checks allowing users with NOTEBOOK_EDIT permissions to performs actions they may not have permissions for.
The affected VQL functions are:
- cache, memoize, process_tracker - Missing FILESYSYEM_WRITE permission check, allowing users to write files on the server's filesystem.
- yarax - Missing the EXECVE permission check, allowing users to load an external DLL - leading to code execution.
- cat - Missing the FILESYSTEM_READ permission allowing users to read files from the filesystem.
- netstat - Missing the MACHINE_STATE permission allowing users to view sockets on the server. |
| Velociraptor uses managed secrets to allow VQL queries to share credentials without revealing those credentials to users. The root org admin can create secrets, control their org visibility and assign the secrets to users to allow them to use the credentials in VQL queries.
Vulnerable versions of Velociraptor did not apply sufficient permission checks when reading secrets from the root org. An administrator in a child org could read a secret in the root org and assign their own users to it - leading to unintended use of credentials. |
| Velociraptor uses a DOM sanitizer to protect against XSS attacks. Vulnerable versions of Velociraptor used a weaker regular expression to permit certain HTML attributes, which matched the right click handler (`oncontextmenu`). This allowed a stored XSS attack by permitting Javascript to be attached to the right click handler. The vulnerable code was triggered in an error path reachable from artifact viewer. |
| Velociraptor allows administrators to restrict server-side VQL native file access to approved host directories. Plugins usually check the user has the FILESYSTEM_READ/FILESYSTEM_WRITE permission first (usually only given to the administrator user), then check if the file lands in the forbidden directories. In vulnerable versions of Velociraptor, this check did not account for directory traversal characters, allowing the user to read/write into arbitrary directories.
The overall effect of this is that administrator users in any org can read/write files in other orgs bypassing the file-accessor sandbox. |
| Velociraptor allows collection of VQL queries packaged into Artifacts from endpoints. These artifacts can be used to do anything and usually run with elevated permissions. To limit access to some dangerous artifact, Velociraptor allows for those to require high permissions like EXECVE to launch.
The `Windows.Sysinternals.SysmonLogForward` is a monitoring artifact used to forward sysmon events to the server. The artifact allows the user to specify an arbitrary binary path as a parameter, and did not enforce an additional required permission, allowing users with COLLECT_CLIENT permissions (normally given by the "Investigator" role) to collect it from endpoints and run a different binary program than the installed sysmon binary.
To successfully exploit this vulnerability the user must already have access to collect artifacts from the endpoint (i.e. have the COLLECT_CLIENT given typically by the "Investigator" role). |
| Velociraptor's WatchEvent gRPC API can specify the OrgId of the org from which events should be streamed. The server checks the API permissions against the caller's Org instead of the requested Org. This allows a user with API access in one org to read events from another org for which they have no access. |
| Velociraptor's SetClientMetadata used the wrong permission check to enforce setting metadata on the server. This allows a user with LABEL_CLIENTS permission to update the server metadata.
Server metadata is often used to store site wide configuration data that should only be updated by the server admin. |
| Velociraptor contains a deadlock condition that may be triggered by authenticated users. The issue stems from a lock management bug in the user management module. |
| Velociraptor's prefetch library contains an out of bound vulnerability which may cause a crash when parsing certain malformed prefetch files. |
| Velociraptor stores the compiled VQL in the hunt object internally to avoid having to recompile the artifacts for each endpoint in the hunt. Although the field "compiled_collector_args" is an internal field, Velociraptor allowed the field to be set from a user API call. This allows another user who can schedule a hunt (minimal role of "investigator" ) to set the compiled VQL statements for the hunt bypassing any ACL checks that would normally be applied.
This flaw can then be escalated to allow the "investigator" user to run arbitrary VQL statements as an administrator user on the Velociraptor server. |
| Velociraptor allows for the creation of notebook backups in its default enabled daily backup feature. When Velociraptor restores the backup, the notebook cell content is interpolated into a template with no ACL checks. This allows a malicious user with NOTEBOOK_EDITOR permission to plant a VQL query which will be evaluated at elevated permissions if the notebook's backup is subsequently restored. |
| Velociraptor allows some sensitive artifacts to be gated by additional permissions. For example, the Linux.Sys.BashShell artifact allows arbitrary command execution on endpoints, and so it requires the EXECVE permission to schedule. However, no such check was implemented for client monitoring artifacts. Additionally there was no requirement that client monitoring artifacts carry the CLIENT_EVENTS type. This allows any user who can schedule client monitoring artifacts to also schedule otherwise restricted artifacts (such as Linux.Sys.BashShell). |
| The Velociraptor verify() VQL function allows a user to verify an artifact for syntatic and other issues. Due to an implementation fault in this VQL function, the global artifact repository is used which allows callers to overwrite existing artifacts without the required permissions. The attacker need only have the NOTEBOOK_EDIT permission (e.g. an analyst role) to be able to call this function. |
| Velociraptor allows reading Stacked result sets from the GUI. Velociraptor's multi-tenant design stores sub orgs within the datastore directory. The path requested by the GUI is not correctly checked against the prefix deny list, allowing result sets to read from denied prefixes.
In particular, a user with read access to the root org can access result sets from child orgs. |
| Velociraptor's web GUI allows specifying a custom type for columns in tables. The URL type takes the cell value and forms a URL which can be clicked in the GUI.The code does not limit the schemes allowed in this URL , allowing an attacker to specify a JavaScript scheme exposing the user to XSS. |
| Velociraptor allows scheduling new collections via VQL queries in notebooks. For a user to schedule a new collection, they require the COLLECT_CLIENT permission. However, this is not enforced when the user can run a VQL query which resets the authorization provider.
This allows a user who can run arbitrary VQL (usually with the "analyst" role) to launch new collections (usually requires the "investigator" role). This vulnerability is an escalation from an analyst to investigator role. |
| Velociraptor's VQL has a query() plugin which allows running a VQL query in a different org or user context. To be able to run as a different user, the calling user needs to have the IMPERSONATE permission (usually only given to administrators). Velociraptor versions prior to 0.77.2 evaluate this permission against the caller's org instead of against the target org.
This allows an administrator in one org to impersonate another user in another org, in which they may not have the IMPERSONATE permission. |