[security] DPT-1 broken access control in SharingGroups deleteSelection
fix: [security] DPT-1 broken access control in SharingGroups deleteSelection
[security] DPT-1 broken access control in SharingGroups deleteSelectionf99b3f-fix-security-dpt-1-broken-access-control-in-cve-2026-56423fixsecurity dpt broken access control sharinggroups
Committed by iglocska
commit message
fix: [security] DPT-1 broken access control in SharingGroups deleteSelection
SharingGroupsController::deleteSelection passed a checkModifyCallback that
returned the global `perm_sharing_group` flag instead of a per-row
ownership check. CRUDComponent::deleteSelection resolves each target row by
a body id/uuid list with no ACL scope of its own (and the ACL gate for the
action is also `perm_sharing_group`), so any sharing-group-capable user
could hard-delete sharing groups owned by other organisations instance-wide
- bypassing the checkIfOwner() gate that the single delete() action
enforces (SharingGroupsController.php:313).
Fix mirrors the single delete() action: the callback now calls
SharingGroup::checkIfOwner($user, $itemId) per row and only permits the
delete when the user owns that specific sharing group (site-admin, or the
SG's org_id matches the user's org).
Deferred post-sweep finding PRD §12 DPT-1 (broken-access-control class,
distinct from the mass-assignment sweep).
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>Editor assessment
This commit patches CVE-2026-56423. The body describes SharingGroupsController::deleteSelection using a callback that returned the global perm_sharing_group flag, bypassing the checkIfOwner gate enforced by the single delete action, and notes the action's ACL is the same global flag. It then explains the fix, calling SharingGroup::checkIfOwner per row so deletion is limited to groups the user owns or site admin. Referencing the specific line in the single-delete path gives readers a concrete comparison point. Like its sibling, the PRD reference is internal, and the subject is a mouthful, but the reasoning is solid and complete.