Descrizione
Nmap before 7.992 contains an information disclosure vulnerability in the Nmap Scripting Engine because nse_main.lua does not explicitly seed Lua's math.random generator. Malicious scanned hosts can observe math.random-derived values in NSE script traffic during -sC scans, brute-force the seed, and recover a heap address that weakens ASLR.
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