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.
This can only be exploited by an authenticated user with the "investigator" role which includes the NOTEBOOK_EDIT permission.