Skip to content
Business logic Audit finding Intermediate

Missing DAO functionality to call changeDAO() function in Vader.sol

The changeDAO() function in Vader.sol can only be called by the DAO, but the DAO contract has no way to call it, so the DAO address can never be changed. The judge notes this missing functionality would be a serious problem if overlooked.

Vader Protocol contest

Originally disclosed on Code4rena

changeDAO() is authorized to be called only from the DAO (per modifier) but DAO contract has no corresponding functionality to call changeDAO() function. As a result, DAO address cannot be changed (L192-L196).

Recommend adding functionality to DAO to be able to call changeDAO() of Vader.sol.

strictly-scarce (vader) commented:

#46

dmvt (judge) commented:

Unlike in issues #140, #157, #158, & #159; without this functionality, missing functionality in the DAO becomes a very serious issue. As a result, this one is very high risk were it to be overlooked.

The original report as published on Code4rena. 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 DAO contract was never given a function that calls changeDAO() on Vader.sol, leaving the authorised caller unable to exercise its permission.

Impact

The DAO address could never be changed, which the judge says would be very high risk were it to be overlooked.

What the attacker needed

None

The fix

Functionality should be added to the DAO so it can call changeDAO() on Vader.sol.

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 smart contract has a setting that says only the DAO is allowed to change who the DAO is. But the DAO itself has no button or function to make that change, so the setting is stuck forever. This is a design gap rather than an attacker exploit, but it means a key administrative action is impossible.

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 from Vader 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.