The repay function allows any user to settle another's loan.
Without an explicit check, if a user mistakenly repays another's loan, they inadvertently lose tokens loanToken.
This design flaw exposes users to unintended financial consequences.
Users might accidentally repay someone else's loan, leading to unexpected financial losses.
A thorough review of the code base was conducted to identify this issue.
Add the following check:
if (loan.borrower == msg.sender) revert Unauthorized();
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.