Patched IBC bug strikes Terra chain

Astroport dex suffers the brunt of the 4-month-old vulnerability

article-image

Dall-e modified by Blockworks

share

A vulnerability in inter-blockchain communication (IBC) protocol that was patched in April reared its bugly head on the Terra blockchain, late Tuesday.

Onchain data showed an erroneous minting of 58 million ASTRO tokens — worth about $2.7 million — and about $4.1 million in USDC, USDT and wrapped BTC.

Terra conducted an emergency chain upgrade to prevent the vulnerability from affecting other tokens, according to a post on X. The current Terra is the fork that arose following the collapse of the UST stablecoin on what’s now known as the Terra Classic blockchain.

ASTRO is the governance token of Astroport, a decentralized exchange launched in late 2021 on Terra Classic.

The Terra/Luna implosion in May 2022 forced many projects, including Astroport, to rethink their strategies. Astroport pivoted towards a multichain strategy with its primary hub on Neutron, a smart contract blockchain built on the Cosmos SDK.

Swift maneuvers from the Astroport team have reportedly contained the damage from the IBC bug exploit.

Read more: IBC had a close call with a critical vulnerability

Loading Tweet..

Astroport co-lead Donovan Solms commented, “Today was the toughest day [Astroport] has had since the collapse of Terra in ’22. And for a second time, it was due to circumstances outside of our control and our contracts remain unaffected.”

Blockworks requested comments from representatives of Terraform Labs and Neutron.

Terra responded with a statement that “a detailed breakdown of events” would be forthcoming.

It’s not immediately clear how the bug, which was discovered and fixed in April, was able to return.

Zaki Manian, co-founder of Sommelier, reported that a June upgrade “accidentally” reintroduced the vulnerability.

Loading Tweet..

Terra was running on their own fork of IBC software, outside the main Cosmos Github repository, which did not contain the fix, Manian told Blockworks.

Running a private version of IBC puts the onus on the team to be responsible for maintaining it and keeping critical bugs out.

“When you have a team that becomes a skeleton crew, this decision that they made to be on a fork had an enormous cost,” Manian said.

One measure which could have mitigated the risk in this case is the use of IBC rate limits, an idea which has many proponents, particularly on chains with DeFi applications.

“There is very little reason why Terra needed to be able to move $3 million in one day,” Manian said. “A significant fraction of all their [total value locked], so IBC rate limits might have made a big difference.”

Gabriel Shapiro, the general counsel at Delphi Labs, who has closely followed the legal issues facing Terraform Labs (TFL) and its co-founder Do Kwon, suggested the legal case brought by the SEC against TFL, may have indirectly caused the oversight.

Read more: Terraform agrees to pay nearly $4.5B in proposed judgment with SEC

Delphi Labs co-founder José Macedo claims to have strong evidence of the attacker’s identity.

Loading Tweet..

The ASTRO token fell by more than -70% following the incident and is currently down about -35% on the day.

Updated July 31, 2024 at 6:09 pm ET with additional context.
Updated Aug 1, 2024 at 12:27 pm ET with Terra statement.


Get the news in your inbox. Explore Blockworks newsletters:

  • Blockworks Daily: The newsletter that helps thousands of investors understand crypto and the markets, by Byron Gilliam.
  • Empire: Start your morning with the top news and analysis to inform your day in crypto.
  • Forward Guidance: Reporting and analysis on the growing intersection of crypto and macroeconomics, policy and finance.
  • 0xResearch: Alpha directly in your inbox. Market highlights, data, degen trade ideas, governance updates, token performance and more.
  • Lightspeed: Built for Solana investors, developers and community members. The latest from one of crypto’s hottest networks.
  • The Drop: For crypto collectors and traders, covering apps, games, memes and more.
Tags

Upcoming Events

Javits Center North | 445 11th Ave

Tues - Thurs, March 18 - 20, 2025

Blockworks’ Digital Asset Summit (DAS) will feature conversations between the builders, allocators, and legislators who will shape the trajectory of the digital asset ecosystem in the US and abroad.

Industry City | Brooklyn, NY

TUES - THURS, JUNE 24 - 26, 2025

Permissionless IV serves as the definitive gathering for crypto’s technical founders, developers, and builders to come together and create the future.If you’re ready to shape the future of crypto, Permissionless IV is where it happens.

Old Billingsgate

Mon - Wed, October 13 - 15, 2025

Blockworks’ Digital Asset Summit (DAS) will feature conversations between the builders, allocators, and legislators who will shape the trajectory of the digital asset ecosystem in the US and abroad.

recent research

Research Report Templates (4).png

Research

Even as the most performant, widely used blockchain today, Solana is still far from perfect, prompting some teams to iterate upon some design choices while maintaining compatibility at the SVM execution layer. This report analyzes three emergent SVM chains (Eclipse, Atlas, and Fogo) to understand the motivations behind the technical architectures, as well as the current state and future outlook.

article-image

Fundamental investors are turning to token buybacks

article-image

A Glassnode report found that the accumulation range for bitcoin is ‘weak,’ indicating a decline in demand

article-image

CEO Bam Azizi said he’ll only be seeking stablecoin-exclusive funding rounds from now on

article-image

Sponsored

WalletConnect is set to deepen its role by integrating with emerging standards and expanding its utility across different onchain sectors

article-image

Zeta Markets has shipped testnet for Bullet, a low-latency “network extension,” the team told Lightspeed exclusively

article-image

Having passed Congress, the resolution will now head to Trump’s desk