Closed sherlock-admin closed 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.
Nadin
medium
PythOracle.sol#commitRequested()
does not work properly due to data parameter mismatch.Summary
When
PythOracle.sol#commitRequested()
is reached and modifierkeep()
is called,""
is passed as an argument, then passed into the function_raiseKeeperFee()
as thedata
argument. As a result, it will lead to function does not work properly.Vulnerability Detail
PythOracle.sol#commitRequested()
,""
is passed as adata
in modifierkeep()
: herekeep()
,""
is passed as adata
into function_raiseKeeperFee()
: here_raiseKeeperFee()
: here""
will returns unexpected value.Impact
PythOracle.sol#commitRequested()
does not work properly due to data parameter mismatch. As a result, it will lead to function does not work properly.Code Snippet
https://github.com/sherlock-audit/2023-09-perennial/blob/main/perennial-v2/packages/perennial-oracle/contracts/pyth/PythOracle.sol#L129C14-L133
Tool used
Manual Review
Recommendation
keep()
in functionPythOracle.sol#commitRequested()
.