FilDA Hack

Reported loss $700K
Elastos Rei Network
Bridge Logic Flaw

What happened

On April 22, 2023, an attacker took about $700,000 from FilDA, a multi-chain lending protocol, through its deployments on Elastos Smart Chain (ESC) and REI Network. The attack used deprecated markets that existed only on those two chains and had no deposits left, such as the HBTC market on ESC. By manipulating the exchange rate between the market's cToken and HBTC, the attacker could borrow more than their collateral was worth. FilDA said no other deployments were affected.

FilDA paused ESC and REI and named the attacker address 0x7Bb3E4261043e022A50725293cB26aC3Abe9BAE5. It said the attacker's funding traced back to centralized exchange accounts, and it asked law enforcement to pursue the case. The attacker bridged part of the stolen ELA out of ESC: 200,000 ELA to Ethereum and 80,000 ELA to BNB Chain.

By April 27, FilDA had recovered 80,000 ELA itself and the attacker had returned 162,000 ELA, 21,079 DAI and about 16.84 ETH. In May, FilDA said it was still negotiating for more and working on a way to make users whole.

How it happened

  1. FilDA is a Compound-style lender. A market's exchange rate is (cash + totalBorrows - totalReserves) / totalSupply, where cash is the underlying token balance the market contract holds.
  2. The HBTC market on ESC was deprecated and empty, so its cToken supply was tiny and easy to control.
  3. The attacker deposited into the empty market, then sent a large amount of HBTC straight to the market contract. That raised cash, and with it the exchange rate, without minting new cTokens.
  4. With their cTokens now valued far above what they had actually deposited, the attacker borrowed other assets from FilDA worth more than their real collateral. FilDA's statement shows the attacker repeated deposit-and-borrow operations through abandoned zero-balance pools.

Protocol details

Classification Bridge & Cross-Chain
Protocol Type Lending
Implementation language Solidity
Protocol links Website @FilDAFinance

Security review history

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.