[security] Mass assignment fix sweep
fix: [security] Mass assignment fix sweep
[security] Mass assignment fix sweep025f71-fix-security-mass-assignment-fix-sweep-cve-2026-56422fixsecurity mass assignment fix sweep
Committed by iglocska
commit message
fix: [security] Mass assignment fix sweep
TaxonomiesController/Taxonomy::import allowed an injected nested id to
redirect and re-own the deep saveAssociated() (milestone Taxonomies of
the mass-assignment audit).
- Taxonomy::__updateVocab() (the import/update capture sink) builds a
fresh top-level Taxonomy array (no id), but copied the request-supplied
predicate and entry arrays verbatim into saveAssociated(['deep'=>true]).
TaxonomyPredicate/TaxonomyEntry have no id strip and no FK forcing, so a
crafted predicate/entry `id` turned the deep INSERT into an UPDATE that
re-parented and overwrote a predicate/entry owned by another taxonomy.
- Live-proven: importing a NEW namespace whose predicate carried another
taxonomy's predicate id silently moved that predicate (and its value)
into the attacker taxonomy, stripping it from the victim taxonomy, all
logged merely as "imported <attacker>". Reachable via /taxonomies/import
(site-admin only -> adversarial-site-admin covert-redirection lens).
- Fixed by unset()-ing `id` on each nested predicate and entry before the
save; imports only ever create fresh rows. Live before/after proven
(post-fix the injected ids are ignored, fresh rows inserted, victim
taxonomy intact).
- as reported by Jeroen Pinoy
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>Editor assessment
This commit patches CVE-2026-56422. Again titled Mass assignment fix sweep, the body distinguishes this entry by naming the Taxonomies import sink and the nested saveAssociated call that permitted id redirection. It explains how a crafted predicate or entry id re-parented a row owned by another taxonomy, notes the site-admin reachability, and describes unsetting the nested ids as the remedy. The live reproduction of a predicate moving between taxonomies strengthens the account. Length and audit jargon are the main costs, and the repeated title still forces readers into the body to learn the area.