Lack of overflow protection when performing arithmetic operations in functions handling scores and statistical calculations. Without safeguards, a malicious validator could input maximum values (max(uint256)) to cause overflow during summing operations. This can lead to failures or incorrect calculations in functions like avg, variance, and finalizeValidation
For example, avg sums up all the scores in the data[]:
if any validator inputs a score of max(uint256), finalizeValidation will always fail due to the overflow during addition
Other Instances:
Statistics#avg
Statistics#variance:
LLMOracleCoordinator#finalizeValidation:
Malicious validators can exploit this by inputting extremely high scores, causing arithmetic overflows that result in incorrect averages, variances, or other statistical measures. This can lead to failures in functions such as finalizeValidation, where calculations on these scores are essential for distributing rewards or validating outcomes.
Manual Review
valid score values should be in a range, and revert if validator inputs score outside the range
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.