Undefined behavior for DAO and GRANT vote proposals in DAO.sol
The voteProposal function checks for a 'DAO' proposal type that is not one of the three actionable types (GRANT, UTILS, REWARD), likely a typo for 'GRANT'. As a result, GRANT proposals may only require quorum (33%) and not a majority (50%), potentially allowing them to pass with less support than intended.
Vader Protocol contest
Originally disclosed on Code4rena
Given that there are only three proposal types (GRANT, UTILS, REWARD) that are actionable, it is unclear if ‘DAO’ type checked in voteProposal() is a typographical error and should really be ‘GRANT’. Otherwise, GRANT proposals will only require quorum (33%) and not majority (50%).
Recommend changing ‘DAO’ on L83 to ‘GRANT’ or if not, specify what DAO proposals are and how GRANT proposals should be handled with quorum or majority.
Also, check and enforce that mapPID_types are only these three actionable proposal types: GRANT, UTILS, REWARD.
strictly-scarce (vader) acknowledged:
DAO not yet fully implemented
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 a typographical error in the voteProposal function where 'DAO' was used instead of 'GRANT', causing incorrect quorum/majority logic for GRANT proposals.
Impact
GRANT proposals could pass with only 33% quorum rather than requiring a 50% majority, potentially allowing proposals to be approved with insufficient support.
What the attacker needed
Access to create or vote on proposals
The fix
The 'DAO' check should be changed to 'GRANT' and mapPID_types should be enforced to only allow GRANT, UTILS, and REWARD.
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.
In a voting system, different proposal types may need different levels of support to pass. This report points out that a check for a 'DAO' proposal type might be a mistake, causing grant proposals to need only 33% participation instead of over 50% approval. That could let grants pass with less agreement than intended.
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.