Fedora Account System
Red Hat Associate
Red Hat Customer
A path traversal vulnerability was found in phodav's WebDAV MOVE/COPY handlers (libphodav/phodav-method-movecopy.c). The Destination header is parsed with g_uri_parse() which preserves encoded slashes (%2F) through dot-segment removal. After full unescaping, g_file_get_child() resolves ".." components outside the shared root directory. A remote attacker can exploit this to create, copy, or move files to arbitrary filesystem locations writable by the server user, outside of the shared directory. Since the copied content can be attacker-controlled (via a prior PUT), this enables arbitrary file write as the server user. Many deployments (chezdav default, spice-gtk folder sharing) run without authentication, making this exploitable without credentials. The vulnerable pattern has been present since phodav v0.4 (April 2014) and affects all versions through 3.0.
Fixed in v3.2: https://gitlab.gnome.org/GNOME/phodav/-/releases/v3.2 Upstream MR and fix: - https://gitlab.gnome.org/GNOME/phodav/-/merge_requests/35 - https://gitlab.gnome.org/GNOME/phodav/-/commit/08c5a63bab0ede8aa32bbe1067604a60e38a8181