A whale adversary can grief the redeem functionality through redeem limit consumption
The redeem limit counter is incremented when a redeem request is created but never decremented when the request is withdrawn or rejected. An attacker with a large YUSD balance can repeatedly create redeem requests to exhaust the limit, preventing legitimate users from redeeming until the period resets.
0xDLG Follow with 0xJoyBoy03, 0xNForcer and 15 others
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-04-aegis-op-grant-judging/issues/497
This issue has been acknowledged by the team but won't be fixed at this time.
Found by
0xDLG, 0xJoyBoy03, 0xNForcer, 0xbakeng, 0xc0ffEE, Ikigai, Ironsidesec, OpaBatyo, farman1094, gkrastenov, hildingr, iamandreiski, itsgreg, mahdikarimi, phoenixv110, ptsanev, vinica_boy, xAlismx
Summary
The failure to not account redemptions into the limit after the transaction has been approved can lead to griefing attempts by users with sizeable YUSD token balance meanwhile the redemption can still expire.
Root Cause
In AegisMinting.sol:785-802, the _checkMintRedeemLimit function increments limits.currentPeriodTotalAmount when a user creates a redeem request, but neither the withdrawRedeemRequest function (lines 373-390) nor the _rejectRedeemRequest function (lines 702-711) decrements this counter when YUSD is returned to the user.
function _checkMintRedeemLimit(MintRedeemLimit storage limits, uint256 yusdAmount) internal {
// ... validation checks ...
limits.currentPeriodTotalAmount += yusdAmount; // Incremented but never decremented on withdraw/reject
}
Internal Pre-conditions
N/A
External Pre-conditions
- Adversary needs to have enough YUSD tokens to make redeem requests that approach redeemLimit.maxPeriodAmount.
Attack Path
- Adversary identifies the current redeemLimit.maxPeriodAmount and redeemLimit.periodDuration.
- Adversary creates multiple valid Order structs for OrderType.REDEEM with different nonces and additionalData (to create unique request IDs).
- Attacker obtains valid signatures for these orders from the trustedSigner.
- Attacker calls requestRedeem with these orders multiple times, locking YUSD each time.
- Attacker continues step 4 until redeemLimit.currentPeriodTotalAmount approaches redeemLimit.maxPeriodAmount.
- The limit available for redeem is now almost exhausted for the current period.
- Any user (including legitimate users) calling requestRedeem for more than the small remaining limit will have their transaction revert with LimitReached error.
- After order.expiry has passed, the attacker calls withdrawRedeemRequest for each request.
- The attacker receives back all their locked YUSD, but redeemLimit.currentPeriodTotalAmount remains unchanged.
- The DoS persists until the current period ends and redeemLimit resets naturally.
Impact
Legitimate users cannot execute the core functionality of requesting a redeem (requestRedeem) for the duration of the limit period under attack. This DoS prevents users from exiting their positions when desired, which could lead to financial loss if users need to redeem during specific market conditions. The attacker only temporarily locks their funds and loses nothing but gas fees in the process.
PoC
Check Attack Path
Mitigation
Adjust for the limit after the redemption has actually been approved to ensure whales have fully commited with redeeming.
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 redeem limit counter is incremented on request creation but not decremented when a request is withdrawn or rejected.
Impact
Legitimate users cannot request a redeem for the duration of the limit period, which could lead to financial loss if they need to exit during specific market conditions; the attacker only temporarily locks funds and loses nothing but gas fees.
What the attacker needed
Adversary has enough YUSD tokens; Adversary can obtain valid signatures from trustedSigner
The fix
The redeem limit should be adjusted only after the redemption has actually been approved, so that withdrawn or rejected requests do not consume the limit.
How it was found
- Adversary identifies the current redeemLimit.maxPeriodAmount and redeemLimit.periodDuration.
- Adversary creates multiple valid Order structs for OrderType.REDEEM with different nonces and additionalData (to create unique request IDs).
- Attacker obtains valid signatures for these orders from the trustedSigner.
- Attacker calls requestRedeem with these orders multiple times, locking YUSD each time.
- Attacker continues step 4 until redeemLimit.currentPeriodTotalAmount approaches redeemLimit.maxPeriodAmount.
- After order.expiry has passed, the attacker calls withdrawRedeemRequest for each request.
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.
A smart contract lets users request to exchange a token (YUSD) for another asset, but it has a cap on how much can be redeemed in a period. The contract counts each request against the cap but forgets to subtract it if the request is later cancelled. Someone with a lot of tokens can make many requests to fill the cap, then cancel them all, leaving the cap full and blocking others from redeeming.
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.