Descrizione
Vulnerability due to inadequate restriction of references to external XML entities in OpenKM Community Edition. The XML processing in FormUtils / LocalEntityResolver does not properly restrict the resolution of external resources. An authenticated remote attacker with the ROLE_USER role can exploit the flaw via a REST request. In the 6.3.x branch, this allows the attacker to trigger HTTP requests under their control (SSRF); in 7.0.3, it allows the attacker to read local files and access internal HTTP resources from the server.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.3, EPSS 0.4% (percentile 38).
Versioni da aggiornare
- OpenKM OpenKM Community Edition: vulnerabili le versioni dalla
6.3.3fino alla6.3.13inclusa → aggiornare a una release successiva alla6.3.13. - OpenKM OpenKM Community Edition: vulnerabile la versione
7.0.3→ installare l'ultima release supportata dal vendor.
Indicazioni del vendor
Soluzione (testo originale del vendor):
Update OpenKM CE 7.0.3 to 7.0.4, which has already been released. According to the manufacturer, the entity resolver has been fixed, and general and parameter external entities have been disabled by enabling FEATURE_SECURE_PROCESSING. For versions 6.3.3 through 6.3.13, the fix will be included in 6.3.14, which is pending release; HTTP requests for non-local DTDs have also been removed. As a temporary measure to restrict access to the workflow, the vendor recommends blocking non-administrator users from accessing /OpenKM/services/rest/workflow/* and /OpenKM/services/OKMWorkflow on the reverse proxy or firewall. If the web services are not in use, block the entire /OpenKM/services/* directory. The manufacturer recommends migrating to OpenKM CE 7.0.4. Before migrating from 6.3.x, please note that 7.x does not include the jBPM workflow engine.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Disabilitare la risoluzione di entità esterne (DTD) nel parser XML, se configurabile.
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 |
|---|---|---|---|
| OpenKM | OpenKM Community Edition | ≥ 6.3.3 ≤ 6.3.13 | — |
| OpenKM | OpenKM Community Edition | 7.0.3 | — |