Skip to content
Business logic Audit finding Intermediate

Users will be unfairly liquidated if collateral value drops after initiating withdraw request

A user who has started a withdrawal request is blocked from minting new vault shares, so if their collateral value falls during the redemption waiting period they cannot top up their position and may be liquidated. The report claims this leads to a loss of funds to the liquidator.

xiaoming90 Follow

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2025-06-notional-exponent-judging/issues/673

This issue has been acknowledged by the team but won't be fixed at this time.

Found by

xiaoming90

Summary

Root Cause

Internal Pre-conditions

External Pre-conditions

Attack Path

One of the most critical features of the new Notional exponent is that it allows users to initiateWithdraw of their shares while they are being held as collateral on lending protocols.

An important note here is that after a user has initiated a withdrawal, this doesn't mean that the user has exited their positions. In fact, the user have not exited their positions yet, and initiating a withdrawal simply allows the underlying staking tokens assigned to the external protocol's redemption queue in advance so that users can skip the redemption waiting period if they intend to withdraw later (It's up to the users whether they want to exit the position or not).

After a user initiates a withdrawal, a withdrawal request will be created and tagged to their account. If there is a pending withdrawal request, the users can no longer mint any new Yield Strategy vault shares, as shown in Line 197 below.

https://github.com/sherlock-audit/2025-06-notional-exponent/blob/main/notional-v4/src/AbstractYieldStrategy.sol#L197

Solidity
File: AbstractYieldStrategy.sol
191:     function mintShares(
192:         uint256 assetAmount,
193:         address receiver,
194:         bytes calldata depositData
195:     ) external override onlyLendingRouter setCurrentAccount(receiver) nonReentrant returns (uint256 sharesMinted) {
196:         // Cannot mint shares if the receiver has an active withdraw request
197:         if (_isWithdrawRequestPending(receiver)) revert CannotEnterPosition();

Assume that Bob initiates a withdrawal request. It takes 7 days for the withdrawal in the external protocol to be finalized, which is a pretty standard timeframe (e.g., LIDO's wstETH, Ethena's sUSDe).

However, if the price of Bob's position collateral decreases within these 7 days (e.g., Bob's collateral price drops) and his account is on the verge of being liquidated (not yet, but soon), there is no way for Bob to top-up his "margin" or collateral to save his position because he is blocked from doing so due to an existing withdrawal request in his account. As such, he can only watch his position being liquidated by someone else. When his position is liquidated, he will incur a loss as part of his total position's fund is given to the liquidator.

This is a common scenario in which the price of yield tokens gradually decreases over time due to certain unfavorable market conditions. In this case, it is normal that users will want to top up the "margin" of their positions to avoid being liquidated. The "margin" here refers to the collateral value of the position in the context of Morpho's position, but the idea/concept is the same as that of a typical leveraged trading platform.

Note that this is not the intended design of the protocol, as all leveraged products allow their users to top up their margin if it falls close to the liquidation margin or falls below the liquidation margin, so that users can avoid being liquidated. Users will always want to avoid liquidation due to the loss incurred from the liquidation fee or incentive given to the liquidators, and they can only recover a portion of their assets after liquidation.

Impact

High. Loss of funds as shown in the scenario above. A portion of his position's funds is lost to the liquidator.

PoC

No response

Mitigation

No response

Discussion

jeffywu

This is not true. The user can repay their debt directly on Morpho.

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

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 mint function rejects any receiver with a pending withdrawal request, which also blocks the top-up path used to keep a leveraged position healthy.

Impact

A user whose collateral value drops during the withdrawal waiting period could be liquidated and lose part of their funds to the liquidator, though the team notes debt can still be repaid directly on Morpho.

What the attacker needed

An active withdrawal request; collateral value falls during waiting period

The fix

The team declined to fix it, stating that users can repay their debt directly on Morpho instead of topping up through the vault.

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.

When you borrow money against collateral, you sometimes need to add more collateral to avoid being forced to sell at a bad price. This report says a user who has asked to withdraw cannot add more collateral during the waiting period, so they could be forced out of their position. The project team replied that the user can still repay the debt directly on the lending platform.

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 xiaoming90

View all

122 more disclosed reports, best first.

More from Notional Exponent

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.