Closed code423n4 closed 1 year ago
The first liens don't need to check max potential debt because there's no debt in existence.
Max potential debt doesn't It include the value of the new lien only the value of liens already open.
Picodes marked the issue as duplicate of #147
Picodes marked the issue as unsatisfactory: Invalid
Lines of code
https://github.com/code-423n4/2023-01-astaria/blob/1bfc58b42109b839528ab1c21dc9803d663df898/src/LienToken.sol#L459-L495
Vulnerability details
Impact
Illegal liquidationInitialAsk and maxPotentialDebt may result in bids amount do not cover the debt
Proof of Concept
With the current implementation, the first LienToken does not check liquidationInitialAsk and maxPotentialDebt
Tools Used
Recommended Mitigation Steps
need check when first LienToken