Descrizione

MISP contains multiple related authorization and input-validation flaws in its object editing and attachment handling workflows. - A user with permission to edit their own object could inject a foreign attribute identifier into the object revision form. The revision data, stored in the server-side session, was merged into the stored object before the save diff was computed. The save then wrote to the foreign attribute row by its identifier without verifying that the row belonged to the caller's event or organisation, allowing an attacker to overwrite or soft-delete an attribute in another organisation's private event. - Attachment file paths were constructed directly from event and attribute identifiers supplied by the request. Because no type or format validation was applied, crafted values (for example directory-traversal sequences or file-name extensions) could cause the application to read from or write to file-system locations outside the intended attachment directory. - The audit-log behaviour recorded an edit under the event identifier carried in the save payload rather than the event identifier of the stored database row. An attacker who included a different event identifier in the save could cause the audit entry to be attributed to the wrong event, undermining the integrity of the audit trail. Exploitation requires an authenticated web-session user with object-editing permissions (perm_add / perm_modify). API-key-only requests do not carry the PHP session and are not affected by the revision-session vector. Affected versions: MISP < 2.5.52. Fixed in 2.5.52.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.1, EPSS 0.4% (percentile 29).

Versioni da aggiornare

  • MISP MISP: vulnerabili le versioni precedenti alla 2.5.52 → aggiornare alla 2.5.52 o successiva.

Indicazioni del vendor

Soluzione (testo originale del vendor):

The revision stored in the session is now stripped of attribute identifiers (id, event_id, object_id) before being persisted, and the edit action uses the session revision only to pre-fill the form on non-POST requests rather than to influence the save diff. Attachment path construction now rejects any event or attribute identifier that is not a plain non-negative integer, preventing path traversal. The audit-log behaviour now always resolves the event identifier from the database row rather than from the save payload, ensuring log entries are attributed to the correct event.

Mitigazioni temporanee

Da applicare solo se non è possibile aggiornare subito:

  • Filtrare le sequenze di path traversal sul reverse proxy/WAF ed eseguire il servizio con permessi minimi sul filesystem.
  • Restringere l'accesso al componente, applicare il principio del minimo privilegio e controllare i log per operazioni non autorizzate.

Verifica

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta in
MISP MISP < 2.5.52 2.5.52

Riferimenti