Insecure generation of random numbers
Description
The system uses insecure functions, insufficient ranges or low-entropy components to generate random numbers. This could allow an attacker to guess the generation sequence after a short time or predict results using probabilistic methods.
Impact
Predict the sequence of random numbers to create new attack vectors.
Recommendation
Use the most secure mechanisms offered by language to generate random numbers.
Threat
Authenticated attacker from the Internet.
Expected Remediation Time
⏱️ 15 minutes.
Requirements
223 - Uniform distribution in random numbers224 - Use secure cryptographic mechanisms346 - Use initialization vectors onceRules
Java Use Of Insecure RandomJava Weak Random SeedJavascript Predictable Math RandomRuby Use Of Insecure Random FunctionScala Random Hardcoded SeedDart Cryptography Insecure Random Key GenerationKotlin Weak Random SeedScala Insecure Random Key GenerationScala Secure Random Hardcoded Seed UnsafeC Sharp Insecure Random Key GenerationJava Secure Random Hardcoded Seed UnsafePhp Insecure Random FunctionsTypescript Weak Random Secret GenerationGo Insecure Random Key Generation