[security] Mass assignment fix sweep
fix: [security] Mass assignment fix sweep
[security] Mass assignment fix sweep63aebc-fix-security-mass-assignment-fix-sweep-cve-2026-56422fixsecurity mass assignment fix sweep
Committed by iglocska
commit message
fix: [security] Mass assignment fix sweep
SharingGroups: the REST add path (captureSGNew) forced org_id to the
creator's org for non-sync users but read its sibling organisation_uuid
(the owner-org identity used to attribute ownership across instances)
straight from the request body, letting a non-sync user create a sharing
group owned by their own org_id yet stamped with an arbitrary victim
org's organisation_uuid (owner-org spoofing). The non-REST add path
already force-pins organisation_uuid, confirming the intended invariant.
- captureSGNew: pin organisation_uuid to the user's own org for non-sync
users (mirrors org_id's gating); sync keeps the captured remote value so
pulled SGs retain their real owner org.
- non-REST add: unset sync_user_id so the json blob (not covered by CSRF
field hashing) cannot smuggle in a sync_user_id FK on a locally created SG.
- add id-redirection already closed (687e7cb53); edit (REST + non-REST) and
the org/server quick-edit saves audited SAFE (captureSG keys on uuid not
id, existing-SG update + non-REST edit load fresh and whitelist fields,
join saves build fresh extend-gated arrays).
- milestone SharingGroups of the mass-assignment audit
- as reported by Jeroen Pinoy
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>Editor assessment
This commit patches CVE-2026-56422. The body isolates SharingGroups and the owner-org spoofing path in captureSGNew, where org_id was pinned to the creator but organisation_uuid was read from the body, letting a non-sync user stamp a group with a victim org's identity. It then states the fixes clearly, pinning organisation_uuid to the caller's org for non-sync users, keeping the captured value for sync, and unsetting sync_user_id on the non-REST add. The closing audit of add, edit, and join saves adds useful scope. Dense but well argued, with only the sweep title and milestone shorthand as flaws.