GHSA-m99c-q26r-m7m7
JSON

medium

Evmos vulnerable to unauthorized account creation with vesting module

Severity
medium rating by GitHub
Published
Last changed
Also known as
GO-2024-2731

Description

Impact

What kind of vulnerability is it? Who is impacted?

Using the vesting module, a malicious attacker can create a new vesting account at a given address, before a contract is created on that address.

Addresses of smart contracts deployed to the EVM are deterministic. Therefore, it would be possible for an attacker to front-run a contract creation and create a vesting account at that address. When an address has been initialized without any contract code deployed to it, it will not be possible to upload any afterwards. In the described attack, this would mean that a malicious actor could prevent smart contracts from being deployed correctly.

In order to remediate this, an alternative user flow is being implemented for the vesting module:

  • only the account receiving the vesting funds will be able to create such an account by calling the CreateClawbackVestingAccount method and defining a funder address
  • vesting and lockup periods can then be created by that funder address using FundClawbackAccount
Patches

Has the problem been patched? What versions should users upgrade to?

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

References

Are there any links users can visit to find out more?

Affected

Product or packageVersionsReported by
github.com/evmos/evmos/v13/x/vesting (Go)up to 13.0.2GitHub Advisory Database
github.com/evmos/evmos/v13 (Go)up to 13.0.2, all versionsGitHub Advisory Database, Go Vulnerability Database
github.com/evmos/evmos (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v2 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v3 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v4 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v5 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v6 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v7 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v8 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v9 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v10 (Go)all versionsGo Vulnerability Database

What each source says

GitHub Advisory Database
Impact

What kind of vulnerability is it? Who is impacted?

Using the vesting module, a malicious attacker can create a new vesting account at a given address, before a contract is created on that address.

Addresses of smart contracts deployed to the EVM are deterministic. Therefore, it would be possible for an attacker to front-run a contract creation and create a vesting account at that address. When an address has been initialized without any contract code deployed to it, it will not be possible to upload any afterwards. In the described attack, this would mean that a malicious actor could prevent smart contracts from being deployed correctly.

In order to remediate this, an alternative user flow is being implemented for the vesting module:

  • only the account receiving the vesting funds will be able to create such an account by calling the CreateClawbackVestingAccount method and defining a funder address
  • vesting and lockup periods can then be created by that funder address using FundClawbackAccount
Patches

Has the problem been patched? What versions should users upgrade to?

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

References

Are there any links users can visit to find out more?

Go Vulnerability Database

Evmos vulnerable to unauthorized account creation with vesting module in github.com/evmos/evmos

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-m99c-q26r-m7m7 changed 2024-06-10CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2731 changed 2026-03-03CC-BY-4.0