The vote function records a user's votes once and prevents further voting, but the voter admin can still issue or revoke votes during an active proposal. This means the recorded votes may not match the user's current balance, potentially making the execution result unreliable.
The contract only checks the updatedAt timestamp from Chainlink's latestRoundData, ignoring other staleness indicators. An attacker could exploit stale prices to cause loss of funds to end-users.
Votes cast for an active proposal are locked in the Governance contract until that proposal is executed or replaced. If a failed proposal holds more than 80% of the total votes, no new proposal can reach the 20% endorsement threshold, so governance can be permanently stuck.
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.
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.
The price oracle's moving average calculation ignores the time between observations, so it is not a true time-weighted average price. An attacker could exploit this by skipping or front-running updates to trade at an outdated price.
When a user's votes are revoked, their previously recorded endorsements for a proposal are not reduced. This can make a proposal appear to have more support than it actually does, making it more likely to be activated.
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.
The constructor functions in RANGE.sol and Operator.sol do not validate parameters that the corresponding setter functions do validate. If the contracts are deployed with improper parameters, they may behave unexpectedly.
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.
Setting the wall spread to 100% causes a division by zero when the lower wall price becomes zero, making the operate function revert. This prevents price updates and can lead to stale price exploitation.
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.
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.
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.
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.
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.
The governance contract allows a user to endorse a proposal with their voting tokens and then transfer those tokens to another user, who can endorse the same proposal again. This double-counting of the same tokens can push the total endorsements above the threshold, enabling a proposal to be activated when it should not be.
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.
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.
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.
The safeTransfer and safeTransferFrom functions from Solmate do not verify that the token address contains contract code. An attacker could call these functions on an address without code, causing the protocol to falsely record a successful transfer and leading to miscalculated funds and potential loss.
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.
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.
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.
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.
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.
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.
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.
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.
OD
Olympus DAO contest
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.