Redeems through RedeemQueue avoid paying management and performance fee
Shares queued for redemption are burned immediately, removing them from activeShares, but the underlying funds remain in the vault until the next report. This allows users to avoid management and performance fees for the period between the last fee accrual and the report handling.
bughuntoor Follow with t.aksoy and tedox
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-07-mellow-flexible-vaults-judging/issues/491
Found by
bughuntoor, t.aksoy, tedox
Summary
When a user calls redeem, the amount of shares they want to redeem is immediately burned, effectively removing the shares from activeShares
IShareManager shareManager_ = IShareManager(IShareModule(vault_).shareManager());
shareManager_.burn(caller, shares);
{
IFeeManager feeManager = IShareModule(vault_).feeManager();
uint256 fees = feeManager.calculateRedeemFee(shares);
if (fees > 0) {
shareManager_.mint(feeManager.feeRecipient(), fees);
shares -= fees;
}
}
However, although the shares are burned, the funds actually remain within the vault up until a report is handled and it handles said redeems. For these reasons these funds should also be subject to performance and management fees (both for the time period between last fee accrual and creating redeem request and also after creating redeem request and up to report handling.
As the code does considers for totalShares only the allocated and minted shares, but not the ones waiting in redeem queue, the shares in redeem queue effectively bypass the necessary fees.
Root Cause
Flawed logic.
Code
Attack Path
- Reports are handled once a day.
- Last report is at 00:00.
- User creates a redeem request at 12:00. (12 hours since last report)
- A new report comes at 00:00 (24 hours since previous report).
- The user claims their redeem and does not pay any fees for the past day.
Impact
Loss of vault fees.
PoC
No response
Mitigation
When user creates a redeem request, transfer the fees to the queue contract. Burn the shares only when the request is handled (within _handleReport).
Discussion
sherlock-admin2
The protocol team fixed this issue in the following PRs/commits: https://github.com/mellow-finance/flexible-vaults/pull/29
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 fee calculation only considers allocated and minted shares, not shares waiting in the redeem queue, because those shares are burned immediately upon request.
Impact
The vault loses management and performance fees that should have been charged on the funds during the redemption queue period.
What the attacker needed
A redeem queue exists; user can create redeem request; reports handled periodically
The fix
When a user creates a redeem request, transfer the fees to the queue contract and burn the shares only when the request is handled in _handleReport.
How it was found
- Reports are handled once a day.
- Last report is at 00:00.
- User creates a redeem request at 12:00 (12 hours since last report).
- A new report comes at 00:00 (24 hours since previous report).
- The user claims their redeem and does not pay any fees for the past day.
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 ask to withdraw from a vault, your shares are destroyed right away, but the money stays in the vault until the manager processes withdrawals. Fees are charged based on shares that still exist, so your queued shares are not counted and you pay less fee than you should.
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.