Skip to content
Business logic Audit finding Intermediate

It’s not possible to execute governance proposals through the GovernorBravoDelegate contract

The GovernorBravoDelegate contract sets a proposal's executed flag to true when it is queued, so the state function reports it as Executed and the execute function refuses to run it. This makes governance proposals impossible to execute, potentially locking funds held by the contract.

Ruhum Follow

Originally disclosed on Code4rena

Submitted by Ruhum, also found by 0xmint, cccz, csanuragjain, dipp, hake, and zzzitron

It’s not possible to execute a proposal through the GovernorBravoDelegate contract because the executed property of it is set to true when it’s queued up.

Since this means that the governance contract is unusable, it might result in locked-up funds if those were transferred to the contract before the issue comes up. Because of that I’d rate it as HIGH.

Proof of Concept

executed is set to true: https://github.com/Plex-Engineer/lending-market/blob/main/contracts/Governance/GovernorBravoDelegate.sol#L63

Here, the execute() function checks whether the proposal’s state is Queued: https://github.com/Plex-Engineer/lending-market/blob/main/contracts/Governance/GovernorBravoDelegate.sol#L87

But, since the execute property is true, the state() function will return Executed: https://github.com/Plex-Engineer/lending-market/blob/main/contracts/Governance/GovernorBravoDelegate.sol#L117

In the original compound repo, executed is false when the proposal is queued up: https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorBravoDelegate.sol#L111

Recommended Mitigation Steps

Just delete the line where executed is set to true. Since the zero-value is false anyway, you’ll save gas as well.

tkkwon1998 (Canto) confirmed

Alex the Entreprenerd (judge) commented:

The warden has shown how, due to a coding decision, no transaction can be executed from the Governor Contract.

Because the functionality is broken, I agree with High Severity.


The original report as published on Code4rena, by Ruhum. 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 queueing code sets the proposal's executed flag to true, so the state check in execute() sees Executed instead of Queued and reverts.

Impact

Governance is unusable and funds sent to the contract could be locked up.

What the attacker needed

A queued governance proposal

The fix

The line that sets executed to true on queueing should be removed, since the default value is already false.

How it was found

  1. Queue a governance proposal.
  2. Call the execute function on the queued proposal.
  3. The state check returns Executed rather than Queued, so execution does not proceed.

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 governance contract lets token holders vote on proposals and then run the approved actions. Here a flag meant to mark a proposal as already run was set too early, when the proposal was only queued. So the contract always thought the proposal was finished and never carried it out.

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 by Ruhum

View all

55 more disclosed reports, best first.

More from Canto

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.