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
src/ShareTokenUpgradeable.sol#L710src/ShareTokenUpgradeable.sol#L378-L389src/ERC7575VaultUpgradeable.sol#L1533-L1535src/ERC7575VaultUpgradeable.sol#L1176-L1179src/ERC7575VaultUpgradeable.sol#L822-L841
The share price of ShareTokenUpgradeable is computed as:
sharePrice ≈ normalizedAssets / circulatingSupplynormalizedAssets = Σ max(0, asset.balanceOf(vault) - pendingDepositAssets - claimableRedeemAssets - cancelDepositAssets) + investmentAssetscirculatingSupply = 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
-
Alice and Bob deposit 1000 assets each.
-
Investment manager invests these 2000 assets.
-
Alice and Bob request redeeming all their shares.
-
Investment manager fulfills Alice’s redeem.
-
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 -
Investment manager fulfills Bob’s redeem, and Bob gets more assets because of inflated share price.
-
Investment manager withdraws all investment.
-
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()returnint256instead ofuint256and remove thebalance > reservedAssetscondition; or - In
ERC7575VaultUpgradeable.fulfillRedeem(), check thatassets <= totalAssets().
View detailed Proof of Concept
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.