mirror of
https://github.com/nextcloud/server.git
synced 2026-11-21 12:25:08 +01:00
`Node::move()` only checked that the target folder accepts new files, but never that the source may be moved away. Any caller passing it a node from a share or mount without delete permissions could therefore move that file out. A rename within the same folder needs update permissions, or delete permissions on the source and create permissions on the parent (the rules of `DavUtil::canRename()` on newer versions). A move into another folder requires the source to be deletable unless it is the root of a movable mount. Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-4RX49FAX. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>