Incorrect Calculation Affecting github.com/evmos/evmos/v18/precompiles/staking package, versions <18.0.0


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.05% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMEVMOSEVMOSV18PRECOMPILESSTAKING-7222573
  • published 9 Jun 2024
  • disclosed 6 Jun 2024
  • credit Unknown

How to fix?

Upgrade github.com/evmos/evmos/v18/precompiles/staking to version 18.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Calculation through the TrackDelegation function. An attacker can manipulate the spendable balance by delegating vested tokens that should not yet be available. This is only exploitable if the account has a clawback vesting account with a specific vesting schedule.

Workaround

This vulnerability can be mitigated by implementing additional checks in the MsgServer of a wrapper around the Cosmos SDK staking module.

References

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
3.5 low
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    None
  • Availability (A)
    Low
Expand this section

NVD

4.3 medium