President Elector

First Flight #24
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Missing Events for critical parameter changing operations

Summary

The RankedChoice contract is missing Event emmision for Critical parameters changes, which might affects its integration with other contract or off-chain entity.

Vulnerability Details

No events are emmited in the RankedChoice::rankCandidates, RankedChoice::rankCandidatesbySig, and RankedChoice::selectPresident which are all functions that modifies critical state variables , but no events broadcast the changes.

Impact

Reduced transparency

Difficulty in tracking changes

Innefficient or impossible integration with other contracts and offchain services.

Tools Used

manual Analysis

Recommendations

Add event declaration and emit them when critical changes are made

In the RankedChoice::rankCandidates event CandidateRanked(address[] rankedAddresses, address rankedBy)should be emitted

and in the RankedChoice::rankCandidatesbySig event emit CandidateRankedBySignature(orderedCandidates, signer)should be emitted

Updates

Lead Judging Commences

inallhonesty Lead Judge 12 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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