Skip to content
Business logic Audit finding Intermediate

Stale Redemption Liabilities Lead to Leveraged Losses for Remaining Shareholders and Potential Denial of Service

When a redemption request is fulfilled, the asset amount is fixed at the current price-per-share, but the user can delay claiming it. If the vault later suffers a loss, the fulfilled user is protected while remaining shareholders absorb the entire loss, potentially causing insolvency.

farismaulana Follow with Audittens, Ekene and 4 others

Originally disclosed on Code4rena

Submitted by farismaulana, also found by Audittens, Ekene, h2134, jo13, Noro, and Valves

  • src/ERC7575VaultUpgradeable.sol #L831
  • src/ERC7575VaultUpgradeable.sol #L1208
  • src/ShareTokenUpgradeable.sol #L369-L390
  • src/ShareTokenUpgradeable.sol #L603-L620

When a user request redeem and then fulfilled by the investment manager, there is no expiration or repricing happening. The function calculates the PPS (price-per-share) at the time fulfillRedeem is called but there is no obligation for the user to immediately call redeem or withdraw to execute the redemption because of the way async functionality is implemented.

ERC7575VaultUpgradeable.sol#L822C1-L837C84

    function fulfillRedeem(address controller, uint256 shares) public nonReentrant returns (uint256 assets) {
...
@>      assets = _convertToAssets(shares, Math.Rounding.Floor);

        $.pendingRedeemShares[controller] -= shares;
        $.claimableRedeemAssets[controller] += assets;
        $.claimableRedeemShares[controller] += shares;
        $.totalClaimableRedeemAssets += assets;
        $.totalClaimableRedeemShares += shares; // Track shares that will be burned

Notice that in the snippet above, the _convertToAssets would be called to calculate how many assets the user would have using PPS at the time that the function is called.

If we dig deeper, the function would go into ShareTokenUpgradeable::getCirculatingSupplyAndAssets to determine how much shares supply and total assets are used in the _covertToAssets.

Assets that are still in rBalance also would be used as an asset.

    function _calculateInvestmentAssets() internal view returns (uint256 totalInvestmentAssets) {
...
        // Get our balance of investment ShareToken (already normalized to 18 decimals)
        totalInvestmentAssets = IERC20(investmentShareToken).balanceOf(address(this));

        // Add rBalanceOf (reserved balance) if the investment share token supports it
        try IWERC7575ShareToken(investmentShareToken).rBalanceOf(address(this)) returns (uint256 rShares) {
@>          totalInvestmentAssets += rShares;
        } catch {
            // If rBalanceOf is not supported, continue with regular balance only
        }
    }

If the investment is in profit and some user redeem is fulfilled, the PPS used would be high.

The issue is that profit is not certain, there are fluctuations. If at first month the deal profited 10% and some user redeem request fulfilled, they would get good PPS even though they didn’t execute the redemption and basically their asset is still in the vault. The next month, if there is loss and making the initial investment amount is at 2% profit cumulatively, the last user will not be able to realize the fair value of their shares.

To clearly show the scenario, we can look at the issue like this:

  1. A user requests redemption during a profitable period (High PPS).
  2. The Manager fulfills the request, locking in the high payout value.
  3. The user can delay the final withdraw execution or execute it right away. Fulfilled user is protected.
  4. If the vault subsequently suffers a loss (drawdown), the fulfilled user is protected, as their claim is now a fixed value from step 2.
  5. This forces the remaining shareholders to absorb 100% of the loss (leveraged loss), potentially leading to vault insolvency where TotalAssets < TotalClaimableLiabilities.

The impact for this issue is:

  1. A race condition for executing withdrawing a fulfillment, because the last user would be unable to fully redeem their full shares.
  2. Thus leading to a potential insolvency.

Recommended mitigation steps

There are a few recommended options:

  1. The final redeem or withdraw should be repriced at the PPS value and not locked at fulfillment call.
  2. Make the fulfill function instantly send the asset to requester, or make the fulfill have expired time so it needs to be executed immediately by user. This still respects the async functionality.
  3. Localize each rBalance change per epoch, so fulfillment is using the same rate for everyone. Making it per epoch would ensure each request and fulfillment has the same containerized asset and rBalance profit/loss does not overlap each other.

View detailed Proof of Concept

SukukFi disputed and commented:

We understand your point regarding the “profit cancellation” and how it impacts the remaining users. However, we consider this to be the strict, intended behavior dictated by the EIP-7540 (Asynchronous Tokenized Vaults) standard, which our protocol implements.

The architecture of EIP-7540 relies entirely on the clear separation between the Pending state and the Claimable state:

  1. The Static Nature of Claimable Assets Under EIP-7540, once a redemption request transitions to the Claimable state, the share-to-asset conversion is finalized. At that exact moment, the user is owed a fixed, static amount of assets. Because they are fully removed from the vault’s risk pool, they no longer earn yield, but symmetrically, they are strictly shielded from any subsequent NAV drops or “profit cancellations.”
  2. Repricing Violates the Standard The auditor’s core suggestion—that the final redeem() or withdraw() should be repriced at execution rather than locked at fulfillment—would explicitly violate EIP-7540. If a user’s Claimable balance continued to float with the vault’s NAV, there would be no functional economic distinction between the Pending and Claimable states. The entire purpose of the async standard would be defeated.
  3. Standard Async Mechanics What the finding identifies as a vulnerability is simply the reality of an asynchronous state transition. Moving from a risk-on, yield-bearing state to a risk-off, static state mandates that subsequent market fluctuations (including profit cancellations) only affect those remaining in the risk pool. This is the fundamental trade-off of the EIP-7540 lifecycle.

Because our protocol is built to strictly adhere to the EIP-7540 specification, mitigating this by repricing claimable assets or forcing instant execution would break our compliance with the standard.

We will gladly follow your suggestion and mark this finding as Acknowledged, treating it as an accepted design mechanic mandated by the ERC standard.


The original report as published on Code4rena, by farismaulana. 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.

How it worked

Root cause

The redemption amount is locked at fulfillment without repricing or expiry, so later losses are borne entirely by remaining shareholders.

Impact

Remaining shareholders could suffer leveraged losses and the vault may become insolvent, though the protocol disputes this as intended EIP-7540 behaviour.

What the attacker needed

Vault has profitable period; user requests redemption; manager fulfills request; vault later suffers loss

The fix

The final redeem or withdraw should be repriced at the current PPS, or fulfillment should expire or instantly send assets, or rBalance changes should be localized per epoch.

How it was found

  1. A user requests redemption during a profitable period (High PPS).
  2. The Manager fulfills the request, locking in the high payout value.
  3. The user can delay the final `withdraw` execution or execute it right away. Fulfilled user is protected.
  4. If the vault subsequently suffers a loss (drawdown), the fulfilled user is protected, as their claim is now a fixed value from step 2.
  5. This forces the remaining shareholders to absorb 100% of the loss (leveraged loss), potentially leading to vault insolvency where `TotalAssets < TotalClaimableLiabilities`.

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.

In some investment vaults, you ask to take your money out and a manager later approves it. The amount you get is set when approved, but you can wait to actually collect it. If the vault loses value after approval, you still get the higher amount, and the other investors bear the loss.

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 farismaulana

View all

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