The veRAACToken::recordVote
has no restrictions, allowing an malicious actor to record vote on any proposal on behalf of anyone.
The veRAACToken::recordVote
function is primarily used for recording vote using the voting power of the users, the event is emitted showcasing the weightage of the vote.
However, the issue lies in lack of restrictions provided here as any malicious actor would record vote on behalf of anyone and can fully disrupt the voting mechanism by gaming the system.
Allows a malicious actor to vote on a proposal on behalf of anyone.
Malicious actor can game the entire voting system onto their own favour to gain significant advantage for passing their desired proposal.
Add the following test case inside the veRAACToken.test.js
file:
As we can see, users[1]
was able to record vote on behalf of users[0]
.
Manual Review
/
Hardhat
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.