Descrizione
Pion DTLS is a Go implementation of Datagram Transport Layer Security. From 2.1.0 until 3.1.14, a listener performing DTLS 1.2 resumption accepted a session created by an outbound client connection without checking which role created it. A malicious server previously contacted by the application can retain the outbound session secret, select the client-side cached session through its session key, and present it to the application's reachable listener when both connections share a SessionStore. The attacker must first complete an outbound connection. WebRTC users are not affected. The listener can accept application data without running its normal PSK callback or client-certificate authentication checks, allowing a peer trusted only for an outbound connection to gain unauthorized listener access. The issue is fixed in version 3.1.14.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.4, EPSS 0.6% (percentile 41).
Versioni da aggiornare
- pion dtls: vulnerabile la versione
>= 2.1.0, <= 2.2.12→ installare l'ultima release supportata dal vendor. - pion dtls: vulnerabile la versione
>= 3.0.0, < 3.1.14→ installare l'ultima release supportata dal vendor.
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 |
|---|---|---|---|
| pion | dtls | >= 2.1.0, <= 2.2.12 | — |
| pion | dtls | >= 3.0.0, < 3.1.14 | — |
Riferimenti
- Riferimentohttps://github.com/pion/dtls/commit/2b234cd7174fc758372de0e479fc66515f54f631
- Riferimentohttps://github.com/pion/dtls/commit/b8359836b8941ff2a37ad50fb23f801edebeece8
- Riferimentohttps://github.com/pion/dtls/pull/1234
- Riferimentohttps://github.com/pion/dtls/releases/tag/v3.1.14
- Riferimentohttps://github.com/pion/dtls/releases/tag/v4.0.0-rc.6
- Riferimentohttps://github.com/pion/dtls/security/advisories/GHSA-cqhp-ggp7-58qj