CVE-2018-12062: SwftCoin - Integer Overflow
- Cve: CVE-2018-12062
- Name: SwftCoin - Integer Overflow
- Description: The sell function of a smart contract implementation for SwftCoin (SWFTC), a tradable Ethereum ERC20 token, allows a potential trap that could be used to cause financial damage to the seller, because of overflow of the multiplication of its argument amount and a manipulable variable sellPrice, aka the "tradeTrap" issue.
- Impact: Malicious sellers can cause financial loss to the contract or other users by exploiting overflow in sell calculations.
- Remediation: Implement safe arithmetic operations to prevent overflow, such as using SafeMath library or built-in overflow checks.
- Vulnerability type: integer_overflow
- Vulnerability impact: data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Epss score: 0.00876
- Epss percentile: 0.59905
- Assignee: [email protected]
- Published at: 2018-06-25T11:29:00Z
- Age in days: 3074
- Modified at: 2026-06-17T01:37:05Z
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-12062
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-190 | Integer Overflow or Wraparound |
References
| Url | Source | Tags |
|---|---|---|
| https://peckshield.com/2018/06/11/tradeTrap/ | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| swft:swftcoin | all versions | no | nvd | /v1/products/swft/swftcoin |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts