mirror of
https://github.com/nextcloud/server.git
synced 2026-11-10 03:17:03 +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. Apply the same checks as WebDAV (`FilesPlugin::checkMove()`): a rename within the same folder follows `DavUtil::canRename()`, 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>