MISP Collections retained a sharing group reference (sharing_group_id) even when the collection's distribution level was below 4 (i.e., not restricted to a sharing group). As a result, the sharing group name and UUID were displayed in the collection index and view endpoints to any user who could see the collection, regardless of whether that user was a member of the sharing group. Additionally, when collections were pushed to remote MISP servers, the sharing group data was included in the push payload even for collections not distributed to a sharing group, potentially leaking the group identity to remote systems.
Preconditions:
- An authenticated user with sufficient access to view the affected collection (e.g., a collection with distribution 0-3 that is publicly or broadly visible).
- The collection must have a stale sharing_group_id stored from a prior save.
Impact:
- Unauthorized disclosure of the sharing group name and UUID to users outside the group.
- Potential leakage of sharing group structure to remote MISP servers via the push mechanism.
- An attacker could enumerate sharing group names to identify targeting opportunities.
Affected versions: MISP prior to 2.5.52.
The fix enforces that a collection's sharing group reference is only retained and displayed when the distribution level is 4 (sharing group only). On save, the model layer now clears the sharing_group_id whenever distribution is not 4. The controller layer strips the SharingGroup association from index and view responses for non-distribution-4 collections. The push data collection routine omits SharingGroup data for non-distribution-4 collections. A database migration clears all pre-existing stale sharing_group_id values on collections with distribution below 4, eliminating already-leaked references.