Descrizione
In Eclipse Che versions 7.61.0 through 7.124.0 three related defects in the SCM-OAuth flow, chain into a Medium-severity finding: 1. Open redirect (CWE-601) — `EmbeddedOAuthAPI.callback()` and the OAuth1 callback issue `307 Temporary Redirect` to whatever URL was carried in the `redirect_after_login` field of the OAuth `state` parameter. The value is fully attacker-controlled and never compared against an allow-list of permitted hosts. 2. Missing CSRF nonce in OAuth `state` (CWE-352) — `OAuthAuthenticator.prepareState()` builds the `state` parameter solely by URL-encoding the original request's query string. No random nonce is bound to the user's session, so an attacker can pre-compute a callback URL carrying _their own_ SCM authorization `code` and have a logged-in victim open it. `callback()` then stores the attacker's SCM token under the victim's Che identity (`personalAccessTokenManager.store(...)`). 3. Mutable field on a `@Singleton` (CWE-362 / CWE-488) — `EmbeddedOAuthAPI` is `@Singleton` but stores the per-request `redirect_after_login` value into the instance field `private String redirectAfterLogin`. Any user's `authenticate()` call overwrites the field for all concurrent users; the `access_denied` error-path of `callback()` then redirects to the _last writer's_ URL.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.3, EPSS 0.3% (percentile 18).
Versioni da aggiornare
- Eclipse Foundation Eclipse Che: vulnerabili le versioni dalla
7.61.0precedenti alla7.125.0→ aggiornare alla7.125.0o successiva.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Chiudere le sessioni amministrative quando non servono ed evitare di navigare su siti non fidati con sessioni amministrative aperte.
- Sensibilizzare gli utenti sul phishing e bloccare via WAF i redirect verso domini esterni non attesi.
- Limitare l'accesso di rete al servizio e applicare limiti di connessione per ridurre la finestra di sfruttamento.
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 Che | ≥ 7.61.0 < 7.125.0 | 7.125.0 |
Riferimenti
- Riferimentohttps://gitlab.eclipse.org/security/cve-assignment/-/work_items/363
- Riferimentohttps://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/1128
- Riferimentohttps://redhat.atlassian.net/browse/CRW-13151
- Riferimentohttps://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/1128