Crypto Incidents

Avalanche Tranche Vault Exploited for $1.01 Million in USDC

✶ The Main Takeaways
  • Avalanche's Tranche Vault lost $1.01 million due to a smart contract flaw allowing double withdrawals against the same deposit.
  • Investors should review the security of smart contracts and consider risks associated with flash loans.
  • Ongoing investigations are crucial for understanding vulnerabilities and preventing similar exploits in the future.

An Avalanche-based Tranche Vault linked to Fence Finance and Valinor Digital lost approximately 1.01 million USDC on October 28 after an attacker exploited a smart contract accounting flaw to withdraw funds twice against the same deposit.

Blockchain security firm Blockaid detected the exploit and initially attributed it to flash-loan-funded manipulation of tranche shares. In its security alert, the firm identified roughly two transactions involving the affected vault and warned that the attack was ongoing.

The targeted contract, 0xe25CB545Bdd47a8Ec2d08001cb5661B00D47621a, held the USDC that the attacker ultimately drained.

Settlement Flaw Allowed a Second USDC Withdrawal

A subsequent technical investigation by SlowMist identified a more specific vulnerability in the vault’s principal accounting.

At the UTC day rollover, the pool’s settlement logic treated a scheduled principal payment as received, reducing its recorded outstanding principal even though no USDC had actually been repaid.

The contract calculated available withdrawal capacity by subtracting outstanding principal from funded principal. When the accounting update incorrectly reduced that outstanding balance, approximately 1.013 million USDC of withdrawal capacity became available again.

The attacker exploited the discrepancy by submitting the same withdrawal parameters a second time, extracting another 1,013,353 USDC from the pool.

The attack did not require compromising Avalanche itself or the USDC stablecoin. The vulnerability was contained within the affected vault’s settlement and withdrawal logic.

Flash Loan Funded the Exploit

The attacker used flash-loan liquidity to fund the initial deposit and withdrawal sequence before exploiting the accounting discrepancy. The temporary financing enabled the attack, but the underlying weakness was the contract’s failure to distinguish scheduled repayments from funds actually received.

Flash loans also featured in the recent X100 exploit, which caused approximately $4.85 million in losses on October 24. That incident involved a governance takeover rather than faulty settlement accounting.

SlowMist also associated the affected TranchePool with Oatfi, alongside Fence Finance and Valinor Digital, although the precise responsibilities of each party have not been established.

As of October 28, no confirmed recovery of the stolen USDC or comprehensive assessment of depositor losses had been publicly established.

Mandy Williams
Written by

Mandy Williams

Mandy Williams is a full-time cryptocurrency reporter. Having entered the blockchain space in early 2017, she leverages a diverse background in multi-niche writing and content strategy to cover the evolving digital asset market. Mandy is dedicated to breaking down complex Web3 concepts and spreading mainstream awareness of blockchain technology.