Hunt prep
Before you test Olympus DAO contest
What 35 disclosed reports say about Olympus DAO contest: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 22 | 0 | – | – | $0 |
| DoS lesson | 4 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
| Race condition lesson | 3 | 0 | – | – | $0 |
| Crypto lesson | 1 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
[NAZ-M1] Chainlink’s latestRoundData Might Return Stale Results
The contract should be fixed by adding checks for stale data, such as requiring answer > 0, answeredInRound >= roundID, and timestamp != 0.
Disclosed
-
In Governance.sol , it might be impossible to activate a new proposal forever after failed to execute the previous active proposal.
The reporter suggests adding an execution expiry constant so voters can reclaim their votes after a set period even while the proposal is still active.
Disclosed
-
OlympusGovernance#executeProposal : reentrancy attack vulnerable function
Use a nonReentrant modifier or move the line that resets the active proposal before the for loop.
Disclosed
-
activateProposal() need time delay
Add a time delay when activating a proposal so users have a window to see the change and vote on the current one.
Disclosed
-
“TWAP” used is an observation-weighted-average-price, not a time-weighted one
The code should track the timestamps of each observation and include the time elapsed since the last beat in the average calculation, and an internal non-reverting beat should be called during user swaps.
Disclosed
-
Endorsed votes by a user do not decrease after the user’s votes are revoked
The system should remove or adjust a user's endorsements when their votes are revoked, for example by tracking endorsements per proposal and updating them on revocation.
Disclosed
-
Griefing/DOS of withdrawals by EOAs from treasury (TRSRY) possible
The function should be gated behind a custodian role, as the team indicated they will adjust the code.
Disclosed
-
Inconsistency in staleness checks between OHM and reserve token oracles
The staleness check for the reserve token oracle should use three times the observation frequency, matching the OHM oracle, and the project confirmed it will update to fix.
Disclosed
-
Operator: if WallSpread is 10000, operate and beat will revert and price information cannot be updated anymore
The setSpreads function should forbid wallSpread_ from being 10000 by changing the check to >= 10000.
Disclosed
-
Treasury module is vulnerable to cross-contract reentrancy
The fix is to cap the measured received amount at the intended repayment amount, as confirmed by the protocol team.
Disclosed
-
Moving average precision is lost
The moving average should be calculated by storing the cumulative sum and dividing by the number of observations only when the average is requested.
Disclosed
-
Activating same Policy multiple times in Kernel possible
The check should use the Kernel's own internal policy index mapping rather than the untrusted contract's isActive() return value; the sponsor confirmed the remediation adds new checks.
Disclosed
-
Protocol’s Walls / cushion bonds remain active even if heart is not beating
The onlyWhileActive modifier should be changed to also check that the last beat is not older than a sync threshold.
Disclosed
-
After endorsing a proposal, user can transfer votes to another user for endorsing the same proposal again
The recommended mitigation is to lock the user's votes by transferring them to the governance contract upon endorsement, with a function to reclaim them and reduce the proposal's endorsements before activation.
Disclosed
-
Voted votes cannot change after the user is issued new votes or the user’s old votes are revoked during voting
When issueVotesTo and revokeVotesFrom are called during voting, the corresponding votes need to be added to or removed from the proposal's voted votes for the user, or these functions should be disabled when an active proposal exists.
Disclosed