Descrizione
In Eclipse Theia versions 1.66.0 and up until including 1.73.1, the `@theia/plugin-ext` backend exposes the `/hostedPlugin/:pluginId/:path(*)` HTTP endpoint, which resolves the requested file path with `path.resolve(localPath, filePath)` without verifying that the resolved path stays within the plugin's directory. An unauthenticated network attacker can send percent-encoded `../` sequences (`%2e%2e%2f`) that decode into the path parameter and escape the plugin directory, allowing arbitrary files readable by the Theia backend process to be retrieved. Plugin IDs are derived deterministically from a plugin's publisher and name, so built-in plugins serve as reliable anchors that require no prior knowledge of the target system.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5.
Versioni da aggiornare
- Eclipse Theia: vulnerabili le versioni dalla
1.66.0precedenti alla1.74.0→ aggiornare alla1.74.0o successiva.
Patch e advisory
- Advisory del vendor: gitlab.eclipse.org/security/cve-assignment/-/work_items…
- Mitigazione: gitlab.eclipse.org/security/vulnerability-reports/-/iss…
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.
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 |
|---|---|---|---|
| Eclipse | Theia | ≥ 1.66.0 < 1.74.0 | 1.74.0 |
Riferimenti
- Advisory del vendorhttps://gitlab.eclipse.org/security/cve-assignment/-/work_items/133
- Mitigazionehttps://gitlab.eclipse.org/security/vulnerability-reports/-/issues/524
- Riferimentohttps://github.com/eclipse-theia/theia/security/advisories/GHSA-qmm6-p8q4-2g48
- Riferimentohttps://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/336