Descrizione
engine.io-client is the client for engine.io, the implementation of a transport-based cross-browser/cross-device bi-directional communication layer for Socket.IO. The vulnerability is related to the way that node.js handles the `rejectUnauthorized` setting. If the value is something that evaluates to false, certificate verification will be disabled. This is problematic as engine.io-client 1.6.8 and earlier passes in an object for settings that includes the rejectUnauthorized property, whether it has been set or not. If the value has not been explicitly changed, it will be passed in as `null`, resulting in certificate verification being turned off.
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.794 CVE di tipo CWE-295, con andamento e prevenzione