Skip to content
OpenAdvisories
Unscored CVE-2018-15552 EUVD-2018-7428GHSA-cj6v-rj8x-qr97

The "PayWinner" function of a simplelottery smart contract implementation for The Ethereum Lottery, an Ethereum gambling game, generates a …

Published Sep 7, 2018 · Updated Aug 5, 2024 · Assigned by mitre

Description

The "PayWinner" function of a simplelottery smart contract implementation for The Ethereum Lottery, an Ethereum gambling game, generates a random value with publicly readable variable "maxTickets" (which is private, yet predictable and readable by the eth.getStorageAt function). Therefore, it allows attackers to always win and get rewards.

References