President Elector

First Flight #24
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: medium
Valid

Replayable Signature Prone To Vote Manipulation

Summary

The signature on rankCandidatesBySig() can be replayed to get votes on the next s_voteNumber.

Vulnerability Details

The structHash used to construct the hash for signing lacks a nonce. This causes the voter signature to be replayable by anyone on the next vote (a different s_voteNumber) such that the voter loses a right to select a different set of candidates for the next president.

Impact

The voter cannot choose a fresh set of candidates.

Tools Used

Manual review, testing.

Recommendations

Add a voter nonce that will increment on every correct signature verification.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Replay Attack - The same signature can be used over and over

Appeal created

evmninja Submitter
about 1 year ago
inallhonesty Lead Judge
about 1 year ago
inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Replay Attack - The same signature can be used over and over

Support

FAQs

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