A user's nfts can be frozen to protocol when he deposits too many nfts.
LendingPool.sol#depositNFT() function is as follows.
As we can see above, maximum count of user's nfts is not limited.
So following LendingPool.sol#getUserCollateralValue() function can be always reverted because of too big count of nfts array.
Therefore, critical user's call such as withdrawNFT(), borrow(), initiateLiquidation() function is reverted.
Then, user's collateral is frozen to protocol.
Mannual review
Add a check that the count of user's nfts does not exceed maximum count.
LightChaser L-36 and M-02 covers it.
LightChaser L-36 and M-02 covers it.
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.