PT-2018-13876 · Ethereum · Lucky9Io
Published
2018-09-18
·
Updated
2018-12-10
·
CVE-2018-17071
CVSS v2.0
5.0
Medium
| Vector | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
Lucky9io (affected versions not specified)
Description
The issue concerns a simple lottery smart contract implementation for Lucky9io, an Ethereum gambling game. It allows attackers to always win and get rewards due to a couple of flaws. Firstly, the
entry number variable, which is intended to be private, can be read using the eth.getStorageAt function. Secondly, attackers can purchase a ticket at a low price by directly calling the fallback function with a small msg.value, because the developer incorrectly set the currency unit. This enables attackers to exploit the system.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Lucky9Io