{"id":"CVE-2018-12056","aliases":["CVE-2018-12056"],"related":[],"kind":"vulnerability","state":"published","title":"The maxRandom function of a smart contract implementation for All For One, an Ethereum gambling game, generates a random value with publicl…","summary":"The maxRandom function of a smart contract implementation for All For One, an Ethereum gambling game, generates a random value with publicly readable variables because the _seed value can be retrieved with a getStorageAt call. Therefore, it allows attackers to always win and get rewards.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The maxRandom function of a smart contract implementation for All For One, an Ethereum gambling game, generates a random value with publicly readable variables because the _seed value can be retrieved with a getStorageAt call. Therefore, it allows attackers to always win and get rewards.","source":"cvelist"},{"lang":"es","text":"La función maxRandom de la implementación de contrato inteligente para All For One, un juego de apuestas de Ethereum, genera un valor aleatorio con variables legibles públicamente porque se puede recuperar el valor _seed con una llamada getStorageAt. Por lo tanto, permite que los atacantes siempre ganen y obtengan premios.","source":"nvd"}],"published":"2018-08-15T17:00:00.000Z","modified":"2026-06-17T01:37:04.927Z","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":"all-for-one","product":"all_for_one","cpe":"cpe:2.3:a:all-for-one:all_for_one:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://medium.com/%40jonghyk.song/to-be-a-winner-of-ethereum-gambling-game-all-for-one-by-breaking-prng-1ab011163d40","tags":["x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.apache.org/thread.html/a62aa2706105d68f1c02023fe24aaa3c13b4d8a1826181fed07d9682%40%3Cnotifications.zookeeper.apache.org%3E","tags":["mailing-list","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2018-12056","url":"https://www.cve.org/CVERecord?id=CVE-2018-12056","licence":"CVE Terms of Use","modified":"2024-08-05T08:24:03.573Z"},{"source":"nvd","name":"NVD","id":"CVE-2018-12056","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-12056","licence":"Public domain","modified":"2026-06-17T01:37:04.927Z"}],"updatedAt":"2026-11-25T22:57:39.277Z","epss":{"score":0.01675,"percentile":0.77546,"date":"2026-12-01T12:00:22.000Z"}}