Skip to content
Business logic Audit finding Intermediate

Temporary claim freezing

A royalties receiver contract calculates each beneficiary's claimable share from the current factory parameters rather than from what has already been paid out. If the factory later reduces a beneficiary's percentage after that beneficiary has already claimed, the remaining balance can be too small to satisfy the other beneficiaries' newly calculated shares, so their claims revert and funds are temporarily frozen.

shadowHunter Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

56881 sc high temporary claim freezing

Submitted on Oct 21st 2025 at 13:41:16 UTC by @shadowHunter for Audit Comp | Belong

Description

Brief / Intro

A temporary claim freezing vulnerability exists in RoyaltiesReceiverV2 when factory parameters are updated via the Factory. Specifically:

  • If fees are reduced for a beneficiary after partial payouts, subsequent claims by other parties may revert temporarily.
  • This can freeze funds, delaying payouts to platform or referral beneficiaries until the contract state or allocations are reverted back.

Note: This is not due to incorrect factory params but due to past claims which have not yet been claimed. So the issue occurs for genuine inputs.

Vulnerability Details

{% stepper %} {% step %}

Initial Setup

RoyaltiesReceiverV2 initialized with:

  • Creator: 50%
  • Platform: 50%
  • No referral

Funded with 100 ETH. {% endstep %}

{% step %}

Step — Partial Release

Creator claims 50 ETH. Platform has not yet claimed. {% endstep %}

{% step %}

Step — Fee Update via Factory

Factory updates royalties to:

  • Creator: 40%
  • Platform: 60%

Already-paid creator (50 ETH) exceeds new allocation (40 ETH). {% endstep %}

{% step %}

Step — Platform Claim Fails Temporarily

Platform calls release() which reverts as it demands 60 ETH even though only 50 ETH is left.

Effect: Payout is temporarily frozen to Platform. {% endstep %} {% endstepper %}

Root Cause

  • RoyaltiesReceiverV2 calculates claimable shares dynamically based on current factory parameters.
  • Factory setFactoryParameters() allows reducing a beneficiary’s share after payout.
  • Contract does not account for historical payouts exceeding new allocations, causing temporary reverts.

Impact

  • Funds intended for platform/referral beneficiaries can be temporarily frozen.
  • An attacker or even a benign update can cause griefing by reducing an already-partially-paid beneficiary's allocation, leading to reverts for other beneficiaries until state is reconciled.

Recommendation

  • Make new allocations apply only to future claims (do not retroactively reduce already-paid beneficiaries’ effective allocations).
  • Before updating fees, compute and adjust for historical payouts (e.g., record and preserve already-accrued shares or introduce a pending-claims adjustment mechanism) so that past payouts cannot exceed new allocations.

Proof of Concept

<details> <summary>View PoC (Foundry test)</summary>
Solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.27;

import "forge-std/Test.sol";
import "../contracts/v2/periphery/RoyaltiesReceiverV2.sol";
import "../contracts/v2/platform/Factory.sol";
import "openzeppelin-contracts/contracts/proxy/Clones.sol";

contract RoyaltiesReceiverStandaloneTest is Test {
    RoyaltiesReceiverV2 receiver;
    Factory factory;

    address creator = address(0x1);
    address platform = address(0x2);
    address public constant NATIVE_CURRENCY_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

    function setUp() public {
        // ===== Step 1: Deploy and initialize Factory clone =====
        Factory.FactoryParameters memory factoryParams = Factory.FactoryParameters({
            platformAddress: platform,
            signerAddress: address(this),
            defaultPaymentCurrency: address(0),
            platformCommission: 0,
            maxArraySize: 5,
            transferValidator: address(0)
        });

        Factory.RoyaltiesParameters memory royalties = Factory.RoyaltiesParameters({
            amountToCreator: 5000, // 50%
            amountToPlatform: 5000 // 50%
        });

        Factory.Implementations memory impls = Factory.Implementations({
            accessToken: address(0),
            creditToken: address(0),
            royaltiesReceiver: address(new RoyaltiesReceiverV2()), // master impl
            vestingWallet: address(0)
        });

        uint16[5] memory referralPercentages = [uint16(0), uint16(0), uint16(0), uint16(0), uint16(0)];

        Factory factoryImpl = new Factory();
        address payable factoryCloneAddr = payable(Clones.clone(address(factoryImpl)));
        factory = Factory(factoryCloneAddr);
        factory.initialize(factoryParams, royalties, impls, referralPercentages);

        // ===== Step 2: Deploy and initialize RoyaltiesReceiver clone =====
        RoyaltiesReceiverV2.RoyaltiesReceivers memory receivers = RoyaltiesReceiverV2.RoyaltiesReceivers({
            creator: creator,
            platform: platform,
            referral: address(0)
        });

        RoyaltiesReceiverV2 receiverImplementation = new RoyaltiesReceiverV2();
        address payable cloneAddr = payable(Clones.clone(address(receiverImplementation)));
        receiver = RoyaltiesReceiverV2(cloneAddr);
        receiver.initialize(receivers, factory, bytes32(0));

        // ===== Step 3: Fund the receiver =====
        vm.deal(address(this), 100 ether);
        payable(address(receiver)).transfer(100 ether);
    }

    function testPartialReleaseAndFeeUpdate() public {
        uint256 creatorBefore = creator.balance;
        uint256 platformBefore = platform.balance;

        // ===== Step 1: Only creator claims =====
        receiver.release(NATIVE_CURRENCY_ADDRESS, creator);

        uint256 creatorAfterStep1 = creator.balance;
        uint256 platformAfterStep1 = platform.balance;

        // Validate creator received 50 ETH (50%)
        assertEq(creatorAfterStep1 - creatorBefore, 50 ether);
        assertEq(platformAfterStep1 - platformBefore, 0);

        // ===== Step 2: Update royalties to 40% creator, 60% platform =====
        Factory.RoyaltiesParameters memory newRoyalties = Factory.RoyaltiesParameters({
            amountToCreator: 4000, // 40%
            amountToPlatform: 6000 // 60%
        });

        Factory.Implementations memory impls = factory.implementations();
        uint16[5] memory referralPercentages = [uint16(0), uint16(0), uint16(0), uint16(0), uint16(0)];

        factory.setFactoryParameters(factory.nftFactoryParameters(), newRoyalties, impls, referralPercentages);

        // ===== Step 3: Platform claims remaining =====
		// Bug: Fails due to insufficient balance
		vm.expectRevert();
        receiver.release(NATIVE_CURRENCY_ADDRESS, platform);
    }

    // Needed to receive ETH
    receive() external payable {}
}

Output: Release to Platform reverts due to insufficient ETH

</details>

The original report as published on Immunefi, by shadowHunter. 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 receiver computes claimable amounts dynamically from current factory parameters without tracking historical payouts, so a retroactive reduction in one beneficiary's share can make another beneficiary's calculated claim exceed the remaining balance.

Impact

Funds intended for platform or referral beneficiaries can be temporarily frozen, and a benign parameter update or an attacker able to trigger one could cause griefing until the state is reconciled.

What the attacker needed

A deployed royalties receiver; a beneficiary has already claimed; factory parameters are later updated

The fix

New allocations should apply only to future claims, or the contract should record and preserve already-accrued shares before fees are updated so past payouts cannot exceed new allocations.

How it was found

  1. Deploy and initialise the factory and a royalties receiver with a 50/50 split between creator and platform, then fund the receiver.
  2. The creator calls release and receives their 50 percent share.
  3. The factory updates the royalties split to 40 percent creator and 60 percent platform.
  4. The platform calls release, which reverts because the contract tries to pay 60 percent of the original total while only 50 percent remains.

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.

A contract holds money and splits it between a creator and a platform according to percentages. The creator takes their share first. Later the percentages are changed so the platform should get more, but the contract works out the platform's share from the new percentage of the original total, not from what is actually left. The platform's withdrawal then fails because the contract tries to send more than it holds.

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 shadowHunter

View all

25 more disclosed reports, best first.

More from Belong

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.