Risks of Axelar, Squid, and cross-chain infrastructure
An attacker exploited an infinite minting vulnerability in a modified CW20-ICS20 contract to steal $4.67 million from assets bridged via Axelar to Secret Network. Cross-chain security involves navigating Squid software vulnerabilities and the distinct latency profiles of LayerZero and Wormhole.
IBC Vulnerabilities and Axelar Losses
An attacker stole $4.67 million from assets bridged from Axelar to Secret Network through an IBC connection. The thief exploited an infinite minting vulnerability in a modified CW20-ICS20 token contract on the Secret side. This breach occurred because the contract failed to verify which IBC channel provided the inbound tokens. The attacker exploited an infinite minting vulnerability in a modified CW20-ICS20 token contract on the Secret side by launching a new Cosmos chain with only one validator and then self-relaying IBC packets to it. This maneuver allowed the attacker to mint arbitrary Secret-wrapped Axelar assets and exit through the Axelar bridge. Axelar responded by disabling the Secret and Secret-SNIP connections through its Emergency Committee immediately upon discovering the incident. The team also contacted relevant exchanges and law enforcement agencies. This incident shows the security risks inherent in IBC connections for non-Cosmos based blockchains. The core protocol of Axelar did not face compromise. Other IBC connections or Secret tokens do not appear to be affected. IBC Eureka aims to mitigate these issues by reducing development time and simplifying the high protocol complexity found in channel and connection abstractions. It also seeks to facilitate a migration that minimizes disruption for existing IBC users.
Squid Software Security Risks
Squid software vulnerabilities present persistent Denial of Service risks for users of the routing protocol. Squid is an open source caching proxy for the Web that supports HTTP, HTTPS, FTP, and more. A "Collapse of Data into Unsafe Value" bug in versions prior to 6.5 allows remote clients to perform Denial of Service attacks via oversized HTTP headers. In Squid version 6.5 and later, the default setting of request_header_max_size or reply_header_max_size is safe. An uncontrolled recursion bug in the HTTP Chunked decoder allows remote attackers to cause a total loss of availability in versions prior to 6.8. The ESI feature in Squid versions 3.0 through 6.9 remains vulnerable to Denial of Service attacks by a trusted server. Squid version 6.10 fixes this by disabling ESI in its default build. Squid through version 7.1 mishandles ASN.1 encoding of long SNMP OIDs in lib/snmplib/asn1.c. This vulnerability reduces performance or interrupts resource availability. Despite these software risks, Squid raised $3.5 million in a seed round to build its native-to-native cross-chain solution. StellaSwap now uses the Squid widget to enable token swaps between Moonbeam and 25 Axelar-supported blockchains.
LayerZero and Wormhole Trade-offs
LayerZero and Wormhole provide distinct security and latency profiles for developers. Wormhole utilizes a Guardian Network of 19 nodes to validate messages. LayerZero employs an Oracle and Relayer model alongside a Decentralized Verifier Network. You must consider these differences if you prioritize speed. LayerZero delivers optimistic message latency in under 3 minutes, while Wormhole requires between 15 and 30 minutes. Gas costs also differ significantly between the two protocols. Wormhole costs between $0.10 and $0.50 for Ethereum Mainnet messages, while LayerZero costs between $0.50 and $2.00. Wormhole provides an interface for 30+ blockchains. LayerZero supports 50+ blockchains. LayerZero includes specific error handling for DVN configurations, such as InvalidOptionalDVNThreshold and InvalidRequiredDVNCount. These errors occur if the actual amount of required or optional DVN violates the configuration. LayerZero also returns InvalidMessageSize if the message size exceeds the cap and InvalidExecutorOptions if the cursor is not equal to the length of options. LayerZero also returns InvalidAddress if the input parameter is of the incorrect length.
Join the discussion