{"id":"CVE-2018-17071","sourceIdentifier":"cve@mitre.org","published":"2018-09-18T21:29:03.807","lastModified":"2026-06-17T01:45:19.123","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"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."}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]}],"metrics":{"cvssMetricV30":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE"},"exploitabilityScore":3.9,"impactScore":3.6}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","baseScore":5.0,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE"},"baseSeverity":"MEDIUM","exploitabilityScore":10.0,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-338"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:lucky9:lucky9io:-:*:*:*:*:*:*:*","matchCriteriaId":"A90B2110-2E27-4E5F-B298-6A62FE97F3E1"}]}]}],"references":[{"url":"https://github.com/TEAM-C4B/CVE-LIST/tree/master/CVE-2018-17071","source":"cve@mitre.org","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/TEAM-C4B/CVE-LIST/tree/master/CVE-2018-17071","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Third Party Advisory"]}]}