Evmos vulnerable to exploit of smart contract account and vesting
evmos
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/evmos/evmos/v18 Go |
|
|
| github.com/evmos/evmos Go |
| No fix yet |
| github.com/evmos/evmos/v2 Go |
evmos
| Product | Affected | Fixed in |
|---|---|---|
| github.com/evmos/evmos/v18 Go |
|
|
| github.com/evmos/evmos Go |
| No fix yet |
| github.com/evmos/evmos/v2 Go |
|
| No fix yet |
| github.com/evmos/evmos/v3 Go |
| No fix yet |
| github.com/evmos/evmos/v4 Go |
| No fix yet |
| github.com/evmos/evmos/v5 Go |
| No fix yet |
| github.com/evmos/evmos/v6 Go |
| No fix yet |
| github.com/evmos/evmos/v7 Go |
| No fix yet |
| github.com/evmos/evmos/v8 Go |
| No fix yet |
| github.com/evmos/evmos/v9 Go |
| No fix yet |
| github.com/evmos/evmos/v10 Go |
| No fix yet |
| github.com/evmos/evmos/v11 Go |
| No fix yet |
| github.com/evmos/evmos/v12 Go |
| No fix yet |
| github.com/evmos/evmos/v13 Go |
| No fix yet |
| github.com/evmos/evmos/v14 Go |
| No fix yet |
| github.com/evmos/evmos/v15 Go |
| No fix yet |
| github.com/evmos/evmos/v16 Go |
| No fix yet |
| github.com/evmos/evmos/v17 Go |
| No fix yet |
| github.com/evmos/evmos/v19 Go |
|
|
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.
From the CVE record · GitHub_M
Evmos checks authorization for the contract caller when a user creates a vesting account, but takes funds from the funder address supplied in the message. A user who creates the relevant authorization can name a third-party account as funder and drain its funds without that account’s permission.
Engineers running Evmos or the listed Go packages should check their versions: github.com/evmos/evmos/v18 is affected before 19.0.0, and all listed unversioned and /v2–/v11 packages are marked affected with no fix.