CVE-2018-12454 Business logic in n/a
Attackers can predict random values in the 1000 Guess lottery contract to always win rewards, exploiting weak randomness generation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2018-12454?
CVE-2018-12454 is a high-severity vulnerability in n/a, published on 17 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The _addguess function of a simplelottery smart contract implementation for 1000 Guess, an Ethereum gambling 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, it allows attackers to always win and get rewards.
Weakness: CWE-338
Which versions are affected by CVE-2018-12454?
It affects 1 product.
Products include 1000guess 1000 Guess.
How do I fix CVE-2018-12454?
No fix has been published for CVE-2018-12454 yet. Limit exposure of the affected software until one is available.
Is CVE-2018-12454 being exploited?
There is no known exploitation of CVE-2018-12454 in the wild and no public exploit code.
Sources
Also known as GHSA-5vmw-r8q3-jr3r.