A hacker has made off with roughly $11 million in wrapped ETH (wETH), wrapped BTC (wBTC), Chainlink (LINK), USD Coin (USDC), Gnosis (GNO) and wrapped XDAI (wxDAI) after utilizing a “re-entrancy” assault on decentralized finance (DeFi) lending protocol functions Agave and Hundred Finance.
The assault comes inside 24 hours of the information breaking of the Deus Finance exploit, the place hackers stole over $3 million in Dai (DAI) and Ether (ETH) from the lending contract platform.
Agave token AGVE dropped by 20% following the assault, in keeping with knowledge from CoinGecko. Hundred Funds token HND fell 3.5% after it introduced the exploit. Nevertheless, it’s since recovered to hit a 24-hour excessive.
“Agave is at present investigating an exploit on the agave finance protocol,” Agave tweeted on Tuesday. “We are going to replace you as quickly as we all know extra.” It famous that contracts have been paused till the scenario is resolved.
The Hundred Finance group additionally tweeted that it was exploited on the Gnosis chain and has paused its markets whereas pursuing investigations.
Solidity developer and creator of an NFT liquidity protocol utility Shegen (@shegenerates), tweeted that she misplaced $225,000 within the exploit. Her investigations revealed the assault labored by exploiting a wETH contract function on Gnosis Chain, permitting the attacker to proceed borrowing crypto earlier than the apps might calculate the debt stopping additional borrowing.
The attacker ran this exploit, frequently borrowing in opposition to the identical collateral they have been posting till the funds have been drained from the protocols.
Shegen instructed Cointelegraph that whereas the sensible contract on Agave is basically the identical as Aave, which secures $18.4B, “each safety researcher has audited it,” she mentioned. “So it’s cheap to imagine the contract is protected.”
“I feel this hack stands out greater than some greater ones,” Shegen mentioned, noting that even when it was a smaller hack in contrast with others that stole millions more, the similarity to Aave meant “it appears prime tier protected, however wasn’t, and that break of belief hurts.”
“It’s like you’ll be able to’t even belief ‘protected’ code.”
Blockchain safety researcher Mudit Gupta says the distinction between Aave and Agave is that “Aave actively checks for re-entrancy earlier than itemizing tokens on the mainnet to keep away from related assaults.”
Shegen acknowledged that she didn’t blame the Agave builders for failing to stop the assault.
“Agave was utilized in an unsafe method”, she mentioned. “Possibly the developer mustn’t have allowed tokens with callbacks in them for use within the platform, or added extra re-entrancy guards.”
“Curve, for instance, was not hacked immediately, as a result of it has additional re-entrancy guards, however I do not actually blame Luigy and the Agave group as a result of it‘s so unlikely that this might have occurred, and slipped previous many individuals.”
Shegen additionally didn’t level the blame at Gnosis for creating tokens with a callback perform that the hacker exploited, saying that the function stops customers from by chance dropping their crypto.
“That‘s really an amazing function for bridged tokens, it‘s only a actually unlucky, and unfortunate circumstance in my view.”