mirror of
https://github.com/nextcloud/server.git
synced 2026-11-09 02:14:48 +01:00
`Local::moveFromStorage()`, the same-storage branch of `Common::moveFromStorage()` and the same-bucket branch of `ObjectStoreStorage::moveFromStorage()` resolve the jail of the source storage and move the file on the underlying storage. This also skips any `PermissionsMask` of the source, so a file could be moved out of a share or mount without delete permissions. Check `isDeletable()` on the source before taking any of these shortcuts, like the generic copy-and-delete fallback already does. 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>