Skip to content
Business logic Audit finding Intermediate

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.

pseudoArtist Follow

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

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.

Solidity
    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

  1. Executor fee is not burnt if the caller is agent and executors are not incentivised if they are meant to call the function.
  2. 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.

The original report as published on Immunefi, by pseudoArtist. 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 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

  1. Call RedemptionRequestsFacet.redeem() with some executor fee.
  2. The function creates a new redemption request via RedemptionRequests.redeem().
  3. If the address is invalid or not a normalised agent, rejectInvalidRedemption() is called and deletes the request without calling payOrBurnExecutorFee.
  4. 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.

More by pseudoArtist

View all

3 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.