Executor Fee Lost in rejectInvalidRedemption() Due to Missing Handling Logic
The rejectInvalidRedemption() function deletes a redemption request without calling payOrBurnExecutorFee(), so any executor fee attached to the request is permanently lost. An attacker cannot directly exploit this, but the fee is silently frozen in the contract.
Originally disclosed on Immunefi
- Disclosed after under an hour
#45897 [SC-Low] Executor Fee Lost in `rejectInvalidRedemption()` Due to Missing Handling Logic
Submitted on May 22nd 2025 at 06:47:34 UTC by @danvinci_20 for Audit Comp | Flare | FAssets
- Report ID: #45897
- Report Type: Smart Contract
- Report severity: Low
- Target: https://github.com/flare-foundation/fassets/blob/main/contracts/assetManager/facets/RedemptionRequestsFacet.sol
- Impacts:
- Permanent freezing of unclaimed yield
Description
Description
The rejectInvalidRedemption() function is used to cancel redemption requests when the redeemer's underlying address is found to be invalid or not normalized. However, this code path fails to handle the executor fee if it was originally attached to the request, resulting in silent permanent freezing of Executor Fee in the contract.
In typical redemption workflows, the executor fee is either paid to the executor (if they submit the correct proof) or burned. This ensures all fees are properly routed, preventing against the freezing of funds in the contracts. In contrast, when a redemption is rejected due to invalid address validation, the executor fee is neither paid nor burned, it is silently lost when the associated Redemption.Request is deleted.
The following snippet shows the affected function:
function rejectInvalidRedemption(
IAddressValidity.Proof calldata _proof,
uint64 _redemptionRequestId
) internal {
Redemption.Request storage request = Redemptions.getRedemptionRequest(_redemptionRequestId);
...
Agents.endRedeemingAssets(agent, request.valueAMG, request.poolSelfClose);
emit IAssetManagerEvents.RedemptionRejected(request.agentVault, request.redeemer,
_redemptionRequestId, Conversion.convertAmgToUBA(request.valueAMG));
@>> Redemptions.deleteRedemptionRequest(_redemptionRequestId);
}
Notice that no call to Redemptions.payOrBurnExecutorFee(request) is made before deletion.
In contrast, the correct handling path (e.g., in successful redemptions) explicitly calls:
Redemptions.payOrBurnExecutorFee(request);
The payOrBurnExecutorFee logic is as follows:
function payOrBurnExecutorFee(
Redemption.Request storage _request
) internal {
uint256 executorFeeNatWei = _request.executorFeeNatGWei * Conversion.GWEI;
if (executorFeeNatWei > 0) {
_request.executorFeeNatGWei = 0;
if (msg.sender == _request.executor) {
Transfers.transferNAT(_request.executor, executorFeeNatWei);
} else {
Transfers.transferToBurnAddress(executorFeeNatWei);
}
}
}
Impact
Silent Fund Loss since the Executor fee is permanently removed from circulation without any payout or burn and cannot be recovered.
Recommendations
I will recommend for the payOrBurnExecutorFee() to be called before permanently deleting the request or better still it the Agents should be given the executor fee as compensation for gas usages.
Proof of Concept
Proof of Concept
- Create Redemption Request, A user initiates a redemption, including an
executorFeeNatGWeivalue. - Call
rejectInvalidRedemption()Agent calls the function to reject the redemption due to invalid address. - Observe Fee Handling a.
payOrBurnExecutorFee()was never called. b.executorFeeNatGWeiis silently lost when c.Redemptions.deleteRedemptionRequest()is called.
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 a call to payOrBurnExecutorFee() before deleting the redemption request.
Impact
The executor fee is permanently frozen and cannot be recovered, resulting in silent fund loss.
What the attacker needed
A redemption request with an executor fee; the redeemer's address is invalid or not normalized
The fix
The payOrBurnExecutorFee() function should be called before deleting the redemption request, or the fee should be given to the agent as compensation.
How it was found
- A user creates a redemption request with an executor fee.
- An agent calls rejectInvalidRedemption() to reject the request due to an invalid address.
- The request is deleted without calling payOrBurnExecutorFee(), so the fee is lost.
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 asks to swap a token back, they can attach a small extra payment called an executor fee. If the request is later rejected because the address is invalid, the code deletes the request but forgets to send or burn that fee, so the money is stuck forever.
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.