Malicious validator can give a score with a very large number to generation, this may lead unintended behavior for the protocol. Unintended behavior here includes influencing the results of the getBestResponse()
function, which has an important role in determining which generation best fits the buyerAgent
description and will be purchased then influencing the calculation of the value to determine which validators whose scores fall within the range will receive rewards
Based on contest README, validator NOT TRUSTED, it may malicious and harm protocol
And in addition, the sponsor's statement that the supposed value for scores are 0e18 - 1e18
and the natspec
in the codebase states that the function will revert if it exceeds the upper limit
But in reality it is not so, the malicious validator can enter a scores greater than 1e18 and the validate()
function does not revert
create any test file and rename it —> copy this code —> run yarn test ‘path/test.test.ts’
Unintended behavior : influencing the results of the getBestResponse()
function, which has an important role in determining which generation best fits the buyerAgent
description and will be purchased then influencing the calculation of the value to determine which validators whose values fall within the range will receive rewards
Manual Review
Consider add check for input value of scores
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.