Skip to content
Business logic Audit finding Intermediate

Canceled proposals can still be executed

A proposal that had already passed the voting threshold could be cancelled by a minority, but the cancellation only zeroed the vote count while leaving the start time and finalising flag intact. The proposal could then be finalised again and queued for execution, allowing a minority to execute a proposal that should have been cancelled.

Vader Protocol contest

Originally disclosed on Code4rena

Proposals that passed the threshold (“finalized”) can be cancelled by a minority again using the cancelProposal functions. It only sets mapPID_votes to zero but mapPID_timeStart and mapPID_finalising stay the same and pass the checks in finaliseProposal which queues them for execution.

Proposals cannot be cancelled.

Recommend setting a cancel flag and check for it in finaliseProposal and in execution.

strictly-scarce (vader) confirmed:

Valid

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

The cancellation function only resets the vote count but does not clear the finalisation state (time start and finalising flag), so the proposal still passes the checks in the finalisation function.

Impact

A minority could cancel a proposal and then still execute it, bypassing the intended cancellation.

What the attacker needed

A proposal that has passed the voting threshold; ability to call cancelProposal

The fix

The report recommends setting a cancel flag and checking for it in `finaliseProposal` and in execution.

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, a proposal is an idea that people vote on. Once enough votes are cast, the proposal is 'finalised' and can be executed. This report says that even after a proposal is cancelled, the system still remembers that it was finalised, so it can be executed anyway. That means a small group could cancel a proposal and then still push it through.

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.