The maxRandom function of a smart contract implementation for All For One, an Ethereum gambling game, generates a random value with publicly readable variables because the _seed value can be retrieved with a getStorageAt call. Therefore, it allows attackers to always win and get rewards.
References
Configurations
Information
Published : 2018-08-15 10:29
Updated : 2019-06-24 14:15
NVD link : CVE-2018-12056
Mitre link : CVE-2018-12056
JSON object : View
CWE
CWE-338
Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Products Affected
all-for-one
- all_for_one