VYPR
Unrated severityNVD Advisory· Published Jul 9, 2018· Updated Aug 5, 2024

CVE-2018-13468

CVE-2018-13468

Description

The mintToken function of a smart contract implementation for Cavecoin, an Ethereum token, has an integer overflow that allows the owner of the contract to set the balance of an arbitrary user to any value.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Integer overflow in Cavecoin token's mintToken function allows contract owner to arbitrarily set any user's balance.

Vulnerability

The mintToken function in the Cavecoin Ethereum token smart contract contains an integer overflow vulnerability. The function does not use SafeMath or perform overflow checks when updating a user's balance. This allows the contract owner to call mintToken with a large mintedAmount value, causing an integer overflow that sets the target user's balance to an arbitrary value. The affected contract is the Cavecoin token implementation as found in the referenced repository [1][2]. All versions of this contract are vulnerable.

Exploitation

An attacker must be the contract owner (the address that deployed the contract). The owner calls mintToken with a target address and a mintedAmount value that, when added to the target's current balance, exceeds the maximum uint256 value, causing an overflow. The overflow results in the target's balance being set to a low or zero value, or any value the attacker chooses by carefully selecting the overflow amount. No user interaction is required beyond the owner's transaction [1][2].

Impact

A successful exploit allows the contract owner to arbitrarily set the balance of any user to any value. This can be used to inflate the total token supply, drain tokens from other users, or manipulate the token's perceived value. The impact is a complete loss of token integrity and potential financial loss for holders [1][2].

Mitigation

No official fix or patched version has been published for Cavecoin in the available references. The vulnerability can be mitigated by using SafeMath library functions (e.g., add and sub) to prevent integer overflows, or by implementing explicit overflow checks in the mintToken function. As of the publication date (2018-07-09), the contract remains unpatched [1][2].

AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

1

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

2

News mentions

0

No linked articles in our index yet.