Dria

Swan
NFTHardhat
21,000 USDC
View results
Submission Details
Severity: medium
Valid

Lack of Bounds In Scores For Validation Of Responses In The Validate function

Summary

The validate function does not implement a maximum and minimum score value. This means a single score value outside the expected range of values can extremely skew the mean and standard deviation from the mean value when tasks are being validated finally.

E.g an expected score value of 1e18 to 10e18 and a validator inputs a score value of 100e18. This can skew the mean value by a lot and make a lot of generations fall outside the expected range of scores.

Impact

The impact is basically wrong validation and generation scores for a task due to a skew in the mean and standard deviation value.

Recommendations

Implement a bound in the function for validators so that every score value in the array falls between those bounds

Updates

Lead Judging Commences

inallhonesty Lead Judge 9 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Unbounded score values in `validate` function

Support

FAQs

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