Evmos's contract balance not updating correctly after interchain transaction
evmos
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/evmos/evmos/v18 Go |
|
|
| github.com/evmos/evmos/v17 Go |
|
|
| github.com/evmos/evmos/v16 Go |
|
|
| github.com/evmos/evmos/v15 Go |
|
|
| github.com/evmos/evmos/v14 Go |
|
|
| github.com/evmos/evmos/v13 Go |
|
|
| github.com/evmos/evmos/v12 Go |
|
|
| github.com/evmos/evmos/v11 Go |
|
|
| github.com/evmos/evmos/v10 Go |
|
|
| github.com/evmos/evmos/v9 Go |
|
|
| github.com/evmos/evmos/v8 Go |
|
|
| github.com/evmos/evmos/v7 Go |
|
|
| github.com/evmos/evmos/v6 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 |
Original description
Evmos is the Ethereum Virtual Machine (EVM) Hub on the Cosmos Network. There is an issue with how to liquid stake using Safe which itself is a contract. The bug only appears when there is a local state change together with an ICS20 transfer in the same function and uses the contract's balance, that is using the contract address as the sender parameter in an ICS20 transfer using the ICS20 precompile. This is in essence the "infinite money glitch" allowing contracts to double the supply of Evmos after each transaction.The issue has been patched in versions >=V18.1.0.
From the CVE record · GitHub_M
References
- github.com/evmos/evmos/security/advisories/GHSA-xgr7-jgq3-mhmcVendor advisory
- github.com/evmos/evmos/commit/478b7a62e7af57a70cf3a01126c7f5a89bee69d7Patch
- github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37153.json
- nvd.nist.gov/vuln/detail/CVE-2024-37153
- github.com/evmos/evmos
- pkg.go.dev/vuln/GO-2024-2903