Dria

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

Registry Whitelisting

Summary

In the LLMOracleRegistry contract, any account can register as an oracle by staking a specified amount of tokens. However, the contract lacks mechanisms for managing or penalizing malicious oracles. Specifically, once registered, an oracle cannot be forcefully unregistered by the contract owner, even in cases of malicious behaviour. Consequently, there is no way for the owner to penalize such behaviour by seizing the staked tokens or removing the oracle from the registry.

Impact

A malicious oracle in the system can negatively affect the accuracy of responses or validations, potentially providing erroneous data. This impact is especially critical in scenarios where a single oracle serves as the sole validator or responder. This will affect for example the BuyerAgent and the purchase function will revert.

Tools Used

Manual Review

Recommendations

There are two ways to handle this problem:

  1. Consider implementing a penalty mechanism. If an oracle acts maliciously, the owner can unregister this oracle and get the staked amount.

  2. Only the owner can whitelist oracles. This can prevent malicious oracles to register.

Updates

Lead Judging Commences

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

There is no oracle whitelisting

Support

FAQs

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