[security] Mass assignment fix sweep

fix: [security] Mass assignment fix sweep
[security] Mass assignment fix sweep58f637-fix-security-mass-assignment-fix-sweep-cve-2026-56422fixsecurity mass assignment fix sweep

Committed by iglocska

commit message
fix: [security] Mass assignment fix sweep

AttributesController: add_threatconnect checked __canModifyEvent() on the
*route* event ($eventId) but built every imported attribute's event_id (and the
post-import "unpublish" saveField) from the attacker-controlled request body
field Attribute[event_id]. A user able to modify any one event could therefore
inject ThreatConnect-CSV attributes into — and unpublish — an arbitrary event
they have no rights to (mass-assignment scope injection via event_id; the model
save path performs no event-ownership check). Pin all three sinks to the
ACL-validated route $eventId; the legitimate UI form already posts the same id,
so behaviour is unchanged for normal use.
 
Live-verified before/after on the dev instance: pre-fix, an attribute posted to
route event X with body event_id=Y landed in Y and flipped Y's published flag
1->0; post-fix the same request lands in X and leaves Y untouched.
 
Milestone AttributesController 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 pinpoints the mismatch in AttributesController: add_threatconnect checked modification rights on the route event but built attribute event_ids and the post-import unpublish call from a body event_id. That is a crisp statement of both the vulnerability and the impact, including the ability to unpublish a victim event, and the fix is equally clear, pinning all three sinks to the ACL-validated route id. A note that the normal form posts the same id explains why legitimate use is unaffected, and the before-and-after proof is concise. Only the sweep-style subject keeps it from standing alone.

Browse categories

More fix examples · Back to search