Submitted by kirk-baird, also found by cccz, kenzo, and unforgiven
Lender.mint() may use p = 0 which will mean principal is the same as principalToken(u, m) i.e. the Illuminate PT. The impact is we will transfer some principal to the Lender contract and it will mint us an equivalent amount of principal tokens.
This can be repeated indefinitely thereby minting infinite tokens. The extra balance will be store in Lender.
This is rated high as although the attacker does not receive the extra tokens stored within the Lender they may be consumed via any contract which has been approved via the approve() functions (e.g. Redeemer).
Lender.mint()
Steps:
In Lender.mint() ensure p != uint8(MarketPlace.Principals.Illuminate)) .
gzeoneth (judge) decreased severity to Medium and commented:
 sourabhmarathe (Illuminate) disagreed with severity and commented:
