Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: low
Valid

Attacker can vote for user even if user has no intention of voting

Summary

User can vote on behalf of someone, voting even when the user has no intention of voting.

Vulnerability Details

The recordVote allow users to vote

function recordVote(
address voter,
uint256 proposalId
) external {
if (_hasVotedOnProposal[voter][proposalId]) revert AlreadyVoted();
_hasVotedOnProposal[voter][proposalId] = true;
uint256 power = getVotingPower(voter);
emit VoteCast(voter, proposalId, power);
}

However an attacker can vote on someone's behalf even when the user s not willing to vote.

Impact

User's voting power can be used even if the user has no intention of voting.

Tools Used

Manual review

Recommendations

Allow only the owner to vote.

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Validated
Assigned finding tags:

veRAACToken::recordVote lacks access control, allowing anyone to emit fake events

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.