Skip to content
Business logic Audit finding Intermediate

fulfillRedeem may corrupt share price and allow over-redemption of assets

Audittens Follow with 0xG0P1, 0xSecurious and 7 others

Originally disclosed on Code4rena

Submitted by Audittens, also found by 0xG0P1, 0xSecurious, 0xSeer, blockace, dee24, Dest1ny_rs, EPSec, s4bot3ur, and slvDev

The share price of ShareTokenUpgradeable is computed as:

  • sharePrice ≈ normalizedAssets / circulatingSupply
  • normalizedAssets = Σ max(0, asset.balanceOf(vault) - pendingDepositAssets - claimableRedeemAssets - cancelDepositAssets) + investmentAssets
  • circulatingSupply = supply - Σ claimableRedeemShares

Typically this calculation is correct. However, there is an edge case: when asset.balanceOf(vault) < pendingDepositAssets + claimableRedeemAssets + cancelDepositAssets, expression asset.balanceOf(vault) - pendingDepositAssets - claimableRedeemAssets - cancelDepositAssets is negative, so max(0, …) evaluates to 0. In this case, normalizedAssets is larger than it should be but circulatingSupply is correct. Therefore, share price becomes inflated.

This edge case appears when investment manager fulfills redeem, but assets existing directly in this vault balance are not enough to cover it (because many assets are in other vaults or in investment).

Misbehavior scenario

  1. Alice and Bob deposit 1000 assets each.

  2. Investment manager invests these 2000 assets.

  3. Alice and Bob request redeeming all their shares.

  4. Investment manager fulfills Alice’s redeem.

  5. Now:

    asset.balanceOf(vault) = 0
    claimableRedeemAssets = 1000
    investmentAssets = 2000
    normalizedAssets = max(0, 0 - 1000) + 2000 = max(0, -1000) + 2000 = 0 + 2000 = 2000
    ----------------------------------------------
    supply = 2000
    claimableRedeemShares = 1000
    circulatingSupply = 2000 - 1000 = 1000
    ----------------------------------------------
    sharePrice = normalizedAssets / circulatingSupply = 2000 / 1000 = 2 instead of 1
    
  6. Investment manager fulfills Bob’s redeem, and Bob gets more assets because of inflated share price.

  7. Investment manager withdraws all investment.

  8. Now Bob completes redeem, and gets more assets than he should.

Impact

Inflated share price causes direct loss of funds:

  • Depositors will receive less shares than expected;
  • Some redeemers will receive more assets than expected;
  • When all assets are exhausted, other redeemers will receive nothing.

Recommended mitigation steps

Either:

  • Make ERC7575VaultUpgradeable.totalAssets() return int256 instead of uint256 and remove the balance > reservedAssets condition; or
  • In ERC7575VaultUpgradeable.fulfillRedeem(), check that assets <= totalAssets().

View detailed Proof of Concept


The original report as published on Code4rena, by Audittens. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A medium-severity business logic bug in SukukFi. Code4rena made it public on 14 April 2026. Found in the 2025-11-sukukfi audit contest (finding M-03), also found by 9 other wardens.

About Business logic

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

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 Audittens

View all

19 more disclosed reports, best first.

More from SukukFi

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.