Skip to content

Sherlock

Cooler Update

Every publicly disclosed report for Cooler Update and what kind of bugs they were.

disclosed reports
17
most reported class
Business logic
bug classes found
4
first disclosure
2023
Find Cooler Update on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Cooler Update chose to make public.

Business logic

Clearinghouse.sol#claimDefaulted()

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.

Cooler Update

High
Business logic

gOhm stuck forever if call claimDefaulted on Cooler directly

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.

Cooler Update

Medium
Access control

`emergency_shutdown` role is not enough for emergency shutdown

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.

Cooler Update

Medium
Business logic

isCoolerCallback can be bypassed

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.

Cooler Update

High
Business logic

Loan is rollable by default

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.

Cooler Update

Medium
Audit finding

DAI/gOHM exchange rate may be stale

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.

Cooler Update

Medium
Smart contracts

Use safeTransfer/safeTransferFrom consistently instead of transfer/transferFrom

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.

Cooler Update

High
Business logic

Fully repaying a loan will result in debt payment being lost

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.

Cooler Update

High
Business logic

`Cooler.roll()` wouldn't work as expected when `newCollateral = 0`

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.

Cooler Update

Medium
Business logic

Loans can be rolled an unlimited number of times

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.

Cooler Update

High
Business logic

Lender force Loan become default

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.

Cooler Update

High
Business logic

Dust amounts can cause payments to fail, leading to default

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.

Cooler Update

Medium