Use method call for System permission check in ConfigsController

fix: use method call for System permission check in ConfigsController
Use method call for System permission check in ConfigsControllerbbb03d-fix-use-method-call-for-system-permission-cve-2026-28273fixuse method call system permission check

Committed by connortechnology

commit message
fix: use method call for System permission check in ConfigsController

The config-api RCE fix (b036408a5) guards edit() and delete() with
($user['System'] == 'Edit'), but $user is a ZM\User object that does
not implement ArrayAccess and whose System property is protected. Array
access on it raises "Error: Cannot use object of type ZM\User as array",
so the endpoint fatals with HTTP 500 for every authenticated user. This
blocks the RCE only by accident and also breaks config editing for
legitimate System=Edit admins.
 
Use $user->System(), matching the idiom in every other API controller
(States, Servers, Monitors, Users, etc.).
 
Refs GHSA-mvj8-mqqq-2w5f.
 
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
(cherry picked from commit 2f57a4f606c228eed6c312b2aa477f91eb47c7ea)

Editor assessment

This commit patches CVE-2026-28273. A precise and self-aware message. The body explains that the earlier RCE patch guarded edit and delete with array access on a ZM\User object that implements neither ArrayAccess nor public properties, so the endpoint fataled with HTTP 500 for every authenticated user - blocking the RCE only by accident while breaking legitimate config editing. It then points at the idiomatic method call used by every other controller and carries a valid Refs footer. Clear, honest, and verifiable.

Browse categories

More fix examples · Back to search