This advisory has been created to address the following vulnerabilities found in the Evmos codebase and affecting vesting accounts.
The spendable balance is not updated properly when delegating vested tokens. The following example help in describing the issue:
- Given a clawback vesting account with a starting 15M
vesting schedule. The initial spendable balance is 0
.
- Time passes and 5M
are vested. The spendable balance is now 5M
.
- The account delegate 5M
. The spendable balance should be 0
, but returns 5M
- The account can send 5M
to another account.
The issue allowed a clawback vesting account to anticipate the release of unvested tokens.
Preliminary checks on actions computed by the clawback vesting accounts are performed in the ante handler. Evmos core, implements two different ante handlers: one for Cosmos transactions and one for Ethereum transactions. Checks performed on the two implementation are different.
The vulnerability discovered allowed a clawback account to bypass Cosmos ante handler checks by sending an Ethereum transaction targeting a precompile used to interact with a Cosmos SDK module.
This vulnerability allowed a user to create a validator using vested tokens to deposit the self-bond.
TrackDelegation
function.MsgServer
of a wrapper around the Cosmos SDK staking module. The issues have been patched in versions >=V18.0.0.
If you have any questions or comments about this advisory:
Reach out to the Core Team in Discord Open a discussion in evmos/evmos Email us at security@evmos.org for security questions
{ "nvd_published_at": "2024-06-06T19:15:56Z", "cwe_ids": [ "CWE-682" ], "severity": "LOW", "github_reviewed": true, "github_reviewed_at": "2024-06-06T18:21:05Z" }