Submitted by minhquanym
The function emitLoan() is used to issue a new loan. This function could be called directly by the borrower or by a random address if the borrower has signed the LoanExecutionData.
However, there isnt a check to ensure the signature for the same LoanExecutionData cant be used to execute emitLoan() more than once. As a result, if the borrower repays the loan, an attacker could call emitLoan() again to initiate a new loan.
Consider this scenario:
Add a nonce to ensure a signature cannot be reused.
0xend (Gondi) acknowledged and commented:
0xA5DF (judge) decreased severity to Medium and commented:
0xend (Gondi) commented:
Gondi mitigated:
Status: Mitigation confirmed. Full details in reports from oakcobalt and bin2chen.
