Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1xNmhnLTZtOXgtNWc5Y84AA9wr

Evmos vulnerable to exploit of smart contract account and vesting

Summary

This advisory board aims to describe two vulnerabilities found in the Evmos codebase:

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

Permalink: https://github.com/advisories/GHSA-q6hg-6m9x-5g9c
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1xNmhnLTZtOXgtNWc5Y84AA9wr
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 5 months ago
Updated: 4 months ago


CVSS Score: 8.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Identifiers: GHSA-q6hg-6m9x-5g9c, CVE-2024-39696
References: Repository: https://github.com/evmos/evmos
Blast Radius: 1.0

Affected Packages

go:github.com/evmos/evmos/v18
Dependent packages: 0
Dependent repositories: 0
Downloads:
Affected Version Ranges: <= 18.0.1
Fixed in: 19.0.0
All affected versions: 18.0.0, 18.0.1
All unaffected versions: 18.1.0