VULNERABILITY INTELLIGENCE

CVE-2018-17987

CVSS score7.5 HIGH
EPSS probability0.93%
CISA KEVNot currently listed
Published2018-12-26
Last modified2026-06-17
CVSS vectorCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Description

The determineWinner function of a smart contract implementation for HashHeroes Tiles, an Ethereum game, uses a certain blockhash value in an attempt to generate a random number for the case where NUM_TILES equals the number of people who purchased a tile, which allows an attacker to control the awarding of the prize by being the last person to purchase a tile.

Weakness classification

  • CWE-330: Use of Insufficiently Random Values

Primary references