Skip to content
Business logic Audit finding Intermediate

Improperly Skewed Governance Mechanism

The contract's governance checkpointing tracks total voting supply as the sum of all locked balances, but individual voting power only counts delegated balances. An attacker could hold voting power without delegating it, making it harder to meet governance percentage thresholds and potentially disrupting the DAO.

0xsomeone Follow

Originally disclosed on Code4rena

Submitted by 0xsomeone

AuraLocker.sol#L594-L609 AuraLocker.sol#L611-L618

File | Lines | Type |

AuraLocker.sol | L594-L609, L611-L618 | Governance Susceptibility |

Description

The balance checkpointing system exposed by the contract for governance purposes is flawed as it does not maintain voting balances properly. In detail, the total supply of votes is tracked as the sum of all locked balances, however, the total voting power of an individual only tracks delegated balances. As a result, governance percentage thresholds will be significantly affected and potentially unmet.

Impact

The governance module may be unusable due to the significant discrepancy between “circulating” voting power supply and the actual voting power of each individual summed up.

Solution (Recommended Mitigation Steps)

We advise the total voting supply to properly track the delegated balances only as otherwise, any system relying on proportionate checkpointed balances will fail to function properly.

Proof of Concept

Issue is deducible by inspecting the relevant lines referenced in the issue and making note of the calculations within the getPastVotes individual voting power function as well as the getPastTotalSupply cumulative voting power function.

0xMaharishi (Aura Finance) disputed and commented:

This is intended behaviour. There is no incentive for users not to delegate their votes. And even if there were, not delegating is the equivalent to having voting power but not voting. Therefore this is not a relevant issue.

LSDan (judge) decreased severity to Medium and commented:

I’m going to leave this one in play and downgrade the severity. The warden’s report is accurate; however, if the required percentages of voting cannot be met, the DAO would simply have to go on a campaign to get people to delegate their votes. This would be annoying but not critically destructive. That said, medium severity makes sense because a bad actor could potentially gather voting power and intentionally disrupt things by not delegating it. I’d recommend implementing the fix suggested by the warden.


The original report as published on Code4rena, by 0xsomeone. 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

Impact

The governance module may become unusable because the total voting supply and the sum of individual voting powers do not match, and a bad actor could intentionally disrupt governance by not delegating their voting power.

What the attacker needed

Hold locked tokens with voting power; choose not to delegate votes

The fix

The total voting supply should track only delegated balances, as recommended by the warden and the judge.

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 this system, people lock tokens to get voting power. The total amount of voting power available is calculated from all locked tokens, but each person's own voting power only counts tokens they have explicitly assigned to a delegate. This mismatch means the total can look much larger than the sum of what individuals can actually use, so it may be impossible to reach the required percentage of votes to pass a proposal.

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 0xsomeone

View all

7 more disclosed reports, best first.

More from Aura Finance 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.