What’s Vulnerable › Vulnerabilities
CVE-2018-15552
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2018-09-07 · updated 2026-06-17
- Weakness: CWE-338
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.
Affected products
- Theethereumlottery The Ethereum Lottery: all versions
References
- https://github.com/TEAM-C4B/CVE-LIST/tree/master/CVE-2018-15552
- https://github.com/TEAM-C4B/CVE-LIST/tree/master/CVE-2018-15552
Get alerted when CVE-2018-15552 or the next vulnerability affects your stack