Skip to content
Business logic Audit finding Intermediate

Yield tokens become stuck in arctokenpurchase contract when distributing yield during active sales

When yield is distributed while a token sale is active, the ArcTokenPurchase contract is included in the holders set and receives a share of the yield, which becomes stuck there if the yield token differs from the purchase token. Legitimate holders also receive less yield because the tokens held for sale inflate the effective total supply.

KlosMitSoss Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

53001 sc high yield tokens become stuck in arctokenpurchase contract when distributing yield during active sales

Submitted on Aug 14th 2025 at 16:02:16 UTC by @KlosMitSoss for Attackathon | Plume Network

Description

Brief/Intro

When distributing yield while a sale is active and there is no yield restriction, a portion of the yield will be transferred to the ArcTokenPurchase contract, where the yield will become stuck. Furthermore, legitimate holders will receive a lower share due to the effectiveTotalSupply including the tokens for sale.

Vulnerability Details

Whenever ArcTokens are transferred, the address to which they are sent will be added to the holders set. Before an ArcToken can be enabled for sale, the amount that is going to be offered for sale needs to be sent to the ArcTokenPurchase contract. Otherwise, the following code in ArcTokenPurchase::enableToken() leads to a revert:

Solidity
if (
    ArcToken(_tokenContract).balanceOf(address(this)) < _numberOfTokens
) {
    revert ContractMissingRequiredTokens();
}

https://github.com/immunefi-team/attackathon-plume-network/blob/580cc6d61b08a728bd98f11b9a2140b84f41c802/arc/src/ArcTokenPurchase.sol#L166-L170

As a result, the ArcTokenPurchase contract is added to the holders set before a sale is activated. This means that when yield is distributed while a sale is active, the effectiveTotalSupply will include these tokens. Consequently, other holders will receive fewer yield tokens as a share of the whole amount is transferred to the ArcTokenPurchase contract, where they will become stuck as long as the yield token is not the same token as the purchase token.

To mitigate this, do not add the ArcTokenPurchase contract to the holders set.

Impact Details

A share of the distributed yield is sent to the ArcTokenPurchase contract, where the yield tokens will become stuck. Furthermore, other holders will receive fewer yield tokens due to the effectiveTotalSupply including the ArcTokens that are for sale.

References

Code references are provided throughout the report.

Proof of Concept

{% stepper %} {% step %}

Step

ArcTokens are transferred to the ArcTokenPurchase contract so that a sale can be enabled. This adds the contract to the holders set.

Reference: https://github.com/immunefi-team/attackathon-plume-network/blob/580cc6d61b08a728bd98f11b9a2140b84f41c802/arc/src/ArcToken.sol#L701-L703 {% endstep %}

{% step %}

Step

ArcToken::distributeYield() is called, which distributes yield to token holders. The ArcTokens in the ArcTokenPurchase contract will be included in the effectiveTotalSupply when the contract is not yield-restricted or no yield restriction module is set.

Reference: https://github.com/immunefi-team/attackathon-plume-network/blob/580cc6d61b08a728bd98f11b9a2140b84f41c802/arc/src/ArcToken.sol#L418-L423 {% endstep %}

{% step %}

Step

The ArcTokenPurchase contract will receive its share of the yield token amount being distributed. As a result, other holders will receive fewer yield tokens.

Reference: https://github.com/immunefi-team/attackathon-plume-network/blob/580cc6d61b08a728bd98f11b9a2140b84f41c802/arc/src/ArcToken.sol#L439-L445 {% endstep %}

{% step %}

Step

The yield tokens will become stuck in the ArcTokenPurchase contract when the yield token is different from the purchase token. {% endstep %} {% endstepper %}

The original report as published on Immunefi, by KlosMitSoss. 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 ArcTokenPurchase contract is added to the holders set when it receives tokens for sale, so it is treated as a normal holder during yield distribution.

Impact

A share of the distributed yield is sent to the ArcTokenPurchase contract and becomes stuck there, and other holders receive fewer yield tokens.

What the attacker needed

A token sale is active; yield is distributed; yield token differs from purchase token

The fix

The ArcTokenPurchase contract should not be added to the holders set.

How it was found

  1. Transfer ArcTokens to the ArcTokenPurchase contract so a sale can be enabled, which adds the contract to the holders set.
  2. Call ArcToken::distributeYield() while the sale is active and the contract is not yield-restricted.
  3. The ArcTokenPurchase contract receives its share of the yield tokens, reducing the amount for other holders.
  4. The yield tokens become stuck in the ArcTokenPurchase contract when the yield token is different from the purchase token.

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 (yield) to everyone who holds its tokens. The contract that holds tokens waiting to be sold is also counted as a holder, so it gets a slice of the rewards. That slice cannot be moved out, and real holders get less.

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 KlosMitSoss

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.