The validation function LLMOracleCoordinator::assertValidNonce does not correctly follow the assertion mentioned in the code documentation which undeliberately allows a case where SHA3(taskId, input, requester, responder, nonce) == difficulty.
The function LLMOracleCoordinator::assertValidNonce is used to validate the proof of work nonce.
This is incorrect because the documentation inside the LLMOracleTask contract states the following invariant in 2 different instances at L60 and L74 respectively:
This allows a nonce where SHA3(taskId, input, requester, responder, nonce) == difficulty which is unintended.
Manual Review
It is recommended to use >= instead in assertValidNonce:
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.