Completed proposals can be voted on and executed again
A completed proposal's state is reset, including its votes, so users can vote on it again and it can be executed again. This could also cause backend scripts to receive unexpected voting or execution events after the FinalisedProposal event.
Vader Protocol contest
Originally disclosed on Code4rena
A proposal that is completed has its state reset, including the votes. Users can just vote on it again and it can be executed again.
Completed proposals should most likely not be allowed to be voted on / executed again. This could also lead to issues in backend scripts that don’t expect any voting/execution events to be fired again after the FinalisedProposal event has fired.
Recommend adding an executed flag to the proposals and disallow voting/finalising on already executed proposals.
strictly-scarce (vader) disputed:
It might be intended to have repeated proposals.
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 proposal's state, including votes, is reset on completion instead of being marked as executed, so the contract does not prevent further voting or execution.
Impact
Completed proposals could be voted on and executed repeatedly, potentially causing unexpected events in backend scripts; the project disputed this, suggesting repeated proposals might be intended.
What the attacker needed
None
The fix
The report recommends adding an executed flag to proposals and disallowing voting or finalising on already executed proposals.
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, once a proposal is finished, it should stay finished. Here, finishing a proposal wiped its votes, so people could vote on it again and trigger the same action a second time. That could confuse other software that expects each proposal to finish only once.
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.