Lender: no check for paused market on mint
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
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.