Incorrect Access Control Affecting github.com/cosmos/ibc-go/v8/modules/core/keeper package, versions <8.2.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 IDSNYK-GOLANG-GITHUBCOMCOSMOSIBCGOV8MODULESCOREKEEPER-6579641
  • published7 Apr 2024
  • disclosed5 Apr 2024
  • creditMaxwell Dulin

Introduced: 5 Apr 2024

CVE NOT AVAILABLE CWE-696  (opens in a new tab)

How to fix?

Upgrade github.com/cosmos/ibc-go/v8/modules/core/keeper to version 8.2.0 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Access Control through the deployment and subsequent use of a malicious CosmWasm contract via IBC interactions. An attacker could potentially execute the same MsgTimeout inside the IBC hook for the OnTimeout callback before the packet commitment is deleted. On chains where ibc-hooks wraps ICS-20, this vulnerability may allow for the logic of the OnTimeout callback of the transfer application to be recursively executed, leading to a condition that may present the opportunity for the loss of funds from the escrow account or unexpected minting of tokens. This is only exploitable if the chain is IBC-enabled and uses a vulnerable version of ibc-go, the chain is CosmWasm-enabled and allows code uploads for wasm contracts by anyone, or by authorized parties (to a lesser extent), and the chain utilizes the ibc-hooks middleware and wraps ICS-20 transfer application.

CVSS Scores

version 3.1