20,000 USDC
View results
Submission Details
Severity: high

Possible Read-Only Reentrancy

Vulnerability Details

the borrow function sends the loan to the user before actually collecting the collateral from the user, this gives the user the opportunity to re-enter the contract and execute extra parts with the already-gotten loan without actually transferring the collateral to the protocol yet

Impact

Malicious actors have the opportunity to re-enter the contract and perform malicious actions with the already-gotten loan without actually transferring the collateral to the protocol yet

Tools Used

Manual Review

Recommendations

transfer the collateral tokens from the borrower to the contract first before giving the borrower the loan

Support

FAQs

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