Descrizione
Apache Hive (JDBC + HiveServer2) implements SSL for plain TCP and HTTP connections (it supports both transport modes). While validating the server's certificate during the connection setup, the client in Apache Hive before 1.2.2 and 2.0.x before 2.0.1 doesn't seem to be verifying the common name attribute of the certificate. In this way, if a JDBC client sends an SSL request to server abc.com, and the server responds with a valid certificate (certified by CA) but issued to xyz.com, the client will accept that as a valid certificate and the SSL handshake will go through.
Tipo di vulnerabilità
CWE-295
Validazione impropria del certificato
Il prodotto non verifica, o verifica in modo errato, un certificato digitale, esponendo le comunicazioni a intercettazioni.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità, Autenticazione |
Aggirare i meccanismi di protezione, Ottenere privilegi o assumere un’altra identità |
Come si previene
Architettura e progettazione · Sviluppo
Certificates should be carefully managed and checked to assure that data are encrypted with the intended owner's public key.
Sviluppo
If certificate pinning is being used, ensure that all relevant properties of the certificate are fully validated before the certificate is pinned, including the hostname.
Tutte le 1.792 CVE di tipo CWE-295, con andamento e prevenzione