Home / Vulnerability Database / Ruby : Weak seed of random number generator
Ruby
Ruby : Weak seed of random number generator
Classification
OWASP Top 10 2013
OWASP Top 10 2017
OWASP Top 10 2021
OWASP MASVS
OWASP ASVS
HIPAA
Overview
The Random.new(seed) method is called with a hardcoded integer argument. The corresponding pseudo-random number generator generates a predictable sequence.
The work of many cryptographic algorithms is based on the use of cryptographically stable PRNG. Some algorithms take as an additional argument the seed value and for each value of this parameter generate a predictable sequence. In this case, the security of the system is based on the assumption that the seed values will be unpredictable.
Sensitive Data Exposure vulnerabilities take the third place in the “OWASP Top 10 2017” web-application vulnerabilities ranking.
MEDIUM
DerScanner Severity Score
Do you want to fix Ruby : Weak seed of random number generator in your application?
See also
Ruby
Ruby : Weak hashing algorithm
Ruby
Ruby : Empty encryption key
Ruby
