Skip to content

Code4rena

Ethos Reserve contest

Every publicly disclosed report for Ethos Reserve contest and what kind of bugs they were.

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

Disclosed reports

Newest first. Only what Ethos Reserve contest chose to make public.

Business logic

User can lose up to whole stake on vault withdrawal when there are funds locked in the strategy

When a strategy has locked funds, the vault's withdrawal logic recalculates the user's payout based on the vault's current token balance rather than the originally requested amount, so the loss check passes even though the user receives far less than expected. A withdrawing user can have all their shares burned while receiving an arbitrarily small amount of tokens.

Ethos Reserve contest

High
Audit finding

Rewards will be locked in LQTYStaking Contract

The LQTYStaking contract's reward distribution logic rounds down when calculating rewards per staked LQTY, causing small collateral fees to be lost and locked in the contract. An attacker could not directly exploit this, but stakers lose rewards that remain forever locked.

Ethos Reserve contest

High
Business logic

Low data feed frequency from Tellor makes your protocol vulnerable to flash loan attacks

The Tellor oracle feed for ETH/USD on Optimism updates infrequently, so an attacker could cheaply dispute the few existing price reports to stall the oracle for hours. If Chainlink is also down, the attacker could use a flash loan to exploit the stale price and profit at the protocol's expense.

Ethos Reserve contest

Medium
Business logic

_harvestCore() roi calculation error

The _harvestCore() function subtracts the loss from the return on investment (roi) after already accounting for the loss when calculating the profit, causing the loss to be counted twice. This leads to incorrect reporting data and potentially incorrect debt calculations.

Ethos Reserve contest

Medium
Business logic

Last Trove may be prevented from redeeming

The redemption function checks that the redeemer's LUSD balance is not greater than the total LUSD debt for that collateral type, an invariant that only holds in single-collateral systems. In a multi-collateral system, an attacker can send a small amount of LUSD to the last remaining trove holder, pushing their balance above the collateral's debt and preventing them from redeeming.

Ethos Reserve contest

Medium
Business logic

updateStrategyAllocBPS() can cause loss of ActivePool’s collateral during an emergency exit

A lower-privileged strategist could reverse a guardian's emergency exit by calling updateStrategyAllocBPS with a non-zero value, causing the strategy's debt to be reduced and an incorrect profit to be recorded on the next harvest. This inflated the vault's share price, leading ActivePool to record a false profit that was distributed to Treasury, Staking Pool and Stability Pool, allowing depositors and stakers to withdraw funds and causing a loss of ActivePool's collateral.

Ethos Reserve contest

Medium
Business logic

ReaperBaseStrategyv4.harvest() might revert in an emergency.

The harvest function in a strategy contract could revert when there is no position on the Aave lending pool because Aave does not allow zero-amount withdrawals. This could prevent the strategy from liquidating positions during an emergency, potentially locking funds.

Ethos Reserve contest

Medium
Business logic

In ReaperVaultV2 , we should update lockedProfit and lastReport before changing lockedProfitDegradation

The contract's locked profit calculation uses the current degradation rate over the entire period since the last report, so changing that rate retroactively alters how much profit is considered unlocked. A malicious depositor could front-run the admin's rate change with a large deposit to capture extra yield that was not previously available.

Ethos Reserve contest

Medium
Business logic

upgradeProtocol can create Peg Risk via Oracle Price Arbitrage

The upgradeProtocol function allows a new protocol version to share the same LUSD token while using a different oracle, which can create price discrepancies between the old and new systems. An attacker could exploit these differences through redemption arbitrage, potentially extracting value and increasing peg risk.

Ethos Reserve contest

Medium
Crypto

DOMAIN_SEPARATOR() is missing in LUSDToken.sol

The LUSDToken contract lacks the DOMAIN_SEPARATOR() function required by ERC2612, which could make it easier for attackers to replay valid signatures across chains or contracts.

Ethos Reserve contest

Medium
DoS

P can be updated to zero which can cause a DOS when liquidating troves

The product factor P in the stability pool can become zero after a few liquidations with small product factors, despite an assertion that it should never be zero. This causes a denial of service for certain liquidations, preventing the protocol from clearing bad debt.

Ethos Reserve contest

Medium
DoS

DOS by directly transferring assets to Reaper Vault

An attacker can cause a denial of service by directly transferring assets to the ReaperVault, which makes the ActivePool's rebalance logic underflow and revert. This disables core protocol functions such as opening and closing troves until the team manually transfers enough assets to fix the underflow.

Ethos Reserve contest

Medium
Business logic

lastFeeOperationTime is not modified correctly in function _updateLastFeeOpTime() , resulting a much slower decay model for borrowing base rate

The function that updates the last fee operation time sets it to the current block timestamp instead of advancing it by the whole minutes actually used for decay, so the borrowing base rate decays more slowly than intended. An attacker could exploit this to keep borrowing fees artificially low, though the text does not describe an active attack.

Ethos Reserve contest

Medium