This repository has been archived by the owner on Apr 28, 2024. It is now read-only.
kutugu - takeOverDebt does not have expiration time protection #134
Labels
Non-Reward
This issue will not receive a payout
kutugu
medium
takeOverDebt does not have expiration time protection
Summary
takeOverDebt, borrow, and repay are all important entrances for users to interact with funds. On low-throughput networks such as Ethereum, expiration time protection should be added to prevent transactions from staying for a long time before being executed, consuming users' funds beyond expectations.
However, only borrow and repay in the contract have expiration time protection, but takeOverDebt does not.
Vulnerability Detail
takeOverDebt will transfer ownership based on the current status of the loan. The user needs to transfer the required collateral and feeDebt to the contract to take over the loan.
takeOverDebt does not add expiration time protection, and the transaction may not be executed until a long time later. At this time, the funds required by the user may be far more than expected, and the loan may continue to depreciate as a non-performing asset, resulting in capital losses.
Impact
User transactions may take a long time to be executed, and the funds spent may be far more than expected. And loans, as non-performing assets, may lead to financial losses.
Code Snippet
Tool used
Manual Review
Recommendation
Add expiration time protection for takeOverDebt
The text was updated successfully, but these errors were encountered: