sherlock-audit / 2023-09-perennial-judging

0 stars 0 forks source link

Nadin - `PythOracle.sol#commitRequested()` does not work properly due to data parameter mismatch. #2

Closed sherlock-admin closed 1 year ago

sherlock-admin commented 1 year ago

Nadin

medium

PythOracle.sol#commitRequested() does not work properly due to data parameter mismatch.

Summary

When PythOracle.sol#commitRequested() is reached and modifier keep() is called, "" is passed as an argument, then passed into the function _raiseKeeperFee() as the data argument. As a result, it will lead to function does not work properly.

Vulnerability Detail

Manual Review

Recommendation

sherlock-admin commented 1 year ago

3 comment(s) were left on this issue during the judging contest.

panprog commented:

invalid because for PythOracle keep() will call _raiseKeeperFee which is in PythOracle, not in MultiInvoker, and in PythOracle _raiseKeeperFee ignores data

n33k commented:

invalid, the data is passed to PythOracle::_raiseKeeperFee, not MultiInvoker::_raiseKeeperFee

polarzero commented:

Invalid. The issue raised is indeed a valid concern, as it is important to explicitly handle unexpected behavior; however, this does not seem to qualify either as a medium or high severity vulnerability.