Fun

Ronin bridge hack caused by error in upgrade deployment script — Verichains

News Feed - 2024-08-16 10:08:00

Christopher Roark10 hours agoRonin bridge hack caused by error in upgrade deployment script — VerichainsThe upgrade deployment script failed to call an important initialization function, leaving the vote threshold at zero and allowing anyone to withdraw “without signature.”4062 Total views4 Total sharesListen to article 0:00InvestigationOwn this piece of crypto historyCollect this article as NFTCOINTELEGRAPH IN YOUR SOCIAL FEEDFollow ourSubscribe onThe $10 million Ronin bridge exploit on Aug. 6 was caused by a faulty upgrade deployment script, according to a report from blockchain security firm Verichains. 


The upgrade reduced the voting threshold for validators to zero, essentially allowing any user to withdraw from the bridge “without signature,” Verichains stated. 


 The bot’s owner later returned most of the funds to the Ronin team.


Verichains’ analysis lays bare the risks that users take when they interact with upgradeable smart contracts. The protocol could have lost the full amount had the attacker paid more in gas and, therefore, avoided the frontrunner.


Ronin is a blockchain network dedicated to hosting Web3 games. It is most well-known for being the home of Axie Infinity, a play-to-earn monster breeding game that claimed to have over 2 million players during its peak in 2022. Ronin game players use the bridge to transfer funds between Ethereum and Ronin.


According to Verichains’ report, the bridge relies on the variable mimimumVoteWeight to prevent users from withdrawing funds that don’t belong to them. Each transaction must be authorized by a minimum number of validators set by this variable. When minimumVoteWeight is computed, it uses another variable, totalWeight, as an input.TotalWeight in a previous version of Ronin. Source: Verichains


In earlier versions of the bridge, totalWeight existed on a separate contract, called “MainchainBridgeManager.” When the developers created the new upgrade, they wanted to move this variable to the bridge’s own internal storage, instead of leaving it in the other contract. This meant that they needed to initialize the variable at the moment of deployment, setting TotalWeight to the value it had been in the previous version.


Unfortunately, this is where the upgrade went horribly wrong. According to Verichains, the Ronin developers wrote several different “initialize” functions that were supposed to be called at the moment of deployment. Each of these functions had a different version number. The third version contained the crucial totalWeight initialization. But when the developers wrote the deployment script, they called only version 4, leaving totalWeight at its default zero value.Source: Verichains


After this upgrade, users no longer needed to submit signatures to validators to prove their right to withdraw. They could withdraw “without signature,” since “it met the minimumVoteWeight condition (which was 0 due to uninitialized).”


In an Aug. 7 post to X, Composable Security smart contract auditor Damian Rusinek gave further detail on what allowed the attack to occur. Per Rusinek, the attacker provided a signature from an address ending in B849f. However, this address was “not on the bridge operators list.” It did not need to be on the bridge operators list because “the minimum votes of the operators was 0.” Therefore, “only ONE signature was required and it could [be] ANY valid signature.”


Although it did not go into as much detail as either Verichains or Rusinek, Ronin confirmed in an Aug. 6 X post that the exploit was caused when the upgrade “introduced an issue leading the bridge to misinterpret the required bridge operators vote threshold to withdraw funds.”


Blockchain data shows that this attack transaction was front-run by an MEV bot called “Frontrunner Yoink,” who successfully drained over $10 million worth of cryptocurrency from the bridge. According to Rusinek, the bot most likely “simulated changing address and amount and using their own signature.” It then submitted the transaction once this simulation proved that the exploit would work.


Related:Ronin Network exploited for $9.8M in ETH, white hat hacker suspected


Frontrunner Yoink’s owner returned most of the funds on the same day, and the Ronin team announced that they would be allowed to keep $500,000 worth as a bug bounty.


Ronin users suffered a close call with the Aug. 6 exploit. Luckily, the attack was front-run by an MEV bot whose owner was an honest white hat operator. However, the fact that the attack came so close to succeeding exposes the risky nature of upgradeable cross-chain bridges.


Some networks claim this problem will be eliminated when Ethereum layer 2s reach “stage 2” and all upgrades are delayed for at least seven days after initiation. However, critics claim that the process of reaching this stage is taking too long and may never be completed.


Magazine: Weird ‘null address’ iVest hack, millions of PCs still vulnerable to ‘Sinkclose’ malware: Crypto-Sec# Ethereum# Games# DeFi# NFT# Axie Infinity# GameFiAdd reaction

News Feed

NFT Trade Volume Jumped 23% Higher This Week Capturing Close to $1 Billion in Sales
NFT Trade Volume Jumped 23% Higher This Week Capturing Close to $1 Billion in Sales Non-fungible token (NFT) sales have increased by 23.56% over the last week, as $945.2 million in
Arijit Sarkar36 minutes agoOprah and The Rock collect crypto donations for Maui wildfire victimsThe Rock and Oprah Winfrey launched the People’s Fund of Maui to provide direct financial support to those affected by the
How Vitalik Buterin’s pluralistic vision could reshape blockchain governance
Amaka Nwaokocha10 hours agoHow Vitalik Buterin’s pluralistic vision could reshape blockchain governanceWhile Buterin believes pluralistic philosophy can enhance existing systems, he acknowledges that it cannot replace
Bitcoin price crumbles to $62K support, but derivatives metrics show bullish signs
Marcel Pechman3 hours agoBitcoin price crumbles to $62K support, but derivatives metrics show bullish signsBitcoin’s price continues to correct, but BTC options markets reflect traders’ interest in the $62,000 level.
Prosecutors request Changpeng Zhao surrender all passports ahead of sentencing
Turner Wright2 hours agoProsecutors request Changpeng Zhao surrender all passports ahead of sentencingThe government asked CZ to surrender his Canadian passport and “all other current and expired passports and travel d
Whale Watch: A Deep Dive Into the Concentrations of Large Crypto Holders
Whale Watch: A Deep Dive Into the Concentrations of Large Crypto Holders Three months ago the crypto economy was worth more than $3 trillion and since then, digital currency prices
Crypto Lender Genesis Files for Bankruptcy Following SEC Lawsuit
Crypto Lender Genesis Files for Bankruptcy Following SEC Lawsuit Crypto lender Genesis, a subsidiary of Digital Currency Group (DCG), has filed for Chapter 11 bankruptcy. The filin
Why is ETH demand lacking post-Ethereum ETF?
Biraajmaan Tamuly2 hours agoWhy is ETH demand lacking post-Ethereum ETF?ETH price failed to crack the $3,400 resistance level, as spot Ethereum ETFs are seeing more outflows largely due to Grayscale.801 Total views2 Tota
OneCoin lawyer gets bail pending appeal for conviction and 10-year sentence
Turner Wright2 hours agoOneCoin lawyer gets bail pending appeal for conviction and 10-year sentenceJudge Edgardo Ramos determined that Mark Scott was not “likely to flee or pose a danger to the safety of any other pers
Bitcoin breaches $70k for the first time
Zoltan Vardai27 minutes agoBitcoin breaches $70k for the first timeBitcoin broke a new high of $71,415, three days after Ether breached the $4,000 mark for the first time since 2021.490 Total viewsListen to article 0:00N
Ray Salmond5 hours agoBNB price pops, then drops, following news of DOJ-Binance settlementThe BNB token defied Nov. 21’s wider market downturn with a high-volume rally, which saw its price hit a five-month high at $271
Biggest Movers: AXS Jumps Over 20%, as MATIC Falls to 13-Month Low
Biggest Movers: AXS Jumps Over 20%, as MATIC Falls to 13-Month Low Despite the majority of tokens trading in red on Thursday, AXS was up by over 20% in today’s session. Whil