IBC had a close call with a critical vulnerability

The vulnerability enabled exploiters to replay a bug that would enable an infinite number of IBC tokens to be redeemed

article-image

Artwork by Crystal Le

share

A recent blog post by Asymmetric Research revealed there was a critical vulnerability that affected the inter-blockchain communication (IBC) protocol — a standard that enables interaction among individual cosmos chains.

This vulnerability was found specifically in ibc-go, the Golang high-level programming language implementation of the IBC protocol, and affected CosmWasm-based IBC middleware. 

IBC middleware was created to enable the integration of ICS20 with other IBC protocols. Similar to many bridging protocols, the middleware enables packets to be sent from one blockchain to another. These packets are stored as commitments before being properly received and deleted. If they are not received, tokens will be refunded through a timeout functionality. 

Read more: Picasso connects Ethereum to Cosmos IBC

Asymmetric Research found that the flow between the module deleting the commitment control could be replayed, which meant it was possible to replay the bug and exploit an infinite number of IBC tokens. 

Multiple chains were vulnerable to the issue, with Osmosis, one of the largest cross-chain DEXs in the Cosmos ecosystem, being the largest chain that could have been affected. However, due to rate limiting on the chain, the damage the bug could have potentially caused was limited. 

According to Asymmetric Research, the vulnerability has been privately disclosed to the Cosmos HackerOne bug bounty program, and the issue itself has been resolved without any malicious exploitation. 

Read more: Helpful hackers net more than $640k in 1 year with crypto bug bounties

“This issue demonstrates how easy it is to break trust assumptions and introduce new vulnerabilities by adding new features and functionality. It is also another example of the importance of defense-in-depth,” Asymmetric Research wrote in a blog post.

The research noted specifically that Cosmos teams had strong security measures in place that could have saved them from existential risks. 

“A binary patch was released to fix the underlying IBC timeout reentrancy without breaking consensus. Contributors spent much time and effort assessing the security implications of the mentioned issues,” Asymmetric Research wrote.


Start your day with top crypto insights from David Canellis and Katherine Ross. Subscribe to the Empire newsletter.

The Lightspeed newsletter is all things Solana, in your inbox, every day. Subscribe to daily Solana news from Jack Kubinec and Jeff Albus.

Tags

Upcoming Events

Salt Lake City, UT

WED - FRI, OCTOBER 9 - 11, 2024

Pack your bags, anon — we’re heading west! Join us in the beautiful Salt Lake City for the third installment of Permissionless. Come for the alpha, stay for the fresh air. Permissionless III promises unforgettable panels, killer networking opportunities, and mountains […]

recent research

Research report cover graphics (4).jpg

Research

Despite crypto gaming related projects and funds raising close to a billion dollars in November 2021, there have been only a handful of games that have attracted users apart from mercenary capital, and have had sustained activity for longer than a few months. Crypto gaming is going through an infrastructure phase. Theoretically, crypto gaming stands to benefit from purpose-built, high throughput chains, where blockspace is cheap (especially for games which are fully onchain). However, despite the launch of many gaming-focused chains, most crypto games are lacking in quality and quantity. Most new crypto gaming infrastructure either have no games or only a few games launched (e.g. Xai) or have failed to garner meaningful attention (e.g. Immutable X).

article-image

As Bloomberg analysts up their ether ETF approval odds, concerns about ETH’s liquidity and its possible status as a security remain

article-image

Ethereum is becoming a multilayered lasagna-like system, pushing people to the margins with its complexity and fees

article-image

Ether would be set to re-test its 2021 price high should the regulator unexpectedly approve ETH funds, industry watchers say

article-image

The Financial Innovation and Technology for the 21st Century Act, known as the FIT21 Act, is expected to head to the floor for a vote in the House in the afternoon on May 22

article-image

NYAG announced details about its settlement with bankrupt lender Genesis on Monday

article-image

The $948 million of inflows from May 13 to May 17 roughly equaled the net money that left the fund category over the five prior weeks