Descrizione
Pion DTLS is a Go implementation of Datagram Transport Layer Security. From 2.1.0 until 3.1.14, a server with a SessionStore saved the session ID and master secret after ClientKeyExchange, before receiving a valid Finished message and before enforcing the configured client-authentication checks. A remote client can omit its Certificate message, send ClientKeyExchange, leave the first handshake unfinished, and then resume the cached session using the master secret it learned during key exchange. The server must use a SessionStore and negotiate a certificate-based cipher suite. The attack can bypass client certificates required through RequireAnyClientCert or RequireAndVerifyClientCert, or a rejecting VerifyConnection callback. WebRTC users are not affected. The abbreviated handshake can allow unauthorized access to application data. The issue is fixed in version 3.1.14.
Come correggere
Priorità: Alta — pianificare la correzione entro pochi giorni. Motivazione: CVSS 9.1, EPSS 0.6% (percentile 45).
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/410ac0ef28df49757d3a695c10dda75137e1dbf2
- Riferimentohttps://github.com/pion/dtls/commit/ce84b979bcb5449727b3ea5c57add4e1edb33284
- 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-hhpj-h56m-9f2p