CVE-2018-14084

An issue was discovered in a smart contract implementation for MKCB, an Ethereum token

published July 16, 2018

CVSS
โ€”
EPSS
1%
Percentile
69.1
In the wild
Unconfirmed
What it is

โš ๏ธ A surprising integer overflow could be lurking in the MKCB smart contract! If sellPrice gets too ambitious, it might lead to serious miscalculations. ๐Ÿคฏ Think of it like a restaurant setting an exorbitant price for a dish that no one would ever order โ€” the kitchen might struggle to handle the inflated expectation, leading to a recipe disaster! An attacker could exploit this overflow in the sell() function by setting an outrageous sellPrice, resulting in potentially incorrect amounts being processed. This could lead to financial losses or significant disruptions in token transactions, leaving investors in a bind! ๐Ÿ˜ฑ

Put simply

Think of it like a restaurant setting an exorbitant price for a dish that no one would ever order โ€” the kitchen might struggle to handle the inflated expectation, leading to a recipe disaster! This vulnerability occurs when the owner allows an excessively high value for sellPrice in the setPrices() function, which can then cause integer overflow when the sell() function multiplies amount and sellPrice. This flaw opens the door to unintended behaviors in the contract's logic.

What to do

An attacker could exploit this overflow in the sell() function by setting an outrageous sellPrice, resulting in potentially incorrect amounts being processed. This could lead to financial losses or significant disruptions in token transactions, leaving investors in a bind! ๐Ÿ˜ฑ To mitigate this issue, ensure that the sellPrice is validated and remains within reasonable limits. Consider implementing checks in the setPrices() function to prevent values that could lead to overflows. Regularly review and audit smart contract code for potential vulnerabilities. You've got this! With a few precautions, you can safeguard your contracts from this unexpected twist! ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01249 ยท 69.1th percentile
Published
2018-07-16T02:00Z
EPSS history
Timeline
  • 16 JUL 02:00Z
    An issue was discovered in a smart contract implementation for MKCB, an Ethereum token
    cvelistv5