The way vim-anywhere uses /tmp is insecure. Malicious local user could create /tmp/vim-anywhere, make it writable to everyone, and then read or tamper with other users' files in this directory. In the worst case, when a victim uses vim-anywhere to create a shell script to be pasted to shell, they could end up with arbitrary code execution.
Please use mktemp -d for creating temporary directories.
The way vim-anywhere uses
/tmp
is insecure. Malicious local user could create/tmp/vim-anywhere
, make it writable to everyone, and then read or tamper with other users' files in this directory. In the worst case, when a victim uses vim-anywhere to create a shell script to be pasted to shell, they could end up with arbitrary code execution.Please use
mktemp -d
for creating temporary directories.