Skip to content

Code4rena

Olas

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

disclosed reports
10
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

Bonds created in year cross epoch’s can lead to lost payouts

Bonds created in an epoch that crosses a year boundary can reserve more OLAS than can actually be minted in the current year, because the effectiveBond calculation includes inflation from the next year. When minting fails silently due to the inflation check, depositors and agent/component owners may never receive their payouts.

Olas

High
DoS

Possible DOS when withdrawing liquidity from Solana Lockbox

The withdraw function requires callers to pass specific Solana accounts that depend on mutable state, so if another user withdraws first, the required accounts change and the transaction reverts. An attacker could repeatedly withdraw to cause denial of service for other users' withdrawals.

Olas

Medium
Business logic

LP rewards in liquidity_lockbox can be arbitraged

The liquidity_lockbox contract allows a user to deposit a large LP position and immediately withdraw all existing positions, collecting the accrued LP rewards. An attacker could repeat this cycle to continuously extract rewards unfairly.

Olas

Medium
DoS

Permanent DOS in liquidity_lockbox for under $10

The liquidity_lockbox contract uses a fixed-size Program Derived Address (PDA) as a data account, and each deposit adds entries to three mappings, consuming storage. After about 625 deposits, the PDA runs out of space, preventing any further deposits and causing a permanent denial of service at a very low cost.

Olas

High
Business logic

Wrong invocation of Whirpools’s updateFeesAndRewards will cause it to always revert

The withdraw function in the lockbox contract calls updateFeesAndRewards on the Orca Whirlpool after the position's liquidity has been fully removed, but that call always reverts when the position's liquidity is zero. As a result, the final withdrawal that would empty a position fails, making deposits unwithdrawable.

Olas

High
Business logic

Withdrawals can be frozen by creating null deposits

A deposit with zero liquidity is accepted and stored as a valid position, but the withdrawal function treats any position with zero liquidity as non-existent and reverts. An attacker can create such a null deposit, causing all subsequent withdrawals to fail and freezing funds.

Olas

High
Smart contracts

Missing slippage protection in liquidity_lockbox::withdraw

The withdraw function in liquidity_lockbox calls decreaseLiquidity with minimum token amounts hard-coded to zero, so the slippage check never triggers. An attacker could exploit this to cause the transaction to accept any amount, including zero, leading to a loss of funds.

Olas

Medium