{"id":"CVE-2018-12885","state":"PUBLISHED","title":"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","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.","publishedAt":"2018-08-07T15:00:00.000Z","updatedAt":"2024-08-05T08:45:02.506Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://etherscan.io/address/0xa44e464b13280340904ffef0a65b8a0033460430","https://medium.com/coinmonks/get-legendary-items-by-breaking-pnrg-of-mycyptochamp-an-ethereum-online-game-cve-2018-12855-6e6beb41b8df","https://etherscan.io/address/0x689FB61845488297dfE7586E5f7956475955d2Dc"],"weaknesses":[],"ingestedAt":"2026-10-29T19:44:15.404Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2018/12xxx/CVE-2018-12885.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2018-12885","state":"PUBLISHED","datePublished":"2018-08-07T15:00:00.000Z","dateUpdated":"2024-08-05T08:45:02.506Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2018-06-26T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://etherscan.io/address/0xa44e464b13280340904ffef0a65b8a0033460430","tags":["x_refsource_MISC"]},{"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"]},{"url":"https://etherscan.io/address/0x689FB61845488297dfE7586E5f7956475955d2Dc","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2018-08-07T14:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2018-07-30T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2018-12885","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://etherscan.io/address/0xa44e464b13280340904ffef0a65b8a0033460430","refsource":"MISC","url":"https://etherscan.io/address/0xa44e464b13280340904ffef0a65b8a0033460430"},{"name":"https://medium.com/coinmonks/get-legendary-items-by-breaking-pnrg-of-mycyptochamp-an-ethereum-online-game-cve-2018-12855-6e6beb41b8df","refsource":"MISC","url":"https://medium.com/coinmonks/get-legendary-items-by-breaking-pnrg-of-mycyptochamp-an-ethereum-online-game-cve-2018-12855-6e6beb41b8df"},{"name":"https://etherscan.io/address/0x689FB61845488297dfE7586E5f7956475955d2Dc","refsource":"MISC","url":"https://etherscan.io/address/0x689FB61845488297dfE7586E5f7956475955d2Dc"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://etherscan.io/address/0xa44e464b13280340904ffef0a65b8a0033460430","tags":["x_refsource_MISC","x_transferred"]},{"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"]},{"url":"https://etherscan.io/address/0x689FB61845488297dfE7586E5f7956475955d2Dc","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T08:45:02.506Z"}}]}}}