Descrizione
Goproxy before 1.9.4 contains a weak key generation vulnerability in NewCounterEncryptorRandFromKey that derives RSA and Ed25519 leaf certificate private keys from public data due to misuse of hash.Sum. Attackers with the CA certificate and one observed leaf certificate can regenerate that host's leaf private key and impersonate the host to clients trusting the proxy CA.
Tipo di vulnerabilità
CWE-337
Predictable Seed in Pseudo-Random Number Generator (PRNG)
A Pseudo-Random Number Generator (PRNG) is initialized from a predictable seed, such as the process ID or system time.
Impatto sui sistemi
| Ambito | Impatto |
| Altro |
Aggirare i meccanismi di protezione, Dipende dal contesto |
Come si previene
Use non-predictable inputs for seed generation.
Architettura e progettazione · Requisiti · Librerie o framework
Use products or modules that conform to FIPS 140-2 to avoid obvious entropy problems, or use the more recent FIPS 140-3 if possible.
Sviluppo
Use a PRNG that periodically re-seeds itself using input from high-quality sources, such as hardware devices with high entropy. However, do not re-seed too frequently, or else the entropy source might block.
Tutte le 13 CVE di tipo CWE-337, con andamento e prevenzione