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.
Advisories
Source ID Title
EUVD EUVD EUVD-2018-4425 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.
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2024-08-05T08:38:06.264Z

Reserved: 2018-06-15T00:00:00

Link: CVE-2018-12454

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2018-06-17T12:29:00.237

Modified: 2024-11-21T03:45:14.757

Link: CVE-2018-12454

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.