Unable to redeem from Notional
The maxRedeem function in Redeemer.sol only reports the contract's own balance of PT tokens and never actually redeems them from Notional. As a result, a user cannot redeem their PT through Redeemer.sol, leaving funds stuck.
Submitted by dipp, also found by cccz, cryptphi, datapunk, hyh, kenzo, Lambda, and WatchPug
The maxRedeem function is a view function which only returns the balance of the Redeemer.sol contract. After this value is obtained, the PT is not redeemed from Notional. The user will be unable to redeem PT from Notional through Redeemer.sol.
Proof of Concept
Notional code:
function maxRedeem(address owner) public view override returns (uint256) {
return balanceOf(owner);
}
Recommmended Mitigation Steps
Call redeem from Notional using the amount from maxRedeem as the shares input after the call to maxRedeem.
Should be high severity as affects user funds.
gzeoneth (judge) increased severity to High
sourabhmarathe (Illuminate) confirmed and commented
This is confirmed as a high-risk issue.
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 maxRedeem view function was implemented as a simple balance lookup instead of triggering Notional's redeem call, so the redemption step is missing entirely.
Impact
Users are unable to redeem PT from Notional through Redeemer.sol, which the wardens and judge treated as a high-severity issue affecting user funds.
What the attacker needed
User holds PT tokens; Redeemer.sol integrated with Notional
The fix
The Redeemer should call Notional's redeem function using the amount returned by maxRedeem as the shares input after calling maxRedeem.
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 called Redeemer is meant to let users swap a token (PT) back for its underlying value through another service, Notional. The function that is supposed to report how much a user can redeem only looks at the contract's own token balance and never asks Notional to actually redeem anything, so the redemption never happens.
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.