The claimSingleReward
function uses <=
instead of <
to check the index, which is out of bounds for zero-based indexing in arrays.
The claimSingleReward
function allows users to claim a single reward. The function uses the _index
parameter to access the rewardsOwned
array.
Attempting to access an index equal to the array's length can result in accessing uninitialized memory, which could lead to incorrect operations or vulnerabilities. This could cause the function to behave unexpectedly, potentially allowing users to claim non-existent rewards.
Manual Review
Using <
instead of <=
to ensure the index is within the valid range of the array.
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.