Vulnerability · Published Jul 5, 2024 · Assigned by GitHub_M
CVE-2024-39696Evmos vulnerable to exploit of smart contract account and vesting
High 8.8
In plain English
A high-severity incorrect authorization in evmos from evmos. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Evmos is a decentralized Ethereum Virtual Machine chain on the Cosmos Network. Prior to version 19.0.0, a user can create a vesting account with a 3rd party account (EOA or contract) as funder. Then, this user can create an authorization for the contract.CallerAddress, this is the authorization checked in the code. But the funds are taken from the funder address provided in the message. Consequently, the user can fund a vesting account with a 3rd party account without its permission. The funder address can be any address, so this vulnerability can be used to drain all the accounts in the chain. The issue has been patched in version 19.0.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/evmos/evmos | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v10 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v11 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v12 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v13 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v14 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v15 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v16 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v17 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v18 | 19.0.0 | GHSA-q6hg-6m9x-5g9c |
| Go | github.com/evmos/evmos/v18 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v19 | 19.0.0 | GO-2024-2974 |
| Go | github.com/evmos/evmos/v2 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v3 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v4 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v5 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v6 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v7 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v8 | no fix listed | GO-2024-2974 |
| Go | github.com/evmos/evmos/v9 | no fix listed | GO-2024-2974 |
Affected products (as reported)
Weakness: CWE-863 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/evmos/evmos/security/advisories/GHSA-q6hg-6m9x-5g9c x_refsource_CONFIRM
- https://github.com/evmos/evmos/commit/0a620e176617a835ac697eea494afea09185dfaf x_refsource_MISC