When a market's total supply is zero, an attacker can inflate the value of a single share and then use a throwaway account to borrow all available assets, abandoning the position so that rounding up burns the collateral and leaves the debt. The original account, as the sole remaining share holder, can then withdraw all assets, draining the protocol.
The fixed interest rate in a lending market is calculated using the current floating debt, which can be manipulated within a single block. A whale borrower can repay a large loan to lower utilisation, take a fixed loan at a much lower rate, and then borrow the funds again.
When bad debt is cleared, the fee portion of the bad debt is deducted from the earnings accumulator but the corresponding unassigned earnings in the fixed rate pool are not updated, leaving funds untracked. These untracked funds cannot be used or detected, and may be allocated to late fixed depositors if the maturity pool is not empty.
The protocol's totalAssets() function ignores unaccrued earnings from maturities that expired more than one interval ago, while repayAtMaturity() still converts those earnings into floating assets. An attacker could sandwich a late repayment to capture risk-free profit, and liquidations could leave leftover collateral that prevents bad debt from being cleared.
The liquidation function does not check whether the chosen seize market improves the borrower's health factor, allowing a liquidator to pick a high-LTV asset that lowers the average risk-adjust factor and worsens the health factor. This can enable repeated liquidations and put the protocol at risk of bad debt.
When the average floating assets are zero, the protocol calculates a utilization rate of zero, which results in the lowest possible interest rate for a borrow. An attacker could exploit this at market launch to take a large loan at a very low interest rate, potentially harming lenders.
When a borrowed maturity is liquidated, unassigned earnings are not converted to the earnings accumulator, leaving them claimable. An attacker can borrow and deposit at maturity with a principal of 1 to capture all these unassigned rewards.
The clearBadDebt function only clears a fixed-pool bad debt if the earnings accumulator is at least as large as the debt, so when the accumulator is slightly lower no debt is cleared. This leaves bad debt in the market, creating a discrepancy between tracked and actual funds that could lead to a bank run.
The liquidation function calls transferFrom to collect the liquidator's repayment after it has already tried to transfer collateral to the liquidator. When the collateral and debt are the same asset and most liquidity is borrowed, the contract lacks the tokens to send, so liquidation reverts and bad debt can accumulate.
The fee for a fixed-rate loan is rounded down, so an attacker can borrow a tiny amount many times to accumulate a large loan with zero fees. Repaying early then yields a discount that makes the repayment less than the borrowed amount, stealing from the pool's unassigned earnings.
Liquidations fail when a market's utilization rate is high because the seize step checks for sufficient protocol liquidity and reverts. An attacker can front-run a liquidation by withdrawing assets from another account, raising utilization and preventing the liquidation.
Three fixed-pool functions update the floatingBackupBorrowed value without first accruing the floating debt, so the utilisation rate used to compute past interest can be changed retroactively. An attacker can inflate that value via withdrawAtMaturity to raise the debt floating borrowers owe, profiting floating lenders and potentially pushing borrowers into liquidation.
The borrow function did not check that the borrowed amount was non-zero, so anyone could call it with zero assets and force another user into a market without their consent. This could later cause the victim's assets in that market to be seized during liquidation, even though they never intended to use them as collateral.
A logic error in the RewardsController's config function lets the admin move the rewards start time forward, which drops fixed borrow shares earned before the new start from the calculation. A borrower who delays claiming can therefore lose a large part of rewards they had already earned.
The claimable rewards for borrowers decrease over time because the calculation of fixed borrow shares depends on the current floating debt, which increases over time. An attacker could exploit this by delaying claims to receive fewer rewards, but the report does not describe an attack scenario.
The liquidation function previews a borrower's collateral without first accruing accumulated earnings, so the borrower's shares gain value mid-liquidation and the liquidator seizes less than intended. The borrower can end up better off after being liquidated, and bad debt may never be cleared.
The liquidation health factor calculation uses an average adjust factor across all markets, but when a liquidator picks specific repay and seize markets with different adjust factors, the resulting health factor deviates from the target. This can cause losses for either the liquidator or the borrower and may lead to bad debt.
The reward rate calculation in RewardsController::config() incorrectly uses the time since the last configuration instead of the time since the reward start when the start was set in the future. This overestimates released rewards, leading to a lower release rate and users receiving fewer rewards than intended.
EP
Exactly Protocol
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.