No check in auction() for the collateralization ratio
Internal pre-conditions
A loan has generated more debt than the collateral of the loan
External pre-conditions
No external pre-conditions
Attack Path
Not an attack path but the scenario that will happen:
A loan is listed for auction - loan has generated 20 debt which makes the total debt 120 since the original loan was 100 (excluding protocol fees while including them makes this even more likely)
Loan had a 100% CR so it has 100 collateral
The new loan created through auction() is now with loan amount equal to 120 (or more if we include protocol fees) and 100 collateral which is severely undercollateralized
Everything passes and loan is created as there is no check disallowing that
Impact
Undercollateralized loans are possible which is unhealthy for the system
000000
Medium
auction()
allows for undercollateralized loansSummary
auction()
allows for undercollateralized loansRoot Cause
No check in
auction()
for the collateralization ratioInternal pre-conditions
External pre-conditions
No external pre-conditions
Attack Path
Not an attack path but the scenario that will happen:
auction()
is now with loan amount equal to 120 (or more if we include protocol fees) and 100 collateral which is severely undercollateralizedImpact
Undercollateralized loans are possible which is unhealthy for the system
PoC
No response
Mitigation
No response