Skip to content

Sherlock

Olympus RBS 2.0

Every publicly disclosed report for Olympus RBS 2.0 and what kind of bugs they were.

disclosed reports
33
most reported class
Business logic
bug classes found
2
first disclosure
2023
Find Olympus RBS 2.0 on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Olympus RBS 2.0 chose to make public.

Business logic

Price calculation can be manipulated by intentionally reverting some of price feeds

The price calculation module ignores price feeds that revert, so an attacker can intentionally cause some feeds to revert (e.g., by triggering re-entrancy checks) and leave only a manipulated feed, skewing the final price. This could let the attacker buy tokens at an unfair price.

Olympus RBS 2.0

Medium
Business logic

Incorrect deviation calculation in isDeviatingWithBpsCheck function

The deviation check function calculated the difference relative to the larger value instead of the mean, allowing prices to deviate more than the intended threshold. An attacker could manipulate the price beyond the allowed limit, potentially affecting oracle price reporting.

Olympus RBS 2.0

Medium
Business logic

Price can be miscalculated

The price strategy contract returned the first non-zero price instead of the median when exactly two non-zero prices were supplied and they deviated from the average. This produced an incorrect price calculation for that input.

Olympus RBS 2.0

Medium
Business logic

getBunniTokenPrice wrongly returns the total price of all tokens

The getBunniTokenPrice function returns the total value of all shares in a pool instead of the price per share, because it does not divide by the total token supply. This incorrect price could cause the RBS module to make bad swaps and lose money.

Olympus RBS 2.0

High
Audit finding

Incorrect StablePool BPT price calculation

The price calculation for Balancer StablePool BPTs incorrectly uses the minimum market price of pool tokens without adjusting for rate providers, leading to over- or under-valuation. An attacker could potentially exploit this mispricing if the price feed is used for collateral or other financial logic.

Olympus RBS 2.0

High
Business logic

Balancer LP valuation methodologies use the incorrect supply metric

The Balancer LP valuation code used totalSupply() to determine the LP supply, but for some Balancer pools this does not reflect the actual supply. This could cause the RBS pricing to be incorrect, leading to buying or selling at a loss.

Olympus RBS 2.0

Medium
Business logic

BunniPrice.getBunniTokenPrice doesn't include fees

The BunniPrice.getBunniTokenPrice function calculates the price of a Bunni token without including the fees earned by the position, so the price is lower than the real value. An attacker could potentially exploit this mispricing, but the text does not specify a concrete attack.

Olympus RBS 2.0

Medium
Business logic

Inconsistency in BunniToken Price Calculation

The deviation check in BunniPrice.sol and BunniSupply.sol includes uncollected fees when comparing reserves to the TWAP ratio, but the final price calculation excludes those fees. This inconsistency could allow the deviation check to pass in situations where it would have failed if fees were excluded, potentially leading to an overestimation of the total value.

Olympus RBS 2.0

Medium
Audit finding

Possible incorrect price for tokens in Balancer stable pool due to amplification parameter update

The price feed for Balancer stable pools uses the amplification factor from the last invariant calculation instead of the current one, leading to incorrect token prices when the amplification parameter is being updated. An attacker could potentially exploit this mispricing, though the impact is limited to a short window and requires specific conditions.

Olympus RBS 2.0

Medium
Business logic

Normal users could be inadvertently grieved by the withdrawn ratios check

The contract's withdrawal check compares withdrawn token ratios to the oracle price and treats any imbalance as a fee, so a user who deposits and immediately withdraws from an already imbalanced pool loses part of their wstETH to the treasury. An attacker could exploit this to cause grief to normal users, though the loss is small.

Olympus RBS 2.0

Medium
Business logic

Adversary can stake LP directly for the vault then withdraw to break lp accounting in BLVaultManagerLido

The AuraRewardPool allows staking LP tokens on behalf of another address, so an attacker can stake LP directly for their vault and then withdraw it, causing the vault manager's total LP accounting to decrease incorrectly. This can permanently trap other users' funds because their withdrawals revert when the manager's total LP becomes too low.

Olympus RBS 2.0

High
Audit finding

Adversary can sandwich oracle updates to exploit vault

The vault's mitigation against price manipulation could be bypassed by sandwiching oracle updates. An attacker could profit by manipulating the pool price before an oracle update and then withdrawing after the update, causing repeated losses to the vault.

Olympus RBS 2.0

High
Business logic

SetLimit does not take into account burned OHM

The setLimit function in the BLVaultManagerLido contract does not account for the circulatingOhmBurned value, which can grow arbitrarily high. As a result, the admin cannot sufficiently restrict the manager's ability to mint new OHM tokens, as the vault can always mint at least the burned amount.

Olympus RBS 2.0

Medium
Business logic

Adversary can economically exploit wstETHLiquidityVault

The SingleSidedLiquidityVault contract allows a user to deposit wstETH, which causes the vault to mint OHM and provide liquidity to a Balancer pool. An attacker can manipulate the pool price within the allowed threshold, then withdraw and sell the acquired OHM for a profit, draining the vault.

Olympus RBS 2.0

High
Business logic

claimFees may cause some external rewards to be locked in the contract

The claimFees function updates the lastBalance of external reward tokens to the current contract balance without first accruing pending rewards, so any unaccrued rewards become permanently unclaimable by users. An attacker could front-run the admin's claimFees call by triggering getReward to inflate the contract's reward token balance, causing those rewards to be locked.

Olympus RBS 2.0

Medium
Business logic

User can receive more rewards through a mistake in the withdrawal logic

The withdrawal function resets the user's reward debt before calculating the difference, causing the full generated rewards to be cached instead of the unclaimed portion. An attacker can withdraw part of their shares to receive more reward tokens than they are owed.

Olympus RBS 2.0

High
DoS

`_accumulateExternalRewards()` could turn into an infinite loop if the check condition is true

The `_accumulateExternalRewards()` function in WstethLiquidityVault.sol contains a for loop where the increment `++i` is placed after a `continue` statement. If the sanity check `newBalance < rewardToken.lastBalance` is true, the `continue` skips the increment, causing an infinite loop that consumes all gas and blocks dependent functions.

Olympus RBS 2.0

Medium
Business logic

Internal reward tokens can and likely will over commit rewards

Internal reward tokens accrue indefinitely without an end timestamp or a check that the contract holds enough tokens to cover the committed rewards. This can cause the contract to over-commit rewards, and once the token balance is exhausted, all further claims will fail.

Olympus RBS 2.0

Medium
Business logic

freezing user rewards for a while

A smart contract function that calculates a user's accumulated rewards can revert because it subtracts the user's reward debt from the product of their LP position and the accumulated rewards per share, without first adding back any cached rewards. This causes the user's rewards to be locked until they earn enough new rewards to cover the debt.

Olympus RBS 2.0

Medium