VULNERABILITY INTELLIGENCE
CVE-2018-12454
CVSS score7.5 HIGH
EPSS probability1.25%
CISA KEVNot currently listed
Published2018-06-17
Last modified2026-06-17
CVSS vectorCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Description
The _addguess function of a simplelottery smart contract implementation for 1000 Guess, an Ethereum gambling game, generates a random value with publicly readable variables such as the current block information and a private variable (which can be read with a getStorageAt call). Therefore, it allows attackers to always win and get rewards.
Weakness classification
- nvd@nist.gov: CWE-338