Cosmos patches ‘critical’ IBC protocol bug, saving $126M

A $126 million bug in Cosmos’ Inter-Blockchain Communication protocol was patched after it was identified by blockchain security firm Asymmetric Research.
A $126 million bug in Cosmos’ Inter-Blockchain Communication protocol was patched after it was identified by blockchain security firm Asymmetric Research.

Cosmos developers have fixed a “critical” security bug in its Inter-Blockchain Communication (IBC) protocol that put at least $126 million at risk, said a blockchain security firm that privately notified Cosmos of the issue.

“We privately disclosed the vulnerability through the Cosmos HackerOne Bug Bounty program and the issue is now patched,” Asymmetric Research said on April 23.

“No malicious exploitation took place and no funds were lost,” it added.

Source: Asymmetric Research

The bug could have allowed a reentrancy attack, allowing a hacker to mint infinite tokens on IBC-connected chains such as Osmosis and other decentralized finance ecosystems on Cosmos.

“We believe at least 126M+ in assets could have been stolen on Osmosis. However, rate limiting on Osmosis slows down the damage that could be caused.”

Rate limits serve to prevent or at least mitigate attacks that attempt to overwhelm a system by controlling the rate at which requests are made.

Asymmetric noted the bug has existed in ibc-go, a high-level programming language implementation of IBC, since it launched in 2021.

However, the bug only recently became exploitable after Cosmos devs launched a new third-party application called IBC middleware, which allows tokens of the ICS20 interchain token standard to cross chains.

Related: Cosmos Hub greenlights ATOM inflation cut for security boost

“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 emphasized.

“This vulnerability highlights the critical need for more research into cross-chain security risks to protect the multichain ecosystem better.”

The bug was patched up by Cosmos dev Carlos Rodríguez about three weeks ago, a GitHub commit shows.

Another “critical” security vulnerability was identified in the IBC protocol in October 2022, which impacted all IBC-connected chains but was patched before any potential exploit.

Magazine: Are DAOs overhyped and unworkable? Lessons from the front lines