CM can delegatecall to any address and bypass all restrictions
Olas
HighCode4rena
Every publicly disclosed report for Olas and what kind of bugs they were.
Newest first. Only what Olas chose to make public.
Olas
HighBonds 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
HighThe 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
MediumThe 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
MediumThe 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
HighThe 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
HighA 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
HighThe getLiquidityAmountsAndPositions function incorrectly assigns the leftover liquidity to the last position amount instead of subtracting it, causing users to withdraw more tokens than intended when using the function's output.
Olas
MediumOlas
MediumThe 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