DeFi Protocol bZx Hacked Again: $8 Million Worth of ETH, LINK, Stablecoins Drained

In yet another jolt to the decentralized finance (DeFi) community, margin, and leverage-based lending and trading platform, bZx became the target of another hack. In the hack, which was much bigger than the previous attacks, hackers made away with $8 million worth of cryptocurrencies.

bZx Hackers Deal 8 Times More Damage To The DeFi Protocol This Time

DeFi lending protocol bZx was attacked again. This time hackers drained a little more over $8 million worth of cryptocurrencies leveraging a duplication bug that enabled them to make away with 219,199.66 LINK, 4,502.70 ETH, 1,756,351.27 USDT, 1,412,048.48 USDC, 667,988.62 DAI.

bZx team member Anton Bukov shared a thread on Twitter, in which he admitted that a faulty line of code in the smart contract led to hackers initiating a series of iToken duplicating transactions to steal ETH:

How Did It Happen Exactly?

On delving deeper, bZx’s official incident report reveals that a loophole in the ‘transferFrom() function’ that enables the transfer of ERC20 tokens from one protocol to the other was leveraged by hackers.

It was possible to call this function to create and transfer an iToken to yourself, allowing you to artificially increase your balance.

To be precise:

You Might Also Like:
  • Attackers invoked a transfer function with the same _from and _to address of the original function.
  • Then they immediately called an ‘_internalTransferFrom’ function with the same set of arguments, making the below lines of code faulty.

faulty bZx smart contract code

faulty bZx smart contract code

This resulted in _balancesFrom _balancesTo being equal.

faulty bZx smart contract code 2

faulty bZx smart contract code 2

This, in turn, enabled the attackers to ‘decrease the balance of _balancesFrom and increases the balance of _balancesTo’. As per the report:

The user was effectively able to increase his balance artificially.

bZx patched the faulty code after the $8 million theft. The fix has set the ‘move of balancesTo being set after the deduction from balances[_from]’ effectively preventing anyone from artificially inflating their balance.

bZx smart contract code fix

bZx smart contract code fix

The leading DeFi lending protocol went ahead and applied the patch after code auditing firms Certik and Peckshield gave the green light.

Not The First Attack on bZx

It seems this year is not turning out to be a good one for bZx. As CryptoPotato reported, earlier in the month of February, a hacker dealt two consecutive blows and stole a combined $1 million in ETH.

In the first one that happened on February 14, the attacker used different methods in both the attacks. In the first one, he/she borrowed 10,000 ETH from dYdX. Out of the 10,000ETH, 5,500 ETH was used to collateralize a loan for 112 wBTC on Compound.

Then the online robber spent 1,300 ETH to open a 5x leveraged ETH/BTC short position on bZx’s Fulcrum trading platform, while also borrowing 5,637 ETH through Kyber’s. He/she swapped this amount for 51 wBTC, causing a serious slippage.

By swapping the 112 wBTC from Compound to 6,671 ETH and the hacker made a profit of 1,193 ETH, amounting to around $318,000 (considering the prices then).

The second one that took place on February 18 saw the attacker leverage ‘oracle manipulation’ to game the system and drain around $600,000.

SPECIAL OFFER (Sponsored) Binance Futures 50 USDT FREE Voucher: Use this link to register & get 10% off fees and 50 USDT when trading 500 USDT (limited – first 200 sign-ups & exclusive to CryptoPotato).

Click here to start trading on BitMEX and receive 10% discount on fees for 6 months.


.custom-author-info{border-top:none;margin:0;margin-bottom:25px;background:#f1f1f1}.custom-author-info .author-title{margin-top:0;color:#3b3b3b;background:#fed319;padding:5px 15px;font-size:20px}.author-info .author-avatar{margin:0 25px 0 15px}.custom-author-info .author-avatar img{border-radius:50%;border:2px solid #d0c9c9;padding:3px}

The post appeared first on CryptoPotato

Buy Bitcoin with Credit Card

BitMex Leverage Trading

Automated Trading Bot

Related Posts

Leave a Reply

Bitcoin (BTC) $ 98,343.35 5.16%
Ethereum (ETH) $ 3,359.15 10.35%
Tether (USDT) $ 1.00 0.36%
Solana (SOL) $ 258.76 11.55%
BNB (BNB) $ 621.77 3.16%
XRP (XRP) $ 1.19 9.85%
Dogecoin (DOGE) $ 0.384484 3.56%
USDC (USDC) $ 1.00 0.25%
Lido Staked Ether (STETH) $ 3,358.78 10.02%
Cardano (ADA) $ 0.795203 0.32%