President Elector

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

no zero check for the president address

Summary

there is no zero check for the president address

Vulnerability Details

// Reset the election and set President:brs_currentPresident = winnerList[0];:brs_candidateList = new address;:brs_previousVoteEndTimeStamp = block.timestamp;:brs_voteNumber += 1;:br}

in the code above the is no check to make sure the president is not address(0)

Impact

Tools Used

manual

Recommendations

zero address check should be added to the code

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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