[security] DPT-1 broken access control in EventReports deleteSelection
fix: [security] DPT-1 broken access control in EventReports deleteSelection
[security] DPT-1 broken access control in EventReports deleteSelectionada02f-fix-security-dpt-1-broken-access-control-in-cve-2026-56423fixsecurity dpt broken access control eventreports
Committed by iglocska
commit message
fix: [security] DPT-1 broken access control in EventReports deleteSelection
EventReportsController::deleteSelection passed a checkModifyCallback that
returned the global `perm_add` 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, so any contributor (perm_add) could
hard-delete event reports belonging to other organisations instance-wide
(live-proven: org-316 user destroyed org-1's report; report themes are on
by default, so the action is reachable).
Fix mirrors the single delete() action: the callback now calls
EventReport::fetchIfAuthorized($user, $itemId, 'delete') per row and only
permits the delete when the user is authorised for that specific report
(site-admin, or the report's event orgc_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 explains that EventReportsController::deleteSelection passed a callback returning the global perm_add flag instead of checking ownership per row, and that CRUDComponent resolves targets from a body id list with no ACL scope, so any contributor could hard-delete other orgs' reports. It states the fix as calling fetchIfAuthorized for each item, mirroring the single delete action, and notes the feature is enabled by default. The live proof of a cross-org deletion is concrete. The deferred-finding trailer is slightly inside-baseball, but the message is otherwise clear and well reasoned.