In the LendingPool contract there is a condition in the borrow
and withdrawNFT
functions to check that user can only borrow 80% of collaterals value, but the condition is wrong, it lets the user borrow 125% of their collaterals value.
PoC:
This test can be added to the "Borrow and Repay" section of the LendingPool.test.js file
Attacker can steal funds.
Manual review + hardhat tests.
For the withdrawNFT function:
And for the borrow function:
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.