#46681 [SC-Low] malicious actor can prevent agent from being destroyed
Submitted on Jun 3rd 2025 at 10:26:30 UTC by @rick137 for Audit Comp | Flare | FAssets
Report ID: #46681
Report Type: Smart Contract
Report severity: Low
Target: https://github.com/flare-foundation/fassets/blob/main/contracts/assetManager/implementation/CollateralPool.sol
Impacts:
Temporary freezing of funds
Description
Brief/Intro
Entering into collateral Pool is possible even agent's status is DESTROYING leading to the temporary freezing of funds
Vulnerability Details
0- agent is created by owner
1- collaterals is deposited to agentPool and collateralPool to make agent available
2- agent becomes not available by owner for any reason
3- announceDestroy is emitted by agent's owner
4- announceAgentPoolTokenRedemption is emitted by owner
5-collateral is redeemed by owner
6- Malicious actor sees the opportunity and deposits into the collateralPool to prevent the agent from being destroyed
7- destroyAgent transaction is reverted because cannot destroy a pool with issued tokens
8- malicious actor can redeem his/her CPTs anytimeImpact Details
temporary freezing of funds
Proof of Concept
Proof of Concept
consider to add this test to 14-CoreVault.ts
Previous#46677 [SC-Insight] Wrong comment in _getFAssetRequiredToNotSpoilCRNext#46688 [SC-High] `claimAirdropDistribution()` Allows Arbitrary Inflation of `totalCollateral`
Was this helpful?