This repository has been archived by the owner on Jan 12, 2025. It is now read-only.
smbv-1923 - DOS attack while using repayBorrowWithPermit()
#112
Labels
Non-Reward
This issue will not receive a payout
smbv-1923
Medium
DOS attack while using
repayBorrowWithPermit()
Summary
repayBorrowWithPermit()
Vulnerability Detail
repayBorrowWithPermit()
expects the holder to sign their tokens and provide the signature to contract as part of permitData.repayBorrowWithPermit()
transaction is in the mempool, an attacker can take this signature, call the permit function on the token themselves.Impact
repayBorrowWithPermit()
fail.Code Snippet
Tool used
Manual Review
Recommendation
repayBorrowWithPermit()
function, check if it has the approval it needs. If not, then only submit the permit signature.Duplicate of #65
The text was updated successfully, but these errors were encountered: