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

CVE-2018-13629

CVE-2018-13629

Description

The mintToken function of a smart contract implementation for CrimsonShilling, 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 CrimsonShilling token's mintToken function lets the owner set arbitrary user balances.

Vulnerability

The mintToken function in the CrimsonShilling Ethereum smart contract (found in [2]) has an integer overflow vulnerability. The function accepts a uint256 value but does not check for overflow, allowing the contract owner to mint an extremely large amount of tokens, which wraps around to a small value due to overflow. This affects all versions of the contract at the referenced repository [2].

Exploitation

The attacker must be the contract owner. By calling mintToken with a carefully chosen large mintedAmount value, the addition operation overflows, resulting in the target user's balance being set to an arbitrary value (e.g., zero or a large number) controlled by the owner [1]. No other authentication or user interaction is required.

Impact

An attacker who is the contract owner can arbitrarily increase or decrease any user's token balance, effectively stealing tokens or inflating supply. This compromises the integrity and availability of the token, as balances can be manipulated at will [2].

Mitigation

No fix has been disclosed in the available references [1][2]. As a general best practice, the contract should use SafeMath library to prevent integer overflow, or the mintToken function should be removed or restricted. Users should consider the token as untrustworthy until a patched version is released.

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.