Descrizione
In Eclipse Ditto versions 1.1.0 to 3.9.8, when pre-authentication is enabled, the gateway service accepts the pre-authenticated subject not only from the `x-ditto-pre-authenticated` HTTP header set by a trusted reverse proxy, but also from an undocumented `x-ditto-pre-authenticated` URL query parameter that a client can set. A reverse proxy that only overwrites the header therefore does not stop clients from supplying their own subject. With the default configuration of the Ditto Helm chart (`global.jwtOnly: false`, which implicitly enables pre-authentication), the bundled nginx skips HTTP Basic authentication for any request with an `Authorization: Bearer` header and forwards it without the pre-authentication header. An unauthenticated remote attacker can send an invalid Bearer token together with the query parameter to authenticate as any chosen policy subject. Pre-authentication succeeds before the JWT is validated, so the attacker can read and modify Things and Policies with that subject's permissions. As a mitigation, disable pre-authentication in the gateway (`ENABLE_PRE_AUTHENTICATION=false`) or, when using the Helm chart, configure `global.jwtOnly: true`.
Come correggere
Priorità: Alta — pianificare la correzione entro pochi giorni. Motivazione: CVSS 9.1, EPSS 0.8% (percentile 57).
Versioni da aggiornare
- Eclipse Foundation Eclipse Ditto: vulnerabili le versioni dalla
1.1.0fino alla3.9.8inclusa → aggiornare a una release successiva alla3.9.8.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Non esporre l'interfaccia di gestione su Internet: consentire l'accesso solo da reti fidate e verificare la presenza di account, sessioni o chiavi non autorizzate.
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 Foundation | Eclipse Ditto | ≥ 1.1.0 ≤ 3.9.8 | — |
Riferimenti
- Riferimentohttps://github.com/eclipse-ditto/ditto/security/advisories/GHSA-chwq-wg27-qvfr
- Riferimentohttps://gitlab.eclipse.org/security/cve-assignment/-/work_items/539
- Riferimentohttps://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/1346
- Riferimentohttps://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/1346