#46985 [SC-High] CollateralPool::totalCollateral can be increased to arbitrary value

Submitted on Jun 7th 2025 at 10:27:34 UTC by @rick137 for Audit Comp | Flare | FAssets

  • Report ID: #46985

  • Report Type: Smart Contract

  • Report severity: High

  • Target: https://github.com/flare-foundation/fassets/blob/main/contracts/assetManager/implementation/CollateralPool.sol

  • Impacts:

    • Protocol insolvency

Description

Brief/Intro

totalCollateral can be increased to arbitrary value without any deposit due to lack of validation for _distribution parameter in CollateralPool::claimAirdropDistribution

Vulnerability Details

0- agent is created by owner
1- collaterals is deposited and agent is made available by owner
2- f-assets is minted by a minter
3- Nat price will be changed and the agent becomes eligible for liquidation
4- MaliciousDistributionToDelegators contract is deployed by agent's owner and will be passed to claimAirdropDistribution as parameter and totalCollateral will be increased to an arbitrary value to escape liquidation.

Impact Details

Liquidatable agents cannot be liquidated

Proof of Concept

Proof of Concept

Consider to create this contract in contracts/assetManager/mock directory

Malicous Distributor Contract

Was this helpful?