20,000 USDC
View results
Submission Details
Severity: high
Valid

buyLoan() doesn't check if caller is the pool owner

Summary

Caller not being the owner of the pool can cause issues

Vulnerability Details

In buyLoan() of Lender.sol it should be called by the owner of the pool or the lender but it doesnt check if the calleris the pool.lender.

Impact

Can lead to pools buying loans they don't want to.

Tools Used

Manual review

Recommendations

Perform check if (msg.sender == pool.lender)

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.