Descrizione
MISP contains a Server-Side Request Forgery (SSRF) vulnerability in its feed and sync HTTP request handling. When the application uses libcurl as the HTTP transport, the CURLOPT_FOLLOWLOCATION option was enabled by default, causing the library to automatically follow HTTP redirects without the application's own per-hop validation logic being invoked. - Feed requests: MISP implements its own redirect validation for feed sources, but libcurl was following redirects before that validation could execute, allowing a malicious or compromised feed source to redirect the request to arbitrary internal URLs. - Sync requests: Sync peers are server-configured, and the application does not perform per-hop redirect validation for sync traffic. libcurl's automatic redirect following allowed a malicious sync peer to redirect the request to internal network resources. An attacker who is a configured sync peer, controls a feed source URL, or can influence DNS resolution for a configured endpoint can exploit this to cause the MISP server to issue requests to arbitrary internal services, potentially reading sensitive data or interacting with internal APIs that are not otherwise exposed. Affected: MISP versions prior to 2.5.52.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.1, EPSS 0.4% (percentile 25).
Versioni da aggiornare
- MISP MISP: vulnerabili le versioni precedenti alla
2.5.52→ aggiornare alla2.5.52o successiva.
Indicazioni del vendor
Soluzione (testo originale del vendor):
The fix disables libcurl's automatic redirect following (CURLOPT_FOLLOWLOCATION) for both feed and sync HTTP sockets. A new private helper method checks whether the socket is a CurlClient instance and explicitly sets follow-redirects to false. This ensures that feed redirects are handled by MISP's own per-hop validation logic, and sync requests remain pinned to the configured URL, preventing the server from being directed to arbitrary internal targets via redirect responses.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare filtri sul traffico in uscita del server e bloccare l'accesso agli endpoint di metadati cloud (169.254.169.254).
- Sensibilizzare gli utenti sul phishing e bloccare via WAF i redirect verso domini esterni non attesi.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| MISP | MISP | < 2.5.52 | 2.5.52 |