Skip to content
Business logic Audit finding Intermediate

In the beginning its relatively easy to gain majority share

When the DAO is newly deployed, an attacker can gain a majority share by depositing a large amount into the vaults, then submit and pass a malicious proposal. The riskiest proposal is to replace the DAO, which could let the attacker take over everything.

gpersoon Follow

Originally disclosed on Code4rena

Submitted by gpersoon

When the DAO is just deployed it is relatively easy to gain a large (majority) share, by depositing a lot in the DAOVault and/of BONDVault. Then you could submit a proposal and vote it in. Luckily there is a coolOffPeriod of 3 days. But if others are not paying attention in these 3 days you might get your vote passed by voting for it with your majority share. The riskiest proposal would be to replace the DAO (moveDao), because that way you could take over everything.

Recommend pay attention to the proposals when the DAO is just deployed In Dao.sol and making sure you initially have a majority vote.

verifyfirst (Spartan) acknowledged:

The recommended mitigation steps were already going to be in place for mainNet including emissions etc.

The original report as published on Code4rena, by gpersoon. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the voting power is proportional to the amount deposited, and there is no initial distribution or lock-up to prevent a single depositor from acquiring a majority.

Impact

An attacker could pass any proposal, including one to replace the DAO and take over everything, if other members do not notice and vote against it during the 3-day cool-off period.

What the attacker needed

DAO is newly deployed; Attacker has enough funds to deposit a large amount; Other members do not vote during the 3-day cool-off

The fix

The project acknowledged the issue and stated that mitigation steps, including emissions, would be in place for mainnet.

How it was found

  1. Deposit a large amount into DAOVault or BONDVault to gain a majority share.
  2. Submit a proposal, such as one to replace the DAO (moveDao).
  3. Vote on the proposal with the majority share.
  4. Wait for the 3-day coolOffPeriod to pass without others noticing.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A DAO is a decentralised organisation where decisions are made by token holders voting. If one person holds more than half of the voting tokens, they can pass any proposal they want. This report warns that right after launch, someone could buy enough tokens to control the vote and then take over the whole organisation.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by gpersoon

View all

47 more disclosed reports, best first.

More from Spartan Protocol Contest

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.