<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://quadrigainitiative.com/cryptocurrencyhackscamfraudwiki/index.php?action=history&amp;feed=atom&amp;title=AstroPort_Malicious_CosmWasm_Reentrancy_Attack</id>
	<title>AstroPort Malicious CosmWasm Reentrancy Attack - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://quadrigainitiative.com/cryptocurrencyhackscamfraudwiki/index.php?action=history&amp;feed=atom&amp;title=AstroPort_Malicious_CosmWasm_Reentrancy_Attack"/>
	<link rel="alternate" type="text/html" href="https://quadrigainitiative.com/cryptocurrencyhackscamfraudwiki/index.php?title=AstroPort_Malicious_CosmWasm_Reentrancy_Attack&amp;action=history"/>
	<updated>2026-07-23T11:07:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>https://quadrigainitiative.com/cryptocurrencyhackscamfraudwiki/index.php?title=AstroPort_Malicious_CosmWasm_Reentrancy_Attack&amp;diff=6152&amp;oldid=prev</id>
		<title>Azoundria: Created page with &quot;{{Imported Case Study With About|source=https://www.quadrigainitiative.com/casestudy/astroportmaliciouscosmwasmreentrancyattack.php}} {{Unattributed Sources}}  AstroPort Logo/HomepageAstroport is a decentralized finance (DeFi) platform built in Rust that operates across multiple blockchains, aiming to be a central hub for asset exchanges in the Cosmos ecosystem. It provides a flexible Automated Market Maker (AMM) system with various specializ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://quadrigainitiative.com/cryptocurrencyhackscamfraudwiki/index.php?title=AstroPort_Malicious_CosmWasm_Reentrancy_Attack&amp;diff=6152&amp;oldid=prev"/>
		<updated>2024-09-24T21:05:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Imported Case Study With About|source=https://www.quadrigainitiative.com/casestudy/astroportmaliciouscosmwasmreentrancyattack.php}} {{Unattributed Sources}}  &lt;a href=&quot;/cryptocurrencyhackscamfraudwiki/index.php?title=File:Astroport.jpg&quot; title=&quot;File:Astroport.jpg&quot;&gt;thumb|AstroPort Logo/Homepage&lt;/a&gt;Astroport is a decentralized finance (DeFi) platform built in Rust that operates across multiple blockchains, aiming to be a central hub for asset exchanges in the Cosmos ecosystem. It provides a flexible Automated Market Maker (AMM) system with various specializ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Imported Case Study With About|source=https://www.quadrigainitiative.com/casestudy/astroportmaliciouscosmwasmreentrancyattack.php}}&lt;br /&gt;
{{Unattributed Sources}}&lt;br /&gt;
&lt;br /&gt;
[[File:Astroport.jpg|thumb|AstroPort Logo/Homepage]]Astroport is a decentralized finance (DeFi) platform built in Rust that operates across multiple blockchains, aiming to be a central hub for asset exchanges in the Cosmos ecosystem. It provides a flexible Automated Market Maker (AMM) system with various specialized pools, enabling decentralized, non-custodial liquidity and price discovery for any crypto asset. Recently, a vulnerability in the Inter-Blockchain Communication (IBC) protocol was exploited, leading to a major security breach. The exploit involved a reentrancy issue allowing malicious actors to execute unauthorized transactions, resulting in the minting of additional tokens, including $ASTRO, and significant financial losses. In response, the Terra blockchain has halted operations to implement emergency fixes. The price of the ASTRO token dropped sharply by up to 71%, while LUNA's price fell slightly by 3%. The total value locked on Terra also decreased by 15% following the incident.&amp;lt;ref name=&amp;quot;rektnews-14770&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;rarmatwitter-14771&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;mintscan-14772&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;etherscan-14773&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;mintscan-14774&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;cosmosgithub-14775&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;tobyfrei4twitter-14776&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;astroportfitwitter-14777&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;terramoneytwitter-14778&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;mintscan-14779&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;cryptobriefing-14780&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;beosinalerttwitter-14781&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;astroportfi-14782&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;astroportfidocs-14783&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;astroportfidocs-14784&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;astroportfidocs-14785&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;astroportfidocs-14786&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;astroportfiblog-14787&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== About AstroPort ==&lt;br /&gt;
&amp;quot;Astroport. The future of trading&amp;quot; &amp;quot;Written from scratch in Rust, Astroport combines the best pieces of six years of development on the Ethereum blockchain and delivers it on multiple blockchains with a unique hub and outpost model.&amp;quot; &amp;quot;Astroport is the central space station of the DeFi solar system, where travelers throughout the galaxy meet to exchange assets in a neutral marketplace. The philosophy behind Astroport is simple:&lt;br /&gt;
&lt;br /&gt;
Enabling decentralized, non-custodial liquidity and price discovery for any crypto asset.&lt;br /&gt;
&lt;br /&gt;
Astroport prioritizes flexibility, combining various specialized pool types and routing seamlessly across them.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Astroport's vision is to become the prevailing next-generation AMM with deep liquidity pools and significant trading volumes for the Cosmos ecosystem. Better pricing will allow Astroport to attract more liquidity, leading to a self-reinforcing loop.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The essential primitive within any DeFi ecosystem is the asset exchange functionality. Automated Market Makers (AMMs) like Astroport enable swaps in a decentralized, non-custodial, way.&lt;br /&gt;
&lt;br /&gt;
With Astroport, liquidity providers (LPs) can choose different pool types within a single and effective AMM system. Thus, anyone can onboard and trade tokens in a permissionless way. Moreover, no captain or bureaucrat can stop them, as the station is owned solely by its users.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== The Reality ==&lt;br /&gt;
&amp;quot;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.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== What Happened ==&lt;br /&gt;
&amp;quot;According to Beosin, the attacker exploited a reentrancy vulnerability related to the interoperability function of the Cosmos ecosystem called Inter-Blockchain Communication (IBC), which was disclosed in April this year.&amp;quot;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Key Event Timeline - AstroPort Malicious CosmWasm Reentrancy Attack&lt;br /&gt;
!Date&lt;br /&gt;
!Event&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|July 30th, 2024 6:31:23 AM MDT&lt;br /&gt;
|Attacker Account Funded&lt;br /&gt;
|The attacker account is funded by an ethereum transaction.&lt;br /&gt;
|-&lt;br /&gt;
|July 30th, 2024 4:09:15 PM MDT&lt;br /&gt;
|Attack Transaction&lt;br /&gt;
|The timestamp of the attack transaction referenced by Rarma in their post on X.&lt;br /&gt;
|-&lt;br /&gt;
|July 30th, 2024 8:45:00 PM MDT&lt;br /&gt;
|Tweet By Rarma&lt;br /&gt;
|Twitter user and ASTRO holder Rarma reports that millions are going through a wallet in a suspicious manner, and they are looking into what is happening further.&lt;br /&gt;
|-&lt;br /&gt;
|July 30th, 2024 10:06:00 PM MDT&lt;br /&gt;
|Terra Blockchain Suspension&lt;br /&gt;
|Terra announces a suspension of the blockchain to &amp;quot;remediate a suspected exploit&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|July 30th, 2024 10:17:05 PM MDT&lt;br /&gt;
|Terra Blockchain Suspension&lt;br /&gt;
|The terra blockchain is actually suspended at block 11430400.&lt;br /&gt;
|-&lt;br /&gt;
|July 30th, 2024 10:45:00 PM MDT&lt;br /&gt;
|Astroport Acknowledgement&lt;br /&gt;
|Astroport publishes a tweet acknowledging the exploit.&lt;br /&gt;
|-&lt;br /&gt;
|July 31st, 2024 1:23:00 AM MDT&lt;br /&gt;
|Boesin Tweet Published&lt;br /&gt;
|Boesin publishes a tweet which is later referenced by CryptoBriefing.&lt;br /&gt;
|-&lt;br /&gt;
|July 31st, 2024 6:32:44 AM MDT&lt;br /&gt;
|CryptoBriefing Article Published&lt;br /&gt;
|CryptoBriefing publishes an article about the exploit.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Technical Details ==&lt;br /&gt;
&amp;quot;According to Beosin, the attacker exploited a reentrancy vulnerability related to the interoperability function of the Cosmos ecosystem called Inter-Blockchain Communication (IBC), which was disclosed in April this year.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Total Amount Lost ==&lt;br /&gt;
The total amount lost has been estimated at $6,400,000 USD.&lt;br /&gt;
&lt;br /&gt;
How much was lost and how was it calculated? If there are conflicting reports, which are accurate and where does the discrepancy lie?&lt;br /&gt;
&lt;br /&gt;
== Immediate Reactions ==&lt;br /&gt;
&amp;quot;Actively looking into WHAT is happening. The wallet never receives morre than56 LUNA and 7.8k USDC and leaves with MILLIONS.&lt;br /&gt;
&lt;br /&gt;
A contract is instantiated on Terra, which is then called with an IBC transfer that times out, and tokens arrive in the account, which then get IBC transferred out.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Attention Terra users: Please be advised that the chain will be halted shortly at block height 11430400 and transactions will not be processed during this time.&lt;br /&gt;
&lt;br /&gt;
We will be working with the validators on Terra (phoenix-1) to apply an emergency patch thereafter to remediate a suspected exploit.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Terra chain has halted for emergency upgrades.&lt;br /&gt;
&lt;br /&gt;
It appears an IBC vulnerability was exploited in order to mint several tokens on Terra chain, including $ASTRO. As the chain has now halted, no further tokens are able to be minted at this time.&lt;br /&gt;
&lt;br /&gt;
The Astroport contributors are working with the other chains and Cosmos builders to determine what measures can be taken. We will keep you updated as we learn more.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The price of the token ASTRO, native to the decentralized exchange Astroport, slumped up to 71% following the exploit news. Meanwhile, the price of the token LUNA remained relatively steady, falling 3% in the past 24 hours. The total value locked at Terra also took a hit after the exploit, shrinking by 15%.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Ultimate Outcome ==&lt;br /&gt;
What was the end result? Was any investigation done? Were any individuals prosecuted? Was there a lawsuit? Was any tracing done?&lt;br /&gt;
&lt;br /&gt;
== Total Amount Recovered ==&lt;br /&gt;
The total amount recovered is unknown.&lt;br /&gt;
&lt;br /&gt;
What funds were recovered? What funds were reimbursed for those affected users?&lt;br /&gt;
&lt;br /&gt;
== Ongoing Developments ==&lt;br /&gt;
What parts of this case are still remaining to be concluded?&lt;br /&gt;
== Individual Prevention Policies ==&lt;br /&gt;
{{Prevention:Individuals:Placeholder}}&lt;br /&gt;
&lt;br /&gt;
{{Prevention:Individuals:End}}&lt;br /&gt;
&lt;br /&gt;
== Platform Prevention Policies ==&lt;br /&gt;
{{Prevention:Platforms:Placeholder}}&lt;br /&gt;
&lt;br /&gt;
{{Prevention:Platforms:End}}&lt;br /&gt;
&lt;br /&gt;
== Regulatory Prevention Policies ==&lt;br /&gt;
{{Prevention:Regulators:Placeholder}}&lt;br /&gt;
&lt;br /&gt;
{{Prevention:Regulators:End}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&amp;lt;ref name=&amp;quot;rektnews-14770&amp;quot;&amp;gt;[https://rekt.news/astroport-rekt/ Rekt - Astroport - Rekt] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;rarmatwitter-14771&amp;quot;&amp;gt;[https://twitter.com/Rarma_/status/1818477986569765308 @Rarma_ Twitter] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;mintscan-14772&amp;quot;&amp;gt;[https://www.mintscan.io/terra/address/terra1wrve5z5vsmrgy6ldcveq93aldr6wk3qmxavs4j Mintscan] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;etherscan-14773&amp;quot;&amp;gt;[https://etherscan.io/tx/0xe37746180fe61eea0d51ea1b806ec8a671148796322240f708ad514b9a6a0f7b Ethereum Transaction Hash (Txhash) Details | Etherscan] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;mintscan-14774&amp;quot;&amp;gt;[https://www.mintscan.io/terra/tx/4F260BFD0D9357859A186D1EDD9CF6CEDF4EA521D1595CB7823DE22D6084DDA0?height=11426811 Mintscan] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;cosmosgithub-14775&amp;quot;&amp;gt;[https://github.com/cosmos/ibc-go/security/advisories/GHSA-j496-crgh-34mx ASA-2024-007: Potential Reentrancy using Timeout Callbacks in ibc-hooks · Advisory · cosmos/ibc-go · GitHub] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;tobyfrei4twitter-14776&amp;quot;&amp;gt;[https://twitter.com/TobyFrei4/status/1818593388297351478 @TobyFrei4 Twitter] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;astroportfitwitter-14777&amp;quot;&amp;gt;[https://twitter.com/astroport_fi/status/1818508192822837511 @astroport_fi Twitter] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;terramoneytwitter-14778&amp;quot;&amp;gt;[https://twitter.com/terra_money/status/1818498438759411964 @terra_money Twitter] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;mintscan-14779&amp;quot;&amp;gt;[https://www.mintscan.io/terra/block/11430400 Mintscan] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;cryptobriefing-14780&amp;quot;&amp;gt;[https://cryptobriefing.com/terra-blockchain-exploit-6m/ Terra hit by $6 million loss as attacker exploits vulnerability known since April] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;beosinalerttwitter-14781&amp;quot;&amp;gt;[https://twitter.com/BeosinAlert/status/1818548029416411279 @BeosinAlert Twitter] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;astroportfi-14782&amp;quot;&amp;gt;[https://astroport.fi/en Astroport. The future of trading.] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;astroportfidocs-14783&amp;quot;&amp;gt;[https://docs.astroport.fi/ Astroport Docs] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;astroportfidocs-14784&amp;quot;&amp;gt;[https://docs.astroport.fi/docs/overview/astroport-onboarding/astroport-onboarding-intro Astroport Onboarding | Astroport Docs] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;astroportfidocs-14785&amp;quot;&amp;gt;[https://docs.astroport.fi/docs/overview/astroport-onboarding/the-impact The Impact | Astroport Docs] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;astroportfidocs-14786&amp;quot;&amp;gt;[https://docs.astroport.fi/docs/overview/astroport-onboarding/the-vision The Vision | Astroport Docs] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;astroportfiblog-14787&amp;quot;&amp;gt;[https://blog.astroport.fi/post/launching-the-astroport-brand-into-the-creative-commons Launching the Astroport brand into the creative commons] (Accessed Aug 6, 2024)&amp;lt;/ref&amp;gt;&amp;lt;/references&amp;gt;&lt;/div&gt;</summary>
		<author><name>Azoundria</name></author>
	</entry>
</feed>