CVE-2018-13587
Description
The mintToken function of a smart contract implementation for DECToken, 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 DECToken's mintToken function allows contract owner to arbitrarily set any user's token balance.
Vulnerability
The mintToken function in the DECToken smart contract (an Ethereum token) has an integer overflow vulnerability. The function allows the contract owner to mint tokens to any address without validating the total supply or balance, enabling an overflow that sets the target balance to an arbitrary value. Affected versions include all deployments of the DECToken contract as found in the referenced repository [1].
Exploitation
An attacker who is the contract owner can trigger the integer overflow by calling mintToken with a large mintedAmount value. The overflow occurs because the contract uses standard arithmetic operations without safe math libraries, allowing the sum to wrap around. The owner can then set the balance of any user to any desired value [2].
Impact
By exploiting this overflow, the owner can inflate the total token supply and arbitrarily manipulate token holdings of any address. This undermines the integrity of the token's value and can lead to loss of funds for legitimate holders. The owner gains full control over all token balances.
Mitigation
As of the publication date, no fix has been released for the DECToken contract. The vulnerability is inherent in the code design. To mitigate, token contracts should use safe math libraries like OpenZeppelin's SafeMath to prevent integer overflows. Users should avoid interacting with DECToken or similar vulnerable contracts [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
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/DECTokenmitrex_refsource_MISC
News mentions
0No linked articles in our index yet.