GitHub Advisoryadvisory · Go
GHSA-q6hg-6m9x-5g9c Evmos vulnerable to exploit of smart contract account and vesting
HIGH
Official page ↗
- Aliases
- CVE-2024-39696
- Ecosystem
- Go
- Packages
- github.com/evmos/evmos/v18
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-863
- Reviewed
- 2024-07-10
Affected packages
• Go github.com/evmos/evmos/v18: < 19.0.0 → fixed in 19.0.0
Description
Summary
This advisory board aims to describe two vulnerabilities found in the Evmos codebase:
• _Authorization check on the fundVestingAccount_: unauthorized spend of funds.
Details
Authorization check on the fundVestingAccount
With the current implementation, 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.
Severity
Based on ImmuneFi Severity Classification System the severity was evaluated to Critical since the attack could have lead to direct loss of funds.
Patches
The issue has been patched in versions >=V19.0.0
Related
Alias · CVE (1)
- CVE-2024-39696 Evmos is a decentralized Ethereum Virtual Machine chain on the Cosmos Network. vulnerability
Weakness · CWE (1)
- CWE-863 Incorrect Authorization weakness