Summary
A cross-site request forgery vulnerability in MISP's cullEmptyEvents action allowed an authenticated, sufficiently privileged user to be tricked into deleting published empty events. Because the state-changing endpoint accepted HTTP GET requests, a browser could issue the request without explicit user interaction, potentially causing irreversible event deletion.
Affected context
The vulnerability occurs in MISP deployments where the cullEmptyEvents action is reachable by authenticated users with sufficient privileges and accepts HTTP GET requests for a destructive operation. Bodyless GET requests may bypass CakePHP's normal CSRF validation, allowing a request initiated by an external webpage or automatically loaded browser resource to reach the state-changing endpoint. The use of skipBlocklist increases the significance of deletion because removed events may not leave blocklist entries that would prevent or identify later synchronization.
Exploit preconditions
- Attack surface: The MISP
cullEmptyEventsHTTP endpoint - Required access: A victim must be authenticated and have sufficient privileges to invoke the action
- Trigger point: A browser request to the state-changing endpoint
- Why exploitation is possible: The action accepts HTTP GET requests, while bodyless GET requests are not subject to the expected CakePHP CSRF validation
- User condition: The victim may only need to visit or load content from an attacker-controlled or compromised location
Why this happens
The underlying flaw is a state-changing, irreversible operation exposed through an HTTP GET endpoint without effective CSRF protection. GET requests are conventionally treated as safe and may be generated by browsers as a side effect of loading external resources, but this action performed deletion instead. This behavior maps to CWE-352: Cross-Site Request Forgery, where an application accepts an authenticated request that an external party can cause a user's browser to send. The absence of a method restriction allowed the operation to bypass the framework's normal CSRF validation path.
Potential impact
- An attacker could cause deletion of published empty MISP events
- Event records may be removed without deliberate user interaction
- Deleted events may not produce blocklist entries because of
skipBlocklist - Subsequent synchronization behavior could become difficult to prevent or track
- Security monitoring and incident-response records could be affected by untracked deletion
General mitigation guidance
Mitigation generally focuses on ensuring that destructive actions cannot be triggered through cross-originable, side-effect-free request methods.
Common defensive patterns include:
- Restricting state-changing and irreversible operations to HTTP POST or another appropriate non-GET method
- Applying framework-provided CSRF validation to every state-changing request
- Treating all externally supplied request parameters and browser-originated requests as untrusted
- Requiring explicit authorization checks and least-privilege roles for destructive actions
- Adding confirmation and audit controls for irreversible administrative operations
- Avoiding deletion behaviors that bypass retention, blocklisting, or traceability controls unless explicitly required
How teams detect issues like this
Organizations can identify similar issues through:
- Static analysis rules that flag state-changing behavior implemented in GET handlers
- Code review checks for deletion, modification, or administrative actions exposed through idempotent methods
- Verification that CSRF middleware covers every state-changing route and controller action
- Integration tests that attempt cross-origin requests against authenticated sessions
- Policy enforcement requiring POST, PUT, PATCH, or DELETE semantics for corresponding state changes
- Audit-log monitoring for unexpected event deletions, especially those lacking associated user intent or blocklist records
Automated security review tools may help identify unsafe HTTP method usage and missing CSRF protections, but application-specific testing remains important.

