{"id":"CVE-2018-17071","aliases":["CVE-2018-17071"],"related":[],"kind":"vulnerability","state":"published","title":"The fallback function of a simple lottery smart contract implementation for Lucky9io, an Ethereum gambling game, generates a random value w…","summary":"The fallback function of a simple lottery smart contract implementation for Lucky9io, an Ethereum gambling game, generates a random value with the publicly readable variable entry_number. This variable is private, yet it is readable by eth.getStorageAt function. Also, attackers can purchase a ticket at a low price by directly calling the fallback function with small msg.value, because the developer set the currency unit incorrectly. Therefore, it allows attackers to always win and get rewards.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The fallback function of a simple lottery smart contract implementation for Lucky9io, an Ethereum gambling game, generates a random value with the publicly readable variable entry_number. This variable is private, yet it is readable by eth.getStorageAt function. Also, attackers can purchase a ticket at a low price by directly calling the fallback function with small msg.value, because the developer set the currency unit incorrectly. Therefore, it allows attackers to always win and get rewards.","source":"cvelist"},{"lang":"es","text":"La función fallback de una simple implementación de contrato inteligente de lotería para Lucky9io, un juego de apuestas de Ethereum, genera un valor aleatorio con la variable legible públicamente entry_number. Este valor es privado, aunque puede ser leído por la función eth.getStorageAt. Además, los atacantes pueden comprar un ticket a bajo precio llamando directamente a la función fallback con un msg.value pequeño. Esto se debe a que el desarrollador ha establecido la divisa incorrectamente.  Por lo tanto, permite que los atacantes ganen siempre y obtengan recompensas.","source":"nvd"}],"published":"2018-09-18T21:00:00.000Z","modified":"2026-06-17T01:45:19.123Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-338"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[],"vendor":"lucky9","product":"lucky9io","cpe":"cpe:2.3:a:lucky9:lucky9io:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/TEAM-C4B/CVE-LIST/tree/master/CVE-2018-17071","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2018-17071","url":"https://www.cve.org/CVERecord?id=CVE-2018-17071","licence":"CVE Terms of Use","modified":"2024-08-05T10:39:59.540Z"},{"source":"nvd","name":"NVD","id":"CVE-2018-17071","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-17071","licence":"Public domain","modified":"2026-06-17T01:45:19.123Z"}],"updatedAt":"2026-11-25T22:57:39.675Z","epss":{"score":0.01208,"percentile":0.69215,"date":"2026-12-01T12:00:22.000Z"}}