Executor fee is not paid or burned in rejectInvalidRedemption
The rejectInvalidRedemption function deletes a redemption request without calling payOrBurnExecutorFee, so the executor fee is neither paid to the executor nor burned. This leaves the native tokens stuck in the contract with no withdrawal function.
Originally disclosed on Immunefi
- Disclosed after under an hour
#46847 [SC-Low] executor fee is not paid or burned in `rejectInvalidRedemption`
Submitted on Jun 5th 2025 at 08:47:16 UTC by @pseudoArtist for Audit Comp | Flare | FAssets
- Report ID: #46847
- Report Type: Smart Contract
- Report severity: Low
- Target: https://github.com/flare-foundation/fassets/blob/main/contracts/assetManager/library/RedemptionRequests.sol
- Impacts:
- Permanent freezing of funds
Description
Brief/Intro
When calling rejectInvalidRedemption the function doens't handle the executor fee correctly and doesn't call payOrBurnExecutorFee which will cause the fee to be stuck in the contract.
Vulnerability Details
The function payOrBurnExecutorFee is called in function rejectRedemptionRequest which transfers the executor fee to the executor if the caller is the executor and burns the fee if it is the agent.
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 {
Agents.burnDirectNAT(executorFeeNatWei);
}
}
}
However the same call is not done in the function rejectInvalidRedemption , and later the requestID is deleted.
Impact Details
This causes 2 problems
- Executor fee is not burnt if the caller is agent and executors are not incentivised if they are meant to call the function.
- The executor fee will will remain stuck in the contract as their is no function to withdraw the native tokens recieved as fee.
References
Proof of Concept
Proof of Concept
Step 1: RedemptionRequestsFacet.redeem() is called with some executor fee.
Step 2: The function calls RedemptionRequests.redeem() and creates a new redemption request.
Step 3: If the address is invalid or not normalised agent calls rejectInvalidRedemption() and deletes redemption request without properly calling payOrBurnExecutorFee.
Step 4: The fee will be stuck in the contract with no way to get it.
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 payOrBurnExecutorFee before deleting the request, leaving the fee unaccounted for.
Impact
The executor fee is permanently frozen in the contract, and executors are not incentivised to call the function.
What the attacker needed
A redemption request with an executor fee; the request is rejected as invalid
How it was found
- Call RedemptionRequestsFacet.redeem() with some executor fee.
- The function creates a new redemption request via RedemptionRequests.redeem().
- If the address is invalid or not a normalised agent, rejectInvalidRedemption() is called and deletes the request without calling payOrBurnExecutorFee.
- The fee remains stuck in the contract with no way to retrieve it.
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 requests a redemption, they pay a small fee meant for the person who processes it. If the request is rejected as invalid, the code deletes the request but forgets to send or destroy that fee, so the money stays locked in the contract 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.