Attackers can increase voting power by incentivizing
The report argues that an attacker can use bribes or incentives to acquire enough voting power to influence governance decisions, potentially extracting value from the treasury. The text does not demonstrate a specific exploit but describes a theoretical governance attack.
Submitted by Tomo
If the benefit to be gained from the outcome of the vote is less than the cost of obtaining the right to vote, the outcome of the vote is influenced.
Proof of Concept
Recommended Mitigation Steps
- Add blacklist check for
_castVotefunction.
if(isBlacklisted(msg.sender) revert BLACKLISTED();
- Create a function to delete the voting power and add the address to the blacklist.
function addBlackList(address _blackList) external onlyOwner {
isBlackListed[_blackList] = true;
emit Blacklisted(_blackList);
}
function deleteVotingPower(address _blackListed,uint _weight, uint _support) external onlyOwner {
if (_support > 2) revert INVALID_VOTE();
require(hasVoted[_proposalId][_blackListed],"NO VOTING BY BLACKLISTED");
if (_support == 0) {
proposal.againstVotes -= _weight;
} else if (_support == 1) {
proposal.forVotes -= _weight;
} else if (_support == 2) {
// Update the total number of votes abstaining
proposal.abstainVotes -= _weight;
}
}
Similar Issue
Alex the Entreprenerd (judge) commented:
Nice idea, not sure if there’s any way to avoid this.
Allowlist would cause centralization issue, and would be defeated by the bribes as well.
Alex the Entreprenerd (judge) commented:
While I think the finding can be further developed. I have to concede that via bribes and incentives, governance can be skewed to act against the interest of the founders.
Whether this is good or bad per see, is not that relevant, however the system does allow delegation to a “malicious party” which would be able to obtain enough votes to do whatever they want.
Notice that the veto system prevents this as well, so we could argue that removing Vetoing allows this, which is effectively another take on a 51% attack.
Leaving as unique for the thought-provoking idea.
kulkarohan (Nouns Builder) disputed and commented:
This is why veto power is granted to founders. Not an issue IMO and would introduce needless complexity + centralization going the blacklist route.
Alex the Entreprenerd (judge) commented:
Per the discussion above, taking into consideration that CodeArena is a end-user facing project, meaning our reports could be used to determine if a project is safe or not;
Given the recent example of large scale bribes to influence a voting outcome
While disagreeing as well with the solution of offering a Blocklist to prevent malicious actor, and agreeing that the finding should have been better written.
I have to rationally concede that the ability to bribe governance can be used to extract value from the Treasury, a Vetoer may or may not offer protection at that time due to second order social consequences.
Because of that, given the rules (Loss of Value conditional on externalities), given the precedents (one linked above, I’m sure there’s many other), I still believe that this is a valid Medium Severity finding.
Per the comment by the sponsor, a properly aligned Vetoer will be able to prevent most of these attacks, however I don’t think that’s sufficient to make the finding invalid.
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 governance system allows voting power to be acquired or influenced through incentives, without effective safeguards against bribery.
Impact
An attacker could gain enough voting power to pass proposals that benefit them, potentially draining the treasury, though a veto by founders may prevent this.
What the attacker needed
Attacker has capital to bribe voters; governance system without effective veto
The fix
The report suggests adding a blacklist check and a function to remove voting power, but the judge and sponsor note that this introduces centralisation and may not be effective; the sponsor states that veto power is the intended mitigation.
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 some online communities, people vote on decisions using tokens. If someone can buy or borrow enough tokens, they can swing the vote. This report says that a rich attacker could bribe voters to get their way, which might let them take money from the community's funds.
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.