Skip to content
Business logic Audit finding Intermediate

Unbacked Redemptions Due to Donation- Attack on CoreVault Can Freeze Agent Collateral

The CoreVault contract allows direct payments to increase availableFunds without minting corresponding FAssets, enabling an attacker to donate funds and create redemption tickets that freeze agent collateral. This can lock agent collateral indefinitely, causing capital inefficiency.

danvinci_20 Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

#46311 [SC-Insight] Unbacked Redemptions Due to Donation- Attack on CoreVault Can Freeze Agent Collateral

Submitted on May 28th 2025 at 09:08:15 UTC by @danvinci_20 for Audit Comp | Flare | FAssets

Description

Brief/Intro

The Flare FAssets system allows redemptions based on the CoreVault.availableFunds without verifying that those funds correspond to actual minted FAssets. This flawed accounting enables an attacker to lock agent collateral by donating to the vault without minting, creating an huge imbalance between minted supply and redeemable funds.

Vulnerability Details

The FAssets protocol supports direct payments into the CoreVault via a confirmPayment() function that increases availableFunds:

Solidity
if (!confirmedPayments[_proof.data.requestBody.transactionId]) {
    uint128 receivedAmount = uint128(uint256(_proof.data.responseBody.receivedAmount));
    confirmedPayments[_proof.data.requestBody.transactionId] = true;
    availableFunds += receivedAmount;
    emit PaymentConfirmed(...);
}

However, this increase is not tied to any actual minting of FAssets. As a result, an attacker can donate funds (e.g., XRP) to the CoreVault, thereby increasing the apparent availability for redemption without creating any obligation (i.e., minted tokens).

Subsequently, the system allows the creation of redemption tickets using this phantom liquidity, treating donated funds as if they back minted FAssets. This will trigger the freezing of agent collateral, even though no real user has minted or holds FAssets to redeem.

The collateral tied to these redemptions is effectively held hostage until the ticket resolves, but since the redemption was never backed by minted assets, it remains in an unresolved state.

Solidity
Total minted FAssets < Cumulative redemption receipts Amount

This issue is rooted in the following logic from requestReturnFromCoreVault():

Solidity
function requestReturnFromCoreVault(
    address _agentVault,
    uint64 _lots
) external notEmergencyPaused nonReentrant onlyAgentVaultOwner(_agentVault) {
    Agent.State storage agent = Agent.get(_agentVault);
    CoreVault.requestReturnFromCoreVault(agent, _lots);
}

This call enables agents to request returns limited by availableFunds, which includes attacker donations and not just genuine FAsset-backed deposits.

Impact Details

This attack although a loss to the attacker can causes an indirect freezing of agents collateral since no real mint occurred. It also causes long-term capital inefficiency by tying collateral to ghost redemptions. agent Loses opportunity cost, as funds are locked backing nothing.

Recommendation

The current recommendation against this donation attack is to prevent direct injection of funds into the core vault or better ensure that the cumulative amount of redemption tickets generated is limited by the total supply of F-asset in circulation, to prevent any capital inefficiencies in the system.

References

https://github.com/flare-foundation/fassets/blob/fc727ee70a6d36a3d8dec81892d76d01bb22e7f1/contracts/assetManager/library/CoreVault.sol#L125-L157

Proof of Concept

Proof of Concept

consider this attack path:

  1. Attacker donates assets to CoreVault, confirmed via confirmPayment() — increasing availableFunds.
  2. No minting function is triggered — so no FAssets are actually issued.
  3. System incorrectly allows redemption tickets to be created using the direct availableFunds.
  4. These redemptions freeze agent collateral — despite there being nothing to redeem.

Collateral is indefinitely tied up in an unresolvable state, harming agent liquidity and usability.

For numerical analysis: To back the redemption, the protocol freezes the agent’s collateral,

Agent has not minted anything, yet (No F-asset in circulation ) Collateral backing = 1,000 USD Collateral frozen: 1,000 USD (backing a fake redemption)

The original report as published on Immunefi, by danvinci_20. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the CoreVault's availableFunds is increased by direct payments without verifying that these funds correspond to minted FAssets, allowing redemption tickets to be created against unbacked funds.

Impact

Agent collateral could be frozen indefinitely, causing capital inefficiency and opportunity cost for agents, though the attacker incurs a loss.

What the attacker needed

Attacker can donate to CoreVault; no minting required

The fix

The system should prevent direct injection of funds into the core vault or limit redemption tickets to the total supply of FAssets in circulation.

How it was found

  1. Attacker donates assets to CoreVault, confirmed via confirmPayment(), increasing availableFunds.
  2. No minting function is triggered, so no FAssets are issued.
  3. System allows redemption tickets to be created using the direct availableFunds.
  4. These redemptions freeze agent collateral despite no FAssets to redeem.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

The system tracks how much money is available for redemptions, but it doesn't check if that money came from actual minted tokens. An attacker can add extra money directly, making the system think there are more tokens than really exist. This causes the system to freeze collateral from agents who never issued any tokens, locking their funds.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by danvinci_20

View all

22 more disclosed reports, best first.

More from Flare | FAssets

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.