{"id":"CVE-2018-15552","aliases":["EUVD-2018-7428","GHSA-cj6v-rj8x-qr97"],"status":"published","title":"The \"PayWinner\" function of a simplelottery smart contract implementation for The Ethereum...","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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01165,"percentile":0.67524,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-338"],"published":"2018-09-07T22:00:00Z","modified":"2026-06-17T01:42:44Z","products":[{"vendor":"theethereumlottery","product":"the_ethereum_lottery"}],"references":[{"url":"https://github.com/TEAM-C4B/CVE-LIST/tree/master/CVE-2018-15552","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-15552"},{"url":"https://github.com/advisories/GHSA-cj6v-rj8x-qr97"}],"sources":{"cve":[{"id":"CVE-2018-15552","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.","status":"published","published":"2018-09-07T22:00:00Z","modified":"2024-08-05T09:54:03.735Z","updated_at":"2026-11-02T14:35:03.825765Z"}],"euvd":[{"id":"EUVD-2018-7428","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.","status":"published","published":"2018-09-07T22:00:00Z","modified":"2024-08-05T09:54:03Z","updated_at":"2026-11-03T02:39:44.201018Z"}],"ghsa":[{"id":"GHSA-cj6v-rj8x-qr97","title":"The \"PayWinner\" function of a simplelottery smart contract implementation for The Ethereum...","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.","status":"published","published":"2022-05-13T01:54:11Z","modified":"2023-02-02T05:02:17Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-338"],"updated_at":"2026-11-02T14:51:24.429027Z"}],"nvd":[{"id":"CVE-2018-15552","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.","status":"published","published":"2018-09-07T22:29:01.617Z","modified":"2026-06-17T01:42:44.183Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-338"],"updated_at":"2026-11-02T14:04:38.672108Z"}]}}
