{"id":"CVE-2018-12885","aliases":["EUVD-2018-4838","GHSA-h4gq-q399-xm7r"],"status":"published","title":"The randMod() function of the smart contract implementation for MyCryptoChamp, an Ethereum game,...","description":"The randMod() function of the smart contract implementation for MyCryptoChamp, an Ethereum game, generates a random value with publicly readable variables such as the current block information and a private variable, (which can be read with a getStorageAt call). Therefore, attackers can get powerful champs/items and get rewards.","severity":{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01387,"percentile":0.72433,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-338"],"published":"2018-08-07T15:00:00Z","modified":"2026-06-17T01:38:30Z","products":[{"vendor":"mycryptochamp","product":"mycryptochamp"}],"references":[{"url":"https://etherscan.io/address/0xa44e464b13280340904ffef0a65b8a0033460430","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://medium.com/coinmonks/get-legendary-items-by-breaking-pnrg-of-mycyptochamp-an-ethereum-online-game-cve-2018-12855-6e6beb41b8df","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory"]},{"url":"https://etherscan.io/address/0x689FB61845488297dfE7586E5f7956475955d2Dc","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-12885"},{"url":"https://github.com/advisories/GHSA-h4gq-q399-xm7r"}],"sources":{"cve":[{"id":"CVE-2018-12885","description":"The randMod() function of the smart contract implementation for MyCryptoChamp, an Ethereum game, generates a random value with publicly readable variables such as the current block information and a private variable, (which can be read with a getStorageAt call). Therefore, attackers can get powerful champs/items and get rewards.","status":"published","published":"2018-08-07T15:00:00Z","modified":"2024-08-05T08:45:02.506Z","updated_at":"2026-11-02T14:35:06.320867Z"}],"euvd":[{"id":"EUVD-2018-4838","description":"The randMod() function of the smart contract implementation for MyCryptoChamp, an Ethereum game, generates a random value with publicly readable variables such as the current block information and a private variable, (which can be read with a getStorageAt call). Therefore, attackers can get powerful champs/items and get rewards.","status":"published","published":"2018-08-07T15:00:00Z","modified":"2024-08-05T08:45:02Z","updated_at":"2026-11-03T02:39:51.651517Z"}],"ghsa":[{"id":"GHSA-h4gq-q399-xm7r","title":"The randMod() function of the smart contract implementation for MyCryptoChamp, an Ethereum game,...","description":"The randMod() function of the smart contract implementation for MyCryptoChamp, an Ethereum game, generates a random value with publicly readable variables such as the current block information and a private variable, (which can be read with a getStorageAt call). Therefore, attackers can get powerful champs/items and get rewards.","status":"published","published":"2022-05-14T02:20:31Z","modified":"2023-02-02T05:05:24Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-338"],"updated_at":"2026-11-02T14:52:06.598736Z"}],"nvd":[{"id":"CVE-2018-12885","description":"The randMod() function of the smart contract implementation for MyCryptoChamp, an Ethereum game, generates a random value with publicly readable variables such as the current block information and a private variable, (which can be read with a getStorageAt call). Therefore, attackers can get powerful champs/items and get rewards.","status":"published","published":"2018-08-07T15:29:00.733Z","modified":"2026-06-17T01:38:30.067Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-338"],"updated_at":"2026-11-02T14:04:35.310988Z"}]}}
