Skip to content

Code4rena

Olas

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

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

Disclosed reports

Newest first. Only what Olas chose to make public.

Business logic

Services can earn undeserved rewards by manipulating checkpoint timing during reward droughts

The staking contract skips its checkpoint and activity check whenever no rewards are available, so the last checkpoint timestamp goes stale. A service can stay inactive during that gap and then perform transactions just before rewards return, making its activity ratio look high enough to earn rewards for time it did not serve.

Olas

Medium
Smart contracts

Variable Overwrite in checkPoolAndGetCenterPrice() Creates Dead-Code Deviation Check, Leaving All V3 Protocol-Owned Liquidity Operations Unprotected

A variable overwrite in the price-check function causes the deviation check to compare the TWAP against itself, always yielding zero deviation, so the guard never triggers. Additionally, two early-return paths skip the check entirely for stale or new pools, leaving all protocol-owned liquidity operations unprotected against flash-loan price manipulation.

Olas

High
Smart contracts

Missing deadline parameter in register signatures

The registerAgentsWithSignature function in the ServiceManager contract omits a deadline from the signed message, so an operator's signature remains valid indefinitely. A service owner can reuse an old signature to register agents and force a bond transfer from the operator's account without current consent.

Olas

High
Business logic

Missing maximum bond signature parameter

The signed authorisation used to register an operator's agent instances did not commit to any bond amount, so a service owner could raise the required bond after the signature was given and reuse the same signature. The operator's tokens would then be bonded at the higher amount without their consent and stay locked until the service was terminated.

Olas

High
Smart contracts

Token Callback Reentrancy

The StakingBase contract violates the checks-effects-interactions pattern by calling an overridable internal transfer function before updating stored balances, allowing a malicious receiver or token to re-enter claim/withdraw and drain funds. ServiceManager.create also performs an external call that can trigger a callback before completing critical operations, enabling reentrancy and inconsistent state.

Olas

High
Business logic

cumulativePrice is corrupted when price updates are rejected

The BalancerPriceOracle contract updates cumulativePrice before checking if the price deviation exceeds maxSlippage. When the slippage check fails, the function returns false but cumulativePrice has already been permanently modified, corrupting the TWAP calculation.

Olas

High
Access control

Arbitrum Retryable-Ticket Refund/Value Not Verified Enables Timelock ETH Exfiltration

The GuardCM contract, which restricts what the Community Multisig can schedule through the timelock, failed to check the ETH value forwarded and the Arbitrum retryable-ticket refund addresses. An attacker with control of the multisig could schedule an allowlisted L2 action while setting attacker-controlled refund addresses, diverting timelock ETH.

Olas

Medium
Business logic

Price cumulative last is used inverted in Uniswap Oracle

The Uniswap price oracle used the wrong cumulative price feed for each token direction, so the computed time-weighted average price was the inverse of the intended OLAS price. This could let the slippage check pass when the real price had moved beyond the allowed limit, causing buybacks to trade at an incorrect price.

Olas

Medium
DoS

DoS in Liquidity Migration due to Unit Mismatch in UniswapPriceOracle

The UniswapPriceOracle.validatePrice() function compares a price deviation scaled to 1e16 against a slippage value given in raw percentage units, so almost any deviation fails the check. This causes all calls to LiquidityManagerETH.convertToV3() to revert, blocking V2-to-V3 liquidity migration.

Olas

Medium
Business logic

Incorrect proportional reward splits when an operator has been slashed

The staking contract splits proportional rewards equally among all operators, assuming every bond is the same size, and never checks the actual bond after a slashing. A slashed operator whose bond was reduced to zero keeps receiving a full share, diluting the rewards of active operators.

Olas

Medium
Smart contracts

No slippage protection on Uniswap swap

The contract's swap function hard-codes the minimum output amount to 1, so it accepts almost any price. An attacker could manipulate the pool price or front-run the swap so the contract receives nearly no tokens, causing a loss for the protocol.

Olas

Medium
Business logic

Balancer oracle deadlock from cumulative price weight

The Balancer price oracle accumulates a cumulative price weight that grows without bound, so its time-weighted average becomes increasingly resistant to change. Once the market price moves beyond the configured slippage tolerance, the update function keeps rejecting new prices and the oracle can become permanently stuck, returning stale or inaccurate prices to consumers.

Olas

Medium
Business logic

Broken TWAP validation allows spot-price manipulation and renders slippage checks ineffective

The validatePrice() function in UniswapPriceOracle does not compute a real time-weighted average price (TWAP) and instead always returns the current trade price, making the slippage check ineffective. An attacker could manipulate the Uniswap V2 pool price within a single block and have buyback or liquidity removal transactions execute at the manipulated price, profiting at the protocol's expense.

Olas

High
Audit finding

Balancer oracle uses vault balances as price and can be steered by anyone

The Balancer price oracle reads pool balances directly from the Vault and returns a simple reserve ratio, which is a spot price that moves whenever the pool is traded. Because updatePrice() is permissionless and the snapshot is built from that spot price, an attacker who keeps the pool in a manipulated state and calls updatePrice() over time can drag the stored average away from the real market price, so validatePrice() still passes while the price is far off.

Olas

High
Business logic

Incorrect TWAP calculation in BalancerPriceOracle allows price manipulation and breaks oracle guarantees

The BalancerPriceOracle contract implements an incorrect TWAP formula that accumulates the previous average price instead of the actual observed price, and recovers elapsed time by dividing cumulative price by average price. An attacker could manipulate the Balancer pool price after the minimum update period and call updatePrice with the manipulated price, corrupting the average and enabling further manipulation.

Olas

High
Smart contracts

Insolvency via Cross-Service Reentrancy in StakingBase._withdraw

The staking contract's withdrawal function updates its recorded balance only after sending funds, so a caller who controls two services can re-enter during the transfer and have the outer call overwrite the inner call's balance deduction. This leaves the contract's recorded balance higher than the funds it actually holds, making it insolvent.

Olas

High
Smart contracts

Service owner can steal protocol tokens by exploiting reentrancy in create

ServiceManager.create() calls the registry's create function, which mints a service NFT, before recording the token bond, so a malicious service owner can reenter during the NFT mint callback and lower the bond. The attacker then pays only the reduced bond but later withdraws the originally specified larger bond, draining the token utility contract's funds.

Olas

High
Smart contracts

Critical Logic Inversion in Price Guard Allows Flash-Loan Manipulation of Liquidity Operations

The price guard in the liquidity manager inverted its history check and failed open on TWAP errors, so it returned the untrusted spot price instead of the time-weighted average. An attacker could create a new pool, manipulate its price with a flash loan, and have the protocol mint or convert at that inflated price, draining assets.

Olas

High
Smart contracts

Uniswap oracle validateprice can be griefed per block via sync()

The oracle's price validation rejects any call made in the same block that the Uniswap V2 pair's reserves were last updated. An attacker can front-run a victim's transaction with a permissionless sync() call so the check always fails in that block, repeatedly griefing the victim.

Olas

Medium
Audit finding

BalancerPriceOracle::validatePrice uses stale TWAP

The validatePrice function in BalancerPriceOracle calculates a time-weighted average price from snapshot data that is only refreshed when updatePrice is called, and it never triggers that refresh itself. An attacker could exploit stale price data to either block legitimate buyback or liquidity operations or to pass validation with a manipulated spot price, potentially enabling sandwich attacks.

Olas

Medium
Business logic

changeRanges silently fails when price is out of tick range, sending all liquidity to treasury instead of creating new position

The changeRanges function in LiquidityManagerCore silently skips creating a new Uniswap V3 position when the pool price is outside the old tick range, because one collected token amount is zero. Instead of reverting, it sends all collected tokens to the treasury and leaves the position mapping pointing to an empty old position.

Olas

Medium
DoS

Malicious user can prevent buying back OLAS token via Slipstream

The buy-back swap router refunds any ETH held by the pool contract to the caller after each swap, but the protocol's proxy cannot receive ETH, so the refund reverts and the whole buy-back fails. An attacker can front-run the buy-back by sending a small amount of ETH to the pool, causing the protocol's buy-back to revert and preventing OLAS tokens from being bought back and burned.

Olas

Medium
Business logic

checkpoint() does not correct effectiveBond downward at year boundaries where inflation decreases

The checkpoint function only corrects effectiveBond upward when the actual maxBond exceeds the pre-credited prediction, but never subtracts the over-credit when actual inflation is lower. At the two year boundaries where inflation decreases, phantom bond capacity persists, allowing the Depository to create bond programs that mint more OLAS than the inflation schedule intends.

Olas

Medium
DoS

Attacker can make claimed staking incentives irredeemable on Gnosis Chain

The GnosisDepositProcessorL1 contract allowed callers to set an arbitrarily low gas limit for cross-chain messages, so a message could fail on L2 due to out-of-gas. An attacker could repeatedly claim staking incentives with an insufficient gas limit, making them irredeemable on L2 and requiring governance intervention to recover.

Olas

Medium
DoS

Unstake function reverts because of use of outdated/stale serviceIds array

The unstake function uses a stale serviceIds array returned by checkpoint, which is not updated after evicting inactive services. This can cause an out-of-bounds revert when a service owner tries to unstake, because the index from the stale array no longer matches the current setServiceIds array.

Olas

Medium
Business logic

Changing VoteWeighting contract can result in lost staking incentives

The Dispenser contract allows the owner to change the VoteWeighting contract, but the new contract does not carry over the last claimed staking epoch for existing nominees. An attacker can re-register a nominee on the new contract, resetting its last claimed epoch to the current one and causing the nominee to lose staking incentives for previous epochs.

Olas

Medium
DoS

Adding staking instance as nominee before it is created

An attacker can add a staking instance as a nominee before it is created, causing its incentive claim to iterate over many useless epochs and consume excessive gas. This can make the nominee unusable due to a maximum number of epochs limit.

Olas

Medium
Business logic

Less active nominees can be left without rewards after an year of inactivity

The VoteWeighting contract only retains nominee voting history for 53 weeks, so if a nominee receives no votes for over a year, the nomineeRelativeWeight function returns zero even though users still have locked tokens. This causes those users to lose their voting power and potential rewards.

Olas

Medium