Skip to content

Sherlock

Exactly Protocol

Every publicly disclosed report for Exactly Protocol and what kind of bugs they were.

disclosed reports
18
most reported class
Business logic
bug classes found
3
first disclosure
2024
Find Exactly Protocol on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Exactly Protocol chose to make public.

Smart contracts

The Rounding Done in Protocol's Favor Can Be Weaponized to Drain the Protocol

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.

Exactly Protocol

High
Business logic

Fixed interest rates can be manipulated by a whale borrower

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.

Exactly Protocol

Medium
Business logic

When bad debts are cleared, there will be some untracked funds

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.

Exactly Protocol

Medium
Business logic

Expired maturities longer than `FixedLib.INTERVAL` with unaccrued earnings may be arbitraged and/or might lead to significant bad debt creation

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.

Exactly Protocol

Medium
Business logic

Liquidation does not prioritize lowest LTV tokens

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.

Exactly Protocol

Medium
Business logic

Bad debt isn't cleared when `earningsAccumulator` is lower than a fixed-pool bad debt

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.

Exactly Protocol

Medium
Business logic

Theft of unassigned earnings from a fixed pool

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.

Exactly Protocol

Medium
DoS

DoS on liquidations when utilization rate is high

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.

Exactly Protocol

Medium
Business logic

Manipulation of the floating debt by updating `floatingBackupBorrowed`

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.

Exactly Protocol

Medium
Business logic

borrow() maliciously let others to enter market

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.

Exactly Protocol

Medium
Business logic

Rewards can disappear when new rewards are distributed in the RewardsController

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.

Exactly Protocol

Medium
Business logic

The claimable rewards amount for borrowers decreases over time

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.

Exactly Protocol

Medium
Business logic

`rewardData.releaseRate` is incorrectly calculated on `RewardsController::config()` when `block.timestamp > start` and `rewardData.lastConfig != rewardData.start`

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.

Exactly Protocol

Medium