[preventative] pre-empting a future possible mass assignment vulnerability

fix: [preventative] pre-empting a future possible mass assignment vulnerability
[preventative] pre-empting a future possible mass assignment vulnerability574330-fix-preventative-pre-empting-a-future-possible-mass-cve-2026-56422fixpreventative pre empting future possible mass

Committed by iglocska

commit message
fix: [preventative] pre-empting a future possible mass assignment vulnerability

WorkflowsController mass-assignment audit (Tier B #19) — SAFE, defence-in-depth
hardening of the one footgun.
 
Workflow::addWorkflow() calls create() then save() with a fieldList that omits
`id`. A fieldList limits which columns are written, NOT the INSERT-vs-UPDATE
decision: CakePHP Model::set() seeds $this->id from a client-supplied
Workflow[id], so an injected id turns the intended INSERT into a covert UPDATE
of an arbitrary workflow row (overwriting name/description/data/trigger_id/uuid/
debug_enabled). REST-reachable (no unlockedActions clobber in beforeFilter).
 
Not currently exploitable: workflows is global config (no org/user ownership FK,
no secrets) and add/edit share the same site-admin-only ACL with no per-row
scope, so the redirect only reaches rows the actor can already overwrite via
edit($id) — identical to the Regexp admin_add footgun. Hardened anyway, per
user request, with an id-strip covering both the wrapped (add) and flat (editor)
caller shapes; protects all future callers of the model helper.
 
edit() is already doubly id-safe (inverse-merge from the route-loaded record in
__applyDataFromSavedWorkflow ignoring id/uuid, then editWorkflow re-pins id via
fetchWorkflow). All other write actions (toggleModule/massToggleField -> redis,
toggleDebug -> loaded record, executeWorkflow/moduleStatelessExecution -> runtime
only, delete -> CRUD route id) reach no request-data row save.
 
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

Editor assessment

This commit patches CVE-2026-56422. The subject repeats the preventative phrasing without naming WorkflowsController, and the body spends most of its length proving the issue is not exploitable, since workflows are global config with no ownership and add/edit share a site-admin-only ACL. The explanation of how CakePHP seeds the id from client data and why a fieldList does not prevent an update is genuinely instructive. Yet the defensive framing and audit vocabulary bury the one-line fix, and the message reads as an argument for why nothing urgent was needed. Correct but unfocused.

Browse categories

More fix examples · Back to search