Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Lack of input validation for match numbers

Summary

Neither contract validates that match numbers are within the expected range (0 to NUM_MATCHES - 1).

Vulnerability Details

Functions like setResult, confirmPredictionPayment, and setPrediction accept any uint256 as a match number.

Impact

Out-of-bounds array access or storage of predictions for non-existent matches.

Recommendations

Add input validation for match numbers:

require(matchNumber < NUM_MATCHES);
Updates

Lead Judging Commences

NightHawK Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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