Arcadia Finance hacker used reentrancy exploit, crew calls for return of funds

by Jeremy

The Arcadia Finance attacker used a reentrancy exploit to empty $455,000 from the decentralized finance (DeFi) protocol, in response to a July 10 autopsy report issued by the app’s growth crew. A “reentrancy exploit” is a bug that enables an attacker to “reenter” a contract or interrupt it throughout a multi-step course of, stopping the method from being accomplished accurately.

The crew has despatched a message to the attacker demanding the return of funds inside 24 hours and threatening police motion if the hacker fails to conform.

Arcadia Finance was exploited on the morning of July 10 and drained of $455,000 price of crypto. A preliminary report from blockchain safety agency PeckShield said that the attacker had used a “lack of untrusted enter validation” within the app’s contracts to empty the funds. The Arcadia crew had denied this, stating that PeckShield’s evaluation was mistaken. Nonetheless, the crew didn’t clarify what it thought the trigger was on the time.

The brand new Arcadia report said that the app’s “liquidateVault()” perform didn’t comprise a reentrancy examine. This allowed the attacker to name the perform earlier than a well being examine had been accomplished however after the attacker had withdrawn funds. Because of this, the attacker may borrow funds and never pay them again, draining them from the protocol.

The crew has now paused the contracts and is engaged on a patch to shut the loophole.

The attacker first took a flash mortgage from Aave for $20,672 price of USD Coin (USDC) and deposited it into an Arcadia vault. Subsequent, the hacker used this vault collateral to borrow $103,210 USDC from an Arcadia liquidity pool. This was completed by means of a “doActionWithLeverage()” perform that enables customers to borrow funds provided that their account can stay wholesome by the tip of the block.

The attacker deposited the $103,210 into the vault, bringing the full funds to $123,882. The hacker then withdrew all funds, leaving the vault with no belongings and $103,210 in debt.

Theoretically, this could have induced all actions to revert, as withdrawing the funds ought to have induced the account to fail a well being examine. Nonetheless, the attacker used a malicious contract to name liquidateVault() earlier than the well being examine may start. The vault was liquidated, eliminating all of its money owed. Because of this, it was left with zero belongings and 0 liabilities, permitting it to go the well being examine.

Because the account handed the well being examine in spite of everything transactions had been concluded, not one of the transactions reverted, and the pool was drained of $103,210. The attacker paid again the mortgage from Aave throughout the identical block. The hacker repeated this exploit a number of occasions, draining a complete of $455,000 from swimming pools on Optimism and Ethereum.

In its report, Arcadia’s crew pushed again towards claims that the exploit was attributable to untrusted enter, stating that this alleged vulnerability was not “the core concern” within the assault.

Associated: Circle, Tether freezes over $65M in belongings transferred from Multichain

The Arcadia crew posted a message to the attacker utilizing the enter knowledge area of an Optimism transaction, stating:

“We perceive you might be concerned with Arcadia Finance’s exploit. We’re actively working with safety specialists and regulation enforcement. Your TC deposits and withdrawals on BNB had been a bit too quick, it’s exhausting to cover your id on-line lately. We’ll escalate this with regulation enforcement in absence of any funds being returned throughout the subsequent 24 hours.”

In its report, Arcadia claimed it had discovered some promising leads for monitoring down the attacker. “Apart from acquiring addresses linked to centralized exchanges, we additionally uncovered hyperlinks to earlier exploits of different protocols,” the report mentioned. “The crew is investigating each on-chain and off-chain knowledge to the fullest extent and has a number of leads.”

Exploits and scams have been a seamless downside within the DeFi area in 2023. A July 5 report from CertiK said that over $300 million was misplaced on account of exploits within the second quarter of the yr.