The Clearinghouse contract's claimDefaulted function did not verify that the loans passed to it were originated by the Clearinghouse itself. An attacker could mix in self-created loans with tiny collateral to inflate the keeper reward calculation and steal gOhm from the contract.
The Clearinghouse contract calls the minter's burn function without first granting it an allowance over the OHM tokens it holds, so the burn always fails. As a result, the claimDefaulted function always reverts and defaulted loans cannot be processed through this path.
The Cooler contract's claimDefaulted function can be called by anyone, and when a loan owned by the Clearinghouse defaults, the collateral (gOhm) is sent to the Clearinghouse but cannot be recovered or burned. An attacker can easily cause all defaulted gOhm to become permanently stuck.
A lender could front-run a borrower's transaction to accept new loan terms, replacing the proposed terms with an extremely high interest rate. The borrower would then unknowingly accept the unfavourable terms and overpay interest.
The rollLoan function could be called by anyone, allowing a lender to set unfavourable new terms and force the borrower into a loan with excessive interest and collateral requirements. The borrower would then have to repay far more than expected or forfeit their collateral.
The emergency shutdown function is guarded by the emergency_shutdown role but internally calls a defund function that requires the cooler_overseer role, so an address holding only the shutdown role cannot actually shut the protocol down. The intended fast-response multisig would therefore be unable to act in an emergency unless it also held the overseer role.
The Cooler contract's clearRequest function checks that the lender implements the CoolerCallback interface by calling isCoolerCallback(), but a malicious contract can simply return true without implementing the required callback functions. This allows a lender to force a loan into default by making repayLoan and rollLoan revert, enabling the lender to claim the borrower's collateral.
The claimDefaulted function deletes loan data without first processing any unclaimed tokens, so the lender cannot later retrieve those tokens. An attacker could call claimDefaulted while unclaimed tokens exist, causing the lender to lose access to them.
The loan contract sets the rollable flag to true by default when a new loan is created, allowing a borrower to extend the loan before the lender can disable it. This gives the borrower an unfair advantage if the lender did not intend to allow rolling.
The ClearingHouse contract uses a hard-coded maximum loan-to-collateral ratio (maxLTC) that assumes a fixed DAI/gOHM exchange rate. If the actual price of gOHM deviates from that assumption, the contract may approve under-collateralised loans, allowing borrowers to default profitably.
The contract uses transfer/transferFrom without checking the return value, so tokens that return false on failure (like ZRX) can cause silent failures. In the clear function, a lender could clear a request without providing any debt tokens if the debt token is ZRX.
When a loan is fully repaid, the loan storage is deleted before the debt transfer, causing the lender address to become zero. The debt tokens are then sent to the zero address, resulting in lost funds for the lender.
The roll function transfers additional collateral, but when the calculated new collateral is zero, some tokens revert on zero-value transfers, causing roll to fail. This can also let a borrower extend the loan without cost, delaying the lender's ability to default.
The loan roll function allows a borrower to extend the loan term an unlimited number of times without lender consent, because the lender's toggle to disable rolling cannot prevent multiple rolls in a single transaction. An attacker could roll excessively, forcing the lender to wait indefinitely or suffer losses if collateral depreciates.
Repaying a loan with very small amounts of debt tokens can round the collateral reduction down to zero, so the loan amount shrinks while the collateral stays the same. This can later make the roll function revert because the required new collateral calculation underflows.
The repay function sends the debt token straight to the lender, so if the lender is on the token's blacklist the transfer always reverts. A malicious lender can therefore block repayment and let the loan expire, then take the borrower's collateral.
The repayment function requires the exact remaining loan amount; if a dust payment is sent first, the subtraction underflows and reverts. An attacker can front-run a borrower's final payment with a dust transfer, causing the borrower to default and lose collateral.
CU
Cooler Update
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.