Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/evmos/evmos/v13/x/vesting
  4. ›
  5. GHSA-m99c-q26r-m7m7

GHSA-m99c-q26r-m7m7: Evmos vulnerable to unauthorized account creation with vesting module

April 17, 2024

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

References

  • github.com/advisories/GHSA-m99c-q26r-m7m7
  • github.com/evmos/evmos
  • github.com/evmos/evmos/security/advisories/GHSA-m99c-q26r-m7m7

Code Behaviors & Features

Detect and mitigate GHSA-m99c-q26r-m7m7 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 13.0.2

Solution

Unfortunately, there is no solution available yet.

Source file

go/github.com/evmos/evmos/v13/x/vesting/GHSA-m99c-q26r-m7m7.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:23 +0000.