VULNERABILITY INTELLIGENCE

CVE-2018-12056

CVSS score7.5 HIGH
EPSS probability1.68%
CISA KEVNot currently listed
Published2018-08-15
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 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.

Weakness classification

  • nvd@nist.gov: CWE-338

Primary references