HighGHSA-3w32-23wj-rxg3
Craft CMS Vulnerable to Unauthorized Deletion of Destination Folders During Forced Moves
Affected versions
5.0.0-RC1 to before 5.9.21, 4.0.0-RC1 to before 4.17.14 - fixed in 5.9.21Details
We have identified an authorization issue in Craft CMS where a forced folder move can delete a conflicting destination folder without destination delete permission. ### Description Craft CMS’s `craft\\controllers\\AssetsController::actionMoveFolder()` supports moving an asset folder into a destination parent folder. If a folder with the same name already exists at the destination, the action can be called with `force=true` to overwrite the destination. The permission checks for this action allow: - `deleteAssets:<sourceVolumeUid>` for the folder being moved - `createFolders:<destVolumeUi
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected