]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Fix possible security issue with the permissions of the intermediate
authorOliver Kurth <okurth@vmware.com>
Tue, 29 Jan 2019 22:03:19 +0000 (14:03 -0800)
committerOliver Kurth <okurth@vmware.com>
Tue, 29 Jan 2019 22:03:19 +0000 (14:03 -0800)
commite88f91b00a715b79255de6576506d80ecfdb064c
tree17ac673b2445d1c632aefad71699fcf8fce6a28f
parentbfa5e5d27a8a96a9c71fbe581f3fe32dcd2e55fd
Fix possible security issue with the permissions of the intermediate
staging directory and path

/tmp/VMwareDnD is a staging directory used for DnD and CnP.  It should be
a regular directory, but malicious code or user may create the /tmp/VMwareDnD
as a symbolic link which points elsewhere on the system.  This may provide
user access to user B's files.

Do not set the permission of the root directory if the root directory
already exists and has the wrong permission.  The permission of the directory
must be 1777 if it is created by the VMToolsi.  If not, then the directory
has been created or modified by malicious code or user, so just cancel the
host to guest DnD or CnP operation.
open-vm-tools/services/plugins/dndcp/dnd/dndCommon.c
open-vm-tools/services/plugins/dndcp/dnd/dndXdg.c