Skip to content
Business logic Audit finding Intermediate

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.

dipp Follow

Originally disclosed on Code4rena

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.

kenzo (warden) commented:

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.


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

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.

More by dipp

View all

5 more disclosed reports, best first.

More from Illuminate contest

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.