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.
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.
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.
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.
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.
The protocol-owned liquidity calculation for Bunni incorrectly sums the reserves of all BunniTokens, including liquidity deposited by any user. An attacker can inflate the reported protocol-owned liquidity, potentially causing the system to value treasury assets incorrectly.
A category can be configured with submodules enabled but an empty reserves selector, and the reserves lookup then calls the submodule with that empty selector, which reverts. As a result, reserves for such a category cannot be retrieved at all.
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.
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.
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.
The storePrice function used the moving average price as an input when updating the moving average, causing recursive smoothing. This made the moving average less responsive to real price changes and could produce incorrect prices even if all oracle feeds failed.
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.
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.
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.
The vault mints OHM based on an on-chain oracle price that can deviate from the true asset price, and then joins a Balancer pool using an exact-tokens-in method that forces a swap at the pool's current ratio. An attacker can time the oracle to mint more OHM than needed and profit when the oracle updates.
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.
The stETH/ETH Chainlink oracle used to price OHM has a 24-hour heartbeat and 2% deviation threshold, so the on-chain price can differ from the true price by up to 2%. When a user withdraws, this stale price is used to decide how much stETH is returned, causing the user to lose funds.
The withdraw function in BLVaultLido skims extra stETH from the user based on an oracle price, but the minTokenAmounts_ parameter only checks the liquidity pool withdrawal, not the final amount the user receives. Thus, users cannot protect themselves from unfavourable oracle price movements or skimming.
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.
A cached rewards variable was added to a user's claimable balance but never cleared after a claim. An attacker could therefore claim the same cached amount repeatedly and drain all reward tokens held by the contract.
A reward-accumulation function subtracts a stored last-reward timestamp from the current block time without checking which is larger. If an admin adds a reward token with a future start time, that subtraction underflows and every function relying on it reverts, blocking the vault until the token is removed.
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.
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.
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.
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.
When a reward token is removed from the vault, its entire reward struct is deleted from the array, so the claim loop no longer includes it. Users who had not yet claimed that token permanently lose their unclaimed 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.
The withdraw function in SingleSidedLiquidityVault incorrectly decreases ohmMinted instead of only increasing ohmRemoved, causing accounting errors in deposit limit checks and emission calculations. An attacker could exploit this to bypass deposit limits or misreport OHM emissions.
The contract tracks accumulated rewards globally in a per-token struct and individually in a per-user mapping. When a reward token is removed, only the global tracker is cleared, so re-adding the token causes an underflow when users try to claim rewards.
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.
OR
Olympus RBS 2.0
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.