The Settlement contract's signature hash omits the chain ID and contract address, so an operator signature from one chain validates on another deployment. An attacker could replay a legitimate settlement on a different chain, causing unauthorised settlements.
The Settlement contract lets the owner change the minimum debt value instantly, with no timelock. Raising this threshold can turn a loan that would only be partially liquidated into one that must be fully liquidated, so borrowers can lose their whole collateral without warning.
The createSettlement function does not check that the loan ID array and the loan data array have the same length, so a caller can pass more loan entries than IDs. The signature covers both full arrays, but the processing loop only iterates over the IDs, so extra signed loans are silently skipped and the settlement is only partially executed.
The addCollateralBeforeSettle function checks the caller's token allowance instead of the borrower's allowance, so any user can increase a loan's collateral requirement without the borrower having approved the extra tokens. This causes settlement to fail when the borrower's actual allowance is insufficient, breaking core lending functionality.
Several loan operations in the Settlement contract do not check whether a loan has been settled, so they can be called on loans that have not gone through the settle() function. An attacker could call liquidate() on an unsettled loan to take collateral tokens from the lender, or use other operations to corrupt loan state.
The addCollateral function transfers collateral tokens to the lender immediately while also increasing the recorded collateral amount, so during settlement the borrower must transfer the full inflated amount again. This causes the caller to lose tokens with no compensation and the borrower to pay twice, benefiting the lender.
The report is an insight, not a demonstrated vulnerability: the createSettlement function in a settlement contract lacks input validation on values such as fee amount, taker amount, maturity versus expiry, and matching array lengths. The author argues these checks should be added even though an operator reviews inputs before signing, but no exploit or concrete impact is shown.
The repay function in the settlement contract has no check on the loan's maturity timestamp, so a borrower can repay and close a position after the maturity date has passed. This lets a borrower front-run a liquidation attempt and delete the loan, causing the liquidation call to fail.
The removeCollateral function in the Settlement contract lacks a check for whether a loan position has been settled or has expired. A malicious borrower can wait for the collateral price to rise, then call removeCollateral on an unsettled or expired position to withdraw collateral from the lender without repaying the debt.
The addCollateralBeforeSettle function can be called by anyone to increase a loan's collateral amount without transferring tokens, and if the increased amount exceeds the borrower's balance, the subsequent settlement transfer fails, permanently blocking settlement. An attacker can thus break the core settlement mechanism and potentially cause protocol insolvency by preventing fees from being collected.
A settlement created by a lender can be left unexecuted by the borrower until it expires, after which the borrower can liquidate the matured loan and take the lender's collateral plus the liquidation incentive. This lets the borrower profit at the lender's expense and can also break the lender's other loan positions.
The repay function lets any caller repay a loan, and it reverts if the repayment amount exceeds the remaining debt. An attacker can front-run a borrower's full repayment with a tiny repayment, so the borrower's larger amount now exceeds the reduced debt and reverts, causing griefing and possible liquidation.
TS
Term Structure Institutional
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.