The DBR contract's interest accrual function updates the last-updated timestamp even when the calculated interest rounds down to zero, allowing a borrower to avoid paying interest by calling the function frequently with small loan amounts. An attacker could split a large loan into many small loans and update them often to pay no interest, though the gas cost likely makes this economically infeasible at present.
The Market contract's withdrawal limit function returns zero when the collateral factor is set to zero, preventing users with any debt from withdrawing collateral. An attacker could not exploit this directly, but a governance action setting the factor to zero would lock withdrawals for at least 64 hours.
The liquidation fee is only paid if the user's escrow balance is at least the calculated fee; otherwise the fee is skipped entirely. An attacker could avoid paying the liquidation fee by ensuring their escrow balance is below the fee amount.
The withdraw function in a lending market lacked reentrancy protection, allowing an attacker to reenter during an ERC777 token transfer hook and withdraw more collateral than permitted while keeping the loan. This could let the attacker drain all collateral from the escrow.
The report describes that a user with a DBR deficit can repay their debt and withdraw all collateral without the forceReplenish function being called, resulting in the Market contract receiving less DOLA than if forceReplenish had been invoked. An attacker could exploit this by simply repaying and withdrawing when no one calls forceReplenish, avoiding the additional debt that forceReplenish would impose.
The liquidation function uses a two-day low exchange rate from the oracle, which an attacker could manipulate for a short period to trigger unfair liquidations and overpay liquidator rewards. The text claims this makes the system highly risky for oracle attacks.
The Oracle contract's viewPrice function does not apply the dampened price mechanism until getPrice is called, so read-only functions that rely on viewPrice return incorrect values. This could lead to users withdrawing wrong amounts or liquidating incorrect debt, or cause reverts.
The smart contract calls ERC20 transfer and transferFrom functions without checking their return values. If a token returns false on failure instead of reverting, the contract may continue as if the transfer succeeded, potentially causing loss of funds or incorrect state.
The liquidation function could leave a borrower with a worse health factor (collateral value divided by debt) because the liquidation incentive and fee reduce collateral faster than debt. An attacker could repeatedly liquidate or force replenishment to make the debt unhealthier and potentially extract DOLA from the market.
The protocol's Oracle contract calls Chainlink's latestAnswer() without a fallback, so if Chainlink multisigs block access to the price feed, the call reverts and core functions like borrowing, withdrawing, force-replenishing, and liquidating become unavailable. An attacker cannot directly trigger this, but the protocol's usability is severely limited during such a block.
The Oracle contract used Chainlink's deprecated latestAnswer and only checked that the price was positive, so it could accept a stale price. This could cause inaccurate credit and withdrawal limit calculations, potentially allowing a user's debt to be wrongly liquidated.
The Oracle contract's price normalisation assumes that the sum of feed and token decimals will not exceed 36, so if it does the calculation underflows and reverts, making the oracle unusable for such tokens.
The forceReplenish function checked a user's collateral value against their debt without applying the collateral factor, so a user already in liquidation could still call it to cover their accrued DBR fees and receive more DOLA. This could also push a healthy debt into liquidation.
A market deployed with the INVEscrow implementation but with the deposit callback disabled would not mint xINV tokens when users deposit collateral. This misconfiguration would make the market fail to provide the expected xINV tokens, and because the setting is immutable, the market would need to be redeployed or funds migrated.
The oracle's two-day price averaging feature can be bypassed by manipulating the oracle only around the boundary between two days, because the day is computed by integer division of the timestamp. An attacker could manipulate the price for just two blocks instead of the intended two days.
The repay function reverts when the supplied amount exceeds the user's current debt, so an attacker who repays a tiny amount on the victim's behalf just before their transaction causes the victim's larger repayment to fail. By repeating this, the attacker could keep blocking the victim from repaying.
A user can borrow DOLA without paying the required DBR deficit by keeping their collateral surplus small enough that no third party has an economic incentive to call forceReplenish. This allows the user to repay and withdraw all collateral while leaving an arbitrarily large DBR deficit.
The forceReplenish function in Market.sol can be front-run with a dust amount to prevent a full replenishment, causing the transaction to revert. An attacker could repeatedly front-run to deny the replenishment service.
IF
Inverse Finance contest
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.