Arcadia Finance hacker used reentrancy exploit, team demands return of funds

0

[ad_1]

The Arcadia Finance attacker used a reentrancy exploit to drain $455,000 from the decentralized finance (DeFi) protocol, according to a July 10 post-mortem report issued by the app’s development team. A “reentrancy exploit” is a bug that allows an attacker to “reenter” a contract or interrupt it during a multi-step process, preventing the process from being completed correctly.

The team has sent a message to the attacker demanding the return of funds within 24 hours and threatening police action if the hacker fails to comply.

Arcadia Finance was exploited on the morning of July 10 and drained of $455,000 worth of crypto. A preliminary report from blockchain security firm PeckShield stated that the attacker had used a “lack of untrusted input validation” in the app’s contracts to drain the funds. The Arcadia team had denied this, stating that PeckShield’s analysis was mistaken. However, the team did not explain what it thought the cause was at the time.

The new Arcadia report stated that the app’s “liquidateVault()” function did not contain a reentrancy check. This allowed the attacker to call the function before a health check had been completed but after the attacker had withdrawn funds. As a result, the attacker could borrow funds and not pay them back, draining them from the protocol.

The team has now paused the contracts and is working on a patch to close the loophole.

The attacker first took a flash loan from Aave for $20,672 worth of USD Coin (USDC) and deposited it into an Arcadia vault. Next, the hacker used this vault collateral to borrow $103,210 USDC from an Arcadia liquidity pool. This was accomplished through a “doActionWithLeverage()” function that allows users to borrow funds only if their account can remain healthy by the end of the block.

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

Theoretically, this should have caused all actions to revert, as withdrawing the funds should have caused the account to fail a health check. However, the attacker used a malicious contract to call liquidateVault() before the health check could commence. The vault was liquidated, eliminating all of its debts. As a result, it was left with zero assets and zero liabilities, allowing it to pass the health check.

Since the account passed the health check after all transactions were concluded, none of the transactions reverted, and the pool was drained of $103,210. The attacker paid back the loan from Aave within the same block. The hacker repeated this exploit multiple times, draining a total of $455,000 from pools on Optimism and Ethereum.

In its report, Arcadia’s team pushed back against claims that the exploit was caused by untrusted input, stating that this alleged vulnerability was not “the core issue” in the attack.

Related: Circle, Tether freezes over $65M in assets transferred from Multichain

The Arcadia team posted a message to the attacker using the input data field of an Optimism transaction, stating:

“We understand you are involved with Arcadia Finance’s exploit. We’re actively working with security experts and law enforcement. Your TC deposits and withdrawals on BNB were a bit too fast, it’s hard to hide your identity online these days. We will escalate this with law enforcement in absence of any funds being returned within the next 24 hours.”

In its report, Arcadia claimed it had found some promising leads for tracking down the attacker. “Besides obtaining addresses linked to centralized exchanges, we also uncovered links to previous exploits of other protocols,” the report said. “The team is investigating both on-chain and off-chain data to the fullest extent and has multiple leads.”

Exploits and scams have been a continuing problem in the DeFi space in 2023. A July 5 report from CertiK stated that over $300 million was lost due to exploits in the second quarter of the year.

Collect this article as an NFT to preserve this moment in history and show your support for independent journalism in the crypto space.

[ad_2]

Source link

Leave A Reply

Your email address will not be published.

bitcoin
Bitcoin (BTC) $ 76,831.00
ethereum
Ethereum (ETH) $ 2,186.06
tether
Tether (USDT) $ 0.998497
bnb
BNB (BNB) $ 693.45
xrp
XRP (XRP) $ 1.21
usd-coin
USDC (USDC) $ 0.999113
solana
Solana (SOL) $ 93.61
tron
TRON (TRX) $ 0.356142
staked-ether
Lido Staked Ether (STETH) $ 2,265.05
figure-heloc
Figure Heloc (FIGR_HELOC) $ 1.03
hyperliquid
Hyperliquid (HYPE) $ 89.32
zcash
Zcash (ZEC) $ 1,215.31
monero
Monero (XMR) $ 620.90
dogecoin
Dogecoin (DOGE) $ 0.073720
usds
USDS (USDS) $ 0.994910
whitebit
WhiteBIT Coin (WBT) $ 73.47
wrapped-steth
Wrapped stETH (WSTETH) $ 2,779.67
leo-token
LEO Token (LEO) $ 9.29
chainlink
Chainlink (LINK) $ 10.48
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 76,243.00
cardano
Cardano (ADA) $ 0.186110
binance-bridged-usdt-bnb-smart-chain
Binance Bridged USDT (BNB Smart Chain) (BSC-USD) $ 0.998762
stellar
Stellar (XLM) $ 0.160646
wrapped-beacon-eth
Wrapped Beacon ETH (WBETH) $ 2,466.93
bitcoin-cash
Bitcoin Cash (BCH) $ 269.75
near
NEAR Protocol (NEAR) $ 3.98
rain
Rain (RAIN) $ 0.006522
wrapped-eeth
Wrapped eETH (WEETH) $ 2,465.31
dai
Dai (DAI) $ 0.999738
susds
sUSDS (SUSDS) $ 1.08
ethena-usde
Ethena USDe (USDE) $ 0.997600
litecoin
Litecoin (LTC) $ 53.93
uniswap
Uniswap (UNI) $ 6.49
usd1-wlfi
USD1 (USD1) $ 0.997423
coinbase-wrapped-btc
Coinbase Wrapped BTC (CBBTC) $ 76,366.00
canton-network
Canton (CC) $ 0.090946
avalanche-2
Avalanche (AVAX) $ 8.16
blockchain-usd
Blockchain USD (USDB) $ 0.932324
sui
Sui (SUI) $ 0.851401
weth
WETH (WETH) $ 2,268.37
the-open-network
Gram (prev. Toncoin) (GRAM) $ 1.15
tether-gold
Tether Gold (XAUT) $ 3,995.38
global-dollar
Global Dollar (USDG) $ 0.999791
usdt0
USDT0 (USDT0) $ 0.998824
paypal-usd
PayPal USD (PYUSD) $ 0.996035
hedera-hashgraph
Hedera (HBAR) $ 0.068289
bittensor
Bittensor (TAO) $ 227.48
shiba-inu
Shiba Inu (SHIB) $ 0.000005
ripple-usd
Ripple USD (RLUSD) $ 0.999086
quant-network
Quant (QNT) $ 179.60
Shares