mirror of
https://github.com/0xMarcio/cve.git
synced 2025-05-29 01:31:01 +00:00
19 lines
1.1 KiB
Markdown
19 lines
1.1 KiB
Markdown
### [CVE-2018-12975](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-12975)
|
|

|
|

|
|

|
|
|
|
### Description
|
|
|
|
The random() function of the smart contract implementation for CryptoSaga, an Ethereum game, generates a random value with publicly readable variables such as timestamp, the current block's blockhash, and a private variable (which can be read with a getStorageAt call). Therefore, attackers can precompute the random number and manipulate the game (e.g., get powerful characters or get critical damages).
|
|
|
|
### POC
|
|
|
|
#### Reference
|
|
- https://medium.com/@jonghyk.song/create-legendary-champs-by-breaking-prng-of-cryptosaga-an-ethereum-rpg-game-cve-2018-12975-8de733ff8255
|
|
- https://medium.com/@jonghyk.song/create-legendary-champs-by-breaking-prng-of-cryptosaga-an-ethereum-rpg-game-cve-2018-12975-8de733ff8255
|
|
|
|
#### Github
|
|
No PoCs found on GitHub currently.
|
|
|