User can take out undercollateralized loam from pool effectively stealing funds from the protocol.
To borrow tokens, first user needs to deposit house NFT. To take out a loan with NFT as collateral user has to call borrow function. The issue with borrow function is that, it incorrectly validates the Health Factor after to loan is taken out. As a result user can steal money from the protcol.
liquidationThreshold is set to 80% in BPS which means that user only needs to have 80% of the collateral to take out the loan. This set up allows user to take out undercollateralized loans.
User can steal tokens from protocol using undercollateralized loans.
Manual Review, Hardhat
To fix this issue you should change the collateral value check. DIvide user debt by liquidation threshold instead of multiplying.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.