Skip to content
Business logic Audit finding Intermediate

Yield distribution in batches let the same tokens collect rewards in multiple batches, stealing yield from other users

The yield distribution function processes holders in batches using each holder's current balance, so an attacker can move the same tokens between controlled addresses after each batch and have them counted again. This lets the attacker collect more yield than their actual token ownership warrants, taking yield from honest users.

jovi Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

51658 sc high yield distribution in batches let the same tokens collect rewards in multiple batches stealing yield from other users

Submitted on Aug 4th 2025 at 17:20:11 UTC by @jovi for Attackathon | Plume Network

Description

Brief / Intro

By opportunistically (e.g., front-running yield distribution batches) transferring ARC tokens between controlled addresses after each partial distribution in ArcToken.distributeYieldWithLimit, an attacker can claim an outsized share of yield without increasing net ownership of the underlying ARC token, depleting the pool that honest users rely on.

Vulnerability Details

ArcToken.distributeYieldWithLimit iterates over the holders array in fixed-size batches. Because balance snapshots are not taken, an attacker can move tokens between addresses between successive batches so that the same underlying ARC token is counted for reward multiple times.

Notice the following snippet that showcases how the instantly held balance determines the distributed amount of yield:

Solidity
// arc/ArcToken.sol L530-L546
for (uint256 i = 0; i < batchSize; i++) {
            uint256 holderIndex = startIndex + i;
            address holder = $.holders.at(holderIndex);

            if (!_isYieldAllowed(holder)) {
                continue;
            }

            uint256 holderBalance = balanceOf(holder);
            if (holderBalance > 0) {
                uint256 share = (totalAmount * holderBalance) / effectiveTotalSupply;
                if (share > 0) {
                    yToken.safeTransfer(holder, share);
                    amountDistributed += share;
                }
            }
        }

Effectively this means that the balances utilized for distribution of yield are the instant balances of ARC tokens held at the moment the distribution call is made for each batch. They are used with no snapshot taken at the beginning of the yield distribution nor a cooldown or checkpoints on transfers between batches — so the value may change throughout the whole distribution.

Impact Details

This enables balance manipulation to siphon yield that should have gone to later-batched users. Users can transfer balances between ArcToken.distributeYieldWithLimit calls to earn an improper amount of yield.

Proof of Concept

{% stepper %} {% step %}

Setup

Attacker controls a number of addresses that hold at least 1 wei of the ARCToken: A₁, A₂, …, Aₙ (n ≥ number of batches). {% endstep %}

{% step %}

Initial state

Before round 1, all ARC is in A₁. {% endstep %}

{% step %}

Batch 0 distribution

The distributor calls distributeYieldWithLimit(); batch 0 pays A₁. {% endstep %}

{% step %}

Transfer to next controlled address

The attacker immediately moves all ARC from A₁ → A₂. {% endstep %}

{% step %}

Batch 1 distribution

The distributor calls the function again (batch 1); A₂ now earns again. {% endstep %}

{% step %}

Repeat

Repeat the transfer between batches until all batches are processed. {% endstep %}

{% step %}

Result

Honest users receive a much smaller amount than they should; the attacker captures an improperly high amount of yield. {% endstep %} {% endstepper %}

The original report as published on Immunefi, by jovi. 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 distribution reads live balances per batch instead of using a snapshot taken before distribution began, and there is no cooldown or checkpoint on transfers between batches.

Impact

The attacker could capture an improperly high share of yield, so honest users receive much less than they should.

What the attacker needed

Control of several addresses; each address holds at least 1 wei of ARC; ability to transfer between batches

The fix

The distribution should use a balance snapshot taken before the first batch, or enforce a cooldown or checkpoints on transfers between batches.

How it was found

  1. Set up several controlled addresses that each hold at least a tiny amount of the token.
  2. Before the first batch, keep all tokens in the first controlled address.
  3. The distributor runs the first batch, which pays the first address.
  4. Immediately move all tokens from the first address to the second controlled address.
  5. The distributor runs the next batch, and the second address now earns again.
  6. Repeat the transfer between batches until all batches are processed.

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 token contract pays out rewards to holders in several rounds, and each round looks at who holds tokens at that moment. If you can move your tokens to a new address between rounds, the same tokens get counted again in the next round. The attacker does this repeatedly to collect rewards many times over, leaving less for everyone else.

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 jovi

View all

25 more disclosed reports, best first.

More from Plume Network

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.