Skip to content
Business logic Audit finding Intermediate

ArcTokenPurchase doesn't allow RWA-token owners to recover accrued yield from stored ArcTokens waiting for sale.

ArcTokenPurchase stores ArcTokens that can accrue yield, but the contract has no mechanism to track or recover that yield. As a result, yield accrued to stored tokens becomes permanently frozen and cannot be attributed back to the original sellers.

valkvalue Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

53016 sc high arctokenpurchase doesn t allow rwa token owners to recover accrued yield from stored arctokens waiting for sale

Submitted on Aug 14th 2025 at 17:03:38 UTC by @valkvalue for Attackathon | Plume Network

Description

Brief / Intro

ArcTokenPurchase.sol can store many ArcToken which can accrue rewards during their period. However, there is no mechanism to recover or properly track yield accrued to those stored ArcTokens, resulting in permanently frozen funds.

Vulnerability Details

ArcTokenPurchase.sol provides functionality for owners of ArcToken (tokenized RWA) to sell their ArcToken for a specific price.

Solidity
    function enableToken(
        address _tokenContract,
        uint256 _numberOfTokens,
        uint256 _tokenPrice
@>> ) external onlyTokenAdmin(_tokenContract) {
.....
  • The same token-admin can withdraw unsold tokens:
Solidity
    function withdrawUnsoldArcTokens(
        address _tokenContract,
        address to,
        uint256 amount
@>> ) external onlyTokenAdmin(_tokenContract) {
        if (to == address(0)) {
            revert CannotWithdrawToZeroAddress();
        }
        if (amount == 0) {
            revert AmountMustBePositive();
        }

        ArcToken token = ArcToken(_tokenContract);
        uint256 contractBalance = token.balanceOf(address(this));
        if (contractBalance < amount) {
            revert InsufficientUnsoldTokens();
        }

        bool success = token.transfer(to, amount);
        if (!success) {
            revert ArcTokenWithdrawalFailed();
        }
    }
  • There is no logic in ArcTokenPurchase to track or recover accrued yield from stored ArcTokens. Yield can be denominated in different tokens (including the ArcToken itself), and yieldTokenAddr may be different per ArcToken. Without tracking which rewards came from which ArcToken, even recovered funds cannot be properly distributed to original sellers — leading to permanent losses.

Impact Details

Funds that accrue as yield to ArcTokens deposited in ArcTokenPurchase can become irrevocably frozen. Because yield tokens can differ per ArcToken and there is no per-token tracking, sellers cannot be made whole and funds may be permanently lost.

References

Proof of Concept

{% stepper %} {% step %}

Step 1

ArcToken-owner calls enableToken and deposits X ArcTokens. {% endstep %}

{% step %}

Step 2

The ArcToken accrues yield for every token holder via distributeYield. {% endstep %}

{% step %}

Step 3

The ArcTokenPurchase contract now holds the yielded funds. {% endstep %}

{% step %}

Step 4

There is no mechanism in ArcTokenPurchase to recover or attribute these yielded funds back to the ArcToken owners. Additionally, yieldTokenAddr can differ per ArcToken, increasing the difficulty and impact of recovery. {% endstep %} {% endstepper %}

Additional notes

<details> <summary>Full relevant code references</summary> </details>

The original report as published on Immunefi, by valkvalue. 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 contract lacks any accounting or withdrawal logic for yield accrued by stored ArcTokens, and yield tokens can differ per ArcToken.

Impact

Yield accrued to ArcTokens stored in ArcTokenPurchase can become permanently frozen, and sellers cannot be made whole.

What the attacker needed

ArcToken owner lists tokens for sale; ArcToken accrues yield while stored

The fix

ArcTokenPurchase should track yield accrued per stored ArcToken and provide a way to recover and distribute it to the original sellers.

How it was found

  1. ArcToken owner calls enableToken and deposits ArcTokens.
  2. The ArcToken accrues yield for every token holder via distributeYield.
  3. The ArcTokenPurchase contract now holds the yielded funds.
  4. No mechanism exists in ArcTokenPurchase to recover or attribute these yielded funds back to the ArcToken owners.

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.

ArcTokenPurchase is a contract where people can list their ArcTokens for sale. While tokens sit in the contract, they can earn extra rewards (yield), but the contract has no way to identify or send those rewards back to the seller. So the rewards get stuck 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 valkvalue

View all

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