Skip to content

Code4rena

Olympus DAO contest

Every publicly disclosed report for Olympus DAO contest and what kind of bugs they were.

disclosed reports
35
most reported class
Business logic
bug classes found
6
first disclosure
2022
Find Olympus DAO contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Olympus DAO contest chose to make public.

Smart contracts

OlympusGovernance#executeProposal : reentrancy attack vulnerable function

The executeProposal function resets the active proposal after executing instructions, allowing reentrancy if an instruction calls back into executeProposal. An attacker could repeatedly execute the same proposal instructions, potentially affecting funds depending on the instructions.

Olympus DAO contest

Medium
Business logic

activateProposal() need time delay

The governance contract lets a submitter activate a new proposal immediately, replacing the current active proposal, while the vote function does not take a proposal identifier and always votes on whatever is active. A user's vote could therefore land on a different proposal than intended, and a watcher of pending transactions could front-run a large vote to change the outcome.

Olympus DAO contest

Medium
DoS

Griefing/DOS of withdrawals by EOAs from treasury (TRSRY) possible

The revokePolicyApprovals function in TreasuryCustodian lacks proper checks, allowing a malicious actor to revoke approvals for any address, including externally owned accounts (EOAs). An attacker monitoring the mempool could front-run legitimate withdrawal transactions and set approved amounts to zero, causing a denial of service.

Olympus DAO contest

Medium
Business logic

Inconsistency in staleness checks between OHM and reserve token oracles

The price oracle contract uses inconsistent staleness thresholds for two Chainlink feeds: one allows three times the observation frequency, the other only one times. This could cause the price retrieval function to revert when the stricter feed is not updated within that shorter window.

Olympus DAO contest

Medium
Race condition

Treasury module is vulnerable to cross-contract reentrancy

The treasury module measures token balances before and after a transfer to verify loan repayment, but an attacker can trigger protocol revenue collection during the transfer, causing those tokens to be counted as repayment. This allows the attacker to reduce their loan without actually providing funds.

Olympus DAO contest

Medium
Audit finding

Moving average precision is lost

The moving average calculation in a smart contract loses precision because the difference between prices is divided by the number of observations before being added to the average. An attacker could exploit this to cause the moving average to deviate from the true value, potentially leaking value over time.

Olympus DAO contest

Medium
Business logic

Unexecutable proposals when Actions.MigrateKernel is not last instruction

The instruction module only enforced that a ChangeExecutor instruction appears last, but not that a MigrateKernel instruction does. If a MigrateKernel is followed by another action such as DeactivatePolicy, the later action can fail because it calls back into the policy through the kernel, which has already been replaced.

Olympus DAO contest

Medium
DoS

Activating same Policy multiple times in Kernel possible

The Kernel contract trusted a policy contract's own isActive() return value to decide whether it was already registered, so a malicious policy returning false could be activated repeatedly. This broke uniqueness invariants, made deactivation fail, and could cause out-of-gas denial of service when iterating over the duplicated policy list.

Olympus DAO contest

Medium
Business logic

Protocol’s Walls / cushion bonds remain active even if heart is not beating

The protocol's wall swap mechanism remains active even when the price feed is stale because it does not check whether beat() has been called recently. An attacker could buy the token cheaply on an external market and sell it to the wall at an outdated, higher price, draining funds.

Olympus DAO contest

Medium
Business logic

OlympusGovernance: Users can prevent their votes from being revoked

A user can prevent their votes from being revoked by the voter_admin by storing them in the OlympusGovernance contract via the vote and reclaimVotes functions. This allows the user to retain voting power even after the admin attempts to revoke it.

Olympus DAO contest

Medium
Business logic

Proposals overwrite

The Governance contract's submitProposal function does not verify that a proposal ID already exists before storing metadata, so if the kernel module is updated and reconfigured, a new proposal could overwrite an existing one. An attacker could potentially replace a legitimate proposal with their own, but only under specific upgrade conditions.

Olympus DAO contest

Medium
Business logic

RBS may redeploy funds automatically if price stays above or below wall for longer than _config.regenWait

The RBS (Range Bound Stability) mechanism may automatically redeploy treasury funds when the asset price stays outside the configured wall for longer than the regeneration wait period, if the regeneration threshold is set too low. This could cause the protocol to buy or sell at prices far from the market, leading to a loss of treasury funds.

Olympus DAO contest

Medium
Business logic

Operator::setReserveFactor doesn’t check if bond market should be changed

The setReserveFactor function updates the reserve factor without regenerating the market sides, so the capacity thresholds used to decide whether a bond market wall should be down or closed become stale. An attacker or guardian could leave a side operating with outdated capacity limits until a manual regeneration occurs.

Olympus DAO contest

Medium
Race condition

TRSRY: front-runnable setApprovalFor

The treasury module's setApprovalFor function directly overwrites the approval amount, allowing a withdrawer to front-run a reduction and withdraw the old larger amount before the new smaller approval takes effect. An attacker could thus withdraw more than intended, up to the previous approval amount.

Olympus DAO contest

High
Business logic

Missing checks in Kernel._deactivatePolicy

The Kernel contract's _deactivatePolicy function lacks a check that the policy being removed is actually registered, so attempting to remove an unregistered policy removes the policy at index 0 instead. An attacker could not directly exploit this, but a mistaken call by the executor could disrupt protocol functionality.

Olympus DAO contest

Medium
DoS

Heart will stop if all rewards are swept

The Heart contract's reward issuance function does not check the contract's token balance before transferring the reward, so if all reward tokens are withdrawn via the admin function, the transfer reverts and the Heart can no longer beat. An attacker with the heart_admin role could withdraw all unspent rewards, causing a denial of service until new tokens are deposited.

Olympus DAO contest

Medium
Access control

No Cap on Amount of VOTES means the voter_admin can get any proposal to pass

The voter_admin can mint unlimited VOTES tokens because there is no cap on totalSupply, allowing them to manipulate governance outcomes by either vetoing or passing any proposal. An attacker with voter_admin privileges could mint enough tokens to meet or exceed the required thresholds.

Olympus DAO contest

Medium
Race condition

TRSRY: reenter from OlympusTreasury::repayLoan to Operator::swap

The treasury's repayLoan function measures the amount received by comparing token balances before and after a transfer, so a token with a sender hook can reenter and call Operator::swap to inflate the treasury's balance. An attacker with debt in such a token could repay less than the recorded debt reduction, effectively stealing the difference.

Olympus DAO contest

Medium
Business logic

OlympusGovernance - active proposal does not expire

An active governance proposal does not expire, so a stale proposal could remain open indefinitely and be executed later if quorum is reached, potentially causing harm to the protocol.

Olympus DAO contest

Medium
Business logic

Cushion bond markets are opened at wall price rather than current price

The bond market was initialised at the wall price instead of the current price, contrary to the documentation. This could make the bond market less responsive to price movements, as it would need to decay to reach the current market price rather than instantly trading at it.

Olympus DAO contest

Medium