Executor fee will be stuck in the contract when rejectInvalidRedemption is called
The rejectInvalidRedemption function deletes a redemption request without burning the executor fee that the redeemer paid. This leaves the fee stuck in the contract instead of being burned as intended.
- Disclosed after under an hour
#46320 [SC-Low] Executor fee will be stuck in the contract when rejectInvalidRedemption is called
Submitted on May 28th 2025 at 11:26:56 UTC by @Oxgritty for Audit Comp | Flare | FAssets
- Report ID: #46320
- Report Type: Smart Contract
- Report severity: Low
- Target: https://github.com/flare-foundation/fassets/blob/main/contracts/assetManager/library/RedemptionRequests.sol
- Impacts:
- Contract fails to deliver promised returns, but doesn't lose value
Description
Brief/Intro
- When agent vault owner will call
rejectInvalidRedemption, to reject the redemption request, request will be deleted without burning executor fee.
Vulnerability Details
- When a redeemer creates a redemption request, he has the option to pay an executor fee with it. This is either paid to the executor, if he calls
confirmRedemptionPaymentwith the payment proof or it is burned if agent submits the payment proof. - The problem lies in
rejectInvalidRedemptionfunction, which is called by the agent for a redemption request where the redeemer provided a invalid address, here the redemption request is deleted without burning the executor fee.
Impact Details
- Executor fee will be stuck in the contract, instead of just burning it by sending it to a dead address.
References
- This function lacks the executor fee burn mechanism: https://github.com/flare-foundation/fassets/blob/fc727ee70a6d36a3d8dec81892d76d01bb22e7f1/contracts/assetManager/library/RedemptionRequests.sol#L231-#L261
Proof of Concept
Proof of Concept
- Redeemer calls
redeemto create a redeem request where he provides invalid underlying redeemer address and also provides executor fees. - Agent vault owner calls
rejectInvalidRedemptionwith the proof of invalid address to delete the redemption request. - Redemption request will be deleted, but executor fee will remain in the contract.
// rejectInvalidRedemption function is missing this code:-
Redemptions.payOrBurnExecutorFee(request);
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 rejectInvalidRedemption function omits the call to burn the executor fee that other redemption paths include.
Impact
The executor fee becomes stuck in the contract rather than being burned, so funds are not lost but are not delivered as promised.
What the attacker needed
Redeemer provides invalid address; redeemer pays executor fee; agent vault owner calls reject
The fix
The rejectInvalidRedemption function should burn the executor fee, for example by calling the same pay-or-burn helper used elsewhere.
How it was found
- Redeemer calls redeem with an invalid underlying address and provides executor fees.
- Agent vault owner calls rejectInvalidRedemption with proof of the invalid address.
- The redemption request is deleted but the executor fee remains in the contract.
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.
When someone redeems an asset, they can pay an extra fee to an executor. Normally this fee is either paid out or burned. Here, a specific function that cancels invalid requests forgets to burn the fee, so the money stays locked in the contract.
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.