Skip to content
Business logic Audit finding Intermediate

Lender: no check for paused market on mint

kenzo Follow

Originally disclosed on Code4rena

Submitted by kenzo, also found by bardamu, csanuragjain, and IllIllI

Lender’s mint function does not check whether the supplied market is paused.

Impact

Even if a market is paused due to insolvency/bugs, an attacker can issue iPTs.

This renders the whole pause and insolvency protection mechanism ineffective. See POC.

Proof of Concept

Let’s say market P has become insolvent, and Illuminate pauses that market, as it doesn’t want to create further bad debt.

Let’s say P’s principal tokens’s value has declined severely in the market because of the insolvency.

An attacker can buy many worthless P principal tokens for cheap, then call Lender and mint from them iPT.

The attacker is now owed underlying which belongs to the legitimate users. There won’t be enough funds to repay everybody.

Recommended Mitigation Steps

Check in mint that the market is not paused.

sourabhmarathe (Illuminate) confirmed


The original report as published on Code4rena, by kenzo. 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.

What is known

A high-severity business logic bug in Illuminate contest. Code4rena made it public on 23 August 2022. Found in the 2022-06-illuminate audit contest (finding H-09).

About Business logic

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

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 kenzo

View all

53 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.