CVE-2018-13599
Description
The mintToken function of a smart contract implementation for ResidualValue, 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.
An integer overflow in the mintToken function of ResidualValue token contract lets the owner set any user's balance arbitrarily.
Vulnerability
The ResidualValue Ethereum token contract contains an integer overflow vulnerability in its mintToken function [1]. When the owner of the contract calls this function, it updates the caller-supplied recipient's balance by adding a mintedAmount to the existing balance without proper bounds checking [1]. This arithmetic operation can overflow a uint256 value, allowing the owner to set the balance to any arbitrary value, including a value that overflows back to a smaller unintended number [1]. The issue affects the version of the contract as found in the ResidualValue repository (no specific version tag given) [2].
Exploitation
An attacker would first need to be the owner of the ResidualValue contract, as the mintToken function is owner-only [1][2]. The owner simply calls mintToken with a target user's address and a large mintedAmount value. Due to integer overflow, the resulting balanceOf[target] += mintedAmount operation wraps around, enabling the owner to set the balance to any desired value, including extremely high token amounts [1].
Impact
Once the overflow is triggered, the owner can assign any number of tokens to any address [1]. This effectively destroys the token's supply integrity and can lead to the inflation of total supply without limit. Because the contract relies on the mintedAmount being added safely, the owner can mint tokens out of thin air and assign them to any user, enabling theft of value from other holders or manipulation of the token economy [1].
Mitigation
No official fix has been published for the ResidualValue contract [2]. The repository shows the vulnerable code with no subsequent patch [1][2]. Users are advised to treat this token as unmaintained and to avoid acquiring or relying on it. Smart contract developers should use SafeMath library functions (e.g., add(), sub()) to prevent integer overflows in all arithmetic operations [1].
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
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
2- github.com/BlockChainsSecurity/EtherTokens/blob/master/GEMCHAIN/mint%20integer%20overflow.mdmitrex_refsource_MISC
- github.com/BlockChainsSecurity/EtherTokens/tree/master/ResidualValuemitrex_refsource_MISC
News mentions
0No linked articles in our index yet.