MISP contains an authorization bypass vulnerability in the handling of sightings during server synchronization and bulk operations. The vulnerability allows a remote attacker with access to a synchronized MISP instance to pull sightings for events that are not shared with their organization or community. The sighting pull mechanism previously executed with elevated privileges and accepted event identifiers without verifying that the local event was authorized for sharing with the remote server. Additionally, the bulk save functionality for sightings did not strictly enforce that the attributes referenced in the request belonged to the specific event specified in the URL, allowing an attacker to associate sightings with unauthorized events by referencing attributes from other events. This can lead to unauthorized disclosure of threat intelligence data and integrity issues where sightings are incorrectly attributed to events the attacker should not access.
The issue was reported by ENISA and fixed in version 2.5.52.
The vulnerability is remediated by enforcing strict authorization checks on event access during sighting operations. A new method, Event::syncedWithServer(), is introduced to verify that a local event is authorized for sharing with a specific remote server based on distribution levels, sharing groups, and organization ownership. This check is applied before pulling sightings from a remote server. Furthermore, the bulkSaveSightings function is modified to explicitly filter attributes by the authorized event ID, ensuring that only attributes belonging to the specified event are processed and that sightings are bound exclusively to that event. This prevents cross-event data access and ensures that operations are scoped to the authorized context.