The commitCollateral function in CollateralManager does not check if the loan is active, allowing a borrower to add a malicious token as collateral after the loan is accepted. This can block liquidation because the escrow transfer of the malicious token reverts, enabling the borrower to demand a ransom.
The CollateralManager contract overwrites the stored collateral amount when a duplicate collateral is committed for the same bid. A malicious borrower can front-run a lender's acceptance of the bid by updating the committed collateral to a minimal amount, causing the lender to accept the bid with almost no collateral and lose the lent funds.
The bid submission function reads market parameters such as payment cycle and default duration from a registry controlled by the market owner, so a market owner can change these settings while a bid transaction is pending. An evil market owner could set the default duration to zero, accept the bid, and immediately liquidate the loan to seize the borrower's collateral.
The contract records the full amount of collateral deposited, but fee-on-transfer tokens cause the actual received amount to be less. When the borrower repays, the contract tries to withdraw the recorded amount, which exceeds the actual balance, causing the transaction to revert and blocking repayment.
A malicious market owner or protocol owner can front-run a lender's call to lenderAcceptBid by raising the marketplace or protocol fee to 100%, causing the lender to lose all funds. The attacker can steal the lender's entire principal.
The commitCollateral function in CollateralManager lacked access control, allowing anyone to add collateral to any bid. An attacker could front-run a lender and add a malicious token that, once paused, would block liquidations and loan repayment, enabling ransom of locked funds.
The liquidation check in TellerV2 uses the time since the last repayment rather than the payment due date, so a borrower who pays early can be liquidated before their next payment is due. An attacker could exploit this to liquidate loans prematurely and profit from the collateral.
The TellerV2 contract's submitBid function allows a borrower to specify an unlimited number of collateral assets, which are later processed in a loop during withdrawal. If too many assets are added, the withdrawal transaction can exceed the block gas limit, preventing borrowers, lenders, or liquidators from retrieving collateral.
The loan default check used when a lender withdraws collateral ignores when the first payment is due, so if the payment default duration is shorter than the payment cycle, the lender can seize the borrower's collateral almost immediately after the bid is accepted. This is especially dangerous when the market operator who sets these parameters is also the lender.
The smart contract functions for calculating the next repayment due date and for checking whether a loan can be liquidated use inconsistent time calculations. This could cause a borrower who repays on time to be liquidated because the liquidation check may trigger earlier than the displayed due date.
The withdraw function in CollateralManager allows anyone to trigger a collateral withdrawal on behalf of the lender when a loan is defaulted, before the liquidation delay period ends. This forces the lender to accept collateral instead of waiting for a potential liquidation, contrary to the intended design.
The updateCommitment function overwrites all commitment data, resetting the maximum principal amount. A malicious borrower can front-run a lender's update with a loan, causing the lender to over-commit funds.
The updateCommitment function checks that the caller is the original lender but does not verify that the new lender in the updated commitment is the same as the original. An attacker can create a commitment, update it to set a different lender, and then use malicious loan parameters to steal funds from that lender.
The updateCommitmentBorrowers function uses the delete keyword on a mapping that contains an EnumerableSet, which does not clear the underlying mapping. As a result, previously removed borrowers remain in the set and can still call acceptCommitment to obtain a loan.
The loan repayment function transfers tokens directly to the lender, so if the lender's address is blacklisted by the token (e.g., USDC), the transfer fails and repayment or liquidation is blocked. A lender can exploit this to prevent repayment and cause the borrower to default, potentially leading to loss of collateral.
The contract stores the lender manager's address in the bid's lender field when a loan NFT is claimed. If the owner later changes the lender manager, repayments for those loans are sent to the old lender manager address instead of the actual lender, causing loss of funds.
The bid submission function did not verify that the referenced market existed, allowing a bid to be created for a non-existent market. When that market was later created, the bid could be accepted but the resulting loan could neither be defaulted/liquidated nor repaid, locking any collateral forever.
The loan repayment calculation incorrectly identifies the last payment cycle for loans whose duration is not a multiple of the payment cycle, causing the borrower to owe the full remaining principal earlier than expected. An attacker could exploit this by liquidating a borrower who has paid on schedule, taking their collateral.
When a loan defaults, the lender can seize the collateral, but the loan's state remains ACCEPTED, so the borrower can keep making payments. An attacker (the lender) could front-run a late payment with a collateral seizure to get both the payment and the collateral.
The loan repayment calculation for the final payment cycle could under-calculate the amount owed, so a borrower paying early in the last cycle might not fully repay the loan. This could leave the loan open and allow the lender to claim the collateral after default.
TE
Teller
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.