CVE-2018-12885
MEDIUMMyCryptoChamp - Predictable Random Value Generation in randMod() Function
Title source: llmDescription
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.
References (3)
Core 3
Core References
Third Party Advisory x_refsource_misc
https://etherscan.io/address/0xa44e464b13280340904ffef0a65b8a0033460430
Exploit, Third Party Advisory x_refsource_misc
https://medium.com/coinmonks/get-legendary-items-by-breaking-pnrg-of-mycyptochamp-an-ethereum-online-game-cve-2018-12855-6e6beb41b8df
Third Party Advisory x_refsource_misc
https://etherscan.io/address/0x689FB61845488297dfE7586E5f7956475955d2Dc
Scores
CVSS v3
5.9
EPSS
0.0139
EPSS Percentile
68.6%
Attack Vector
NETWORK
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Details
CWE
CWE-338
Status
published
Products (1)
mycryptochamp/mycryptochamp
Published
Aug 07, 2018
Tracked Since
Feb 18, 2026