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:
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.
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.