The defect in Mattermost's ABAC policy endpoint is a modeling failure, not a missed authorization check. A channel admin detaches a system-assigned parent policy by sending a PUT with an empty imports list, and the system honors it because every step of the developer's intended workflow ends with the field being written: the JSON body exposes imports, the deserializer maps it to the persistence layer, and the existing admin check proves the caller legitimately owns the channel. Distinguishing system-assigned imports from admin-added ones, and refusing to clear the former, requires explicit work the PUT-replacement flow does not incentivize. The friction to do the dangerous thing is lower than the friction to do the safe thing.

A guard inside the handler (reject empty imports, filter system entries out of the write set) is symptom treatment. It patches the call site named in the advisory; it does not change the underlying shape, a writable structural trust edge on a resource whose admin is not the trust-graph owner. The next sibling field on the same policy object will be written the same way. The durable remediation is at the schema or contract layer: split imports into system-imports and admin-imports, or move parent attachment to a separate, separately-privileged endpoint with system entries modeled as a read-only derived view rather than a writable column.

Defender checklist:

  • Audit every writer to imports: the patched endpoint, the original parent-attaching path, batch sync jobs, CLI tooling, deprecated API versions, and migration scripts still wired up. Deprecation is not eradication.
  • Map which channels, teams, and downstream resources inherited each affected policy before the patch landed. The patch closes the future door; it does not un-detach historical detachments, and on a MEDIUM-scored advisory nobody will hunt retroactively.
  • Treat blast radius as a graph event, not a single-channel event. In a hierarchical ABAC system, a detach at any node rewrites trust for every descendant; chaining detachments across sibling resources is combinatorial, not additive.
  • Watch sibling fields on the same policy resource — required_attributes, expression, scope — for the same shape under the next advisory.

CVSS 5.5 freezes exposure at a single point in a single channel. The actual damage surface is topology.