zrok copy writes attacker-controlled WebDAV paths outside the destination root
openziti zrok
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/openziti/zrok/v2 Go |
|
|
| github.com/openziti/zrok Go |
| No fix yet |
openziti zrok
| Product | Affected | Fixed in |
|---|---|---|
| github.com/openziti/zrok/v2 Go |
|
|
| github.com/openziti/zrok Go |
| No fix yet |
zrok is software for sharing web services, files, and network resources. From 0.4.23 until 2.0.3, `zrok2 copy` stores attacker-controlled WebDAV or zrok drive paths such as /../outside.txt in the source inventory and passes them to FilesystemTarget.WriteStream, allowing the sync pipeline to write files outside the selected local filesystem destination root. This issue is fixed in version 2.0.3.
From the CVE record · GitHub_M
zrok2 copy can accept attacker-controlled WebDAV or zrok drive paths that escape the selected local destination directory. If a user copies from such a source, the sync pipeline can write files outside that directory.
Check installations using Go package github.com/openziti/zrok/v2 before 2.0.3 or github.com/openziti/zrok from 0.4.23 through 1.1.11.