Description
zrok is software for sharing web services, files, and network resources. Prior to version 2.0.2, the zrok WebDAV drive backend (davServer.Dir) restricts path traversal through lexical normalization but does not prevent symlink following. When a symbolic link inside the shared DriveRoot points to a location outside that root, remote WebDAV consumers can read files and—on shares without OS-level permission restrictions—write or overwrite files anywhere on the host filesystem accessible to the zrok process. This issue has been patched in version 2.0.2.
Problem types
CWE-61: UNIX Symbolic Link (Symlink) Following
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
References
github.com/...i/zrok/security/advisories/GHSA-74m3-9qvm-rp9h
github.com/...ommit/459bcfc1e121decae1b1d11c37ad94e4ed5bbf2e
github.com/openziti/zrok/releases/tag/v2.0.2