The RankedChoice
smart contract does not include a mechanism to ensure that each voter represents a unique individual or entity. This opens up the possibility that a single entity could vote multiple times by using different addresses, which could unfairly skew the results of an election. The lack of verification for voter identities or uniqueness makes the system vulnerable to manipulation.
In the RankedChoice contract, voters are identified by their Ethereum addresses. However, the contract does not enforce any validation or verification to ensure that each voter address belongs to a unique individual or entity. As a result, an individual or organization could control multiple Ethereum addresses, allowing them to cast multiple votes in the election.
The VOTERS
array is initialized in the constructor, and voters are referenced solely by their addresses:
This code initializes the list of voters based on addresses provided at the contract deployment, but does not prevent the same person from controlling multiple addresses.
Potential Exploit Scenario
A single entity generates or controls multiple addresses.
Each address is added to the VOTERS
array, allowing the entity to vote multiple times, thus gaining disproportionate influence in the election.
The entity can manipulate the election outcome by ranking candidates multiple times, effectively overriding the votes of other participants.
The voting outcome can be manipulated by individuals controlling multiple addresses, undermining the fairness and integrity of the election. It also undermines decentralized governance by allowing a small group of people (or individuals controlling multiple addresses) to control election outcomes, leading to governance centralization.
Manual Review
Implement identity verification mechanisms to ensure each voter is uniquely identified, possibly integrating with decentralized identity solutions.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.