This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
bin2chen - update() wrong privilege control #121
Labels
Medium
A valid Medium severity issue
Reward
A payout will be made for this issue
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
bin2chen
medium
update() wrong privilege control
Summary
oracle.update()
wrong privilege controllead to
OracleFactory.update()
unable to addoracleProvider
Vulnerability Detail
in
OracleFactory.update()
will calloracle.update()
But
oracle.update()
permission is needed forOracleFactory.owner()
and notOracleFactory
itself.This results in
OracleFactory
not being able to doupdate()
.Suggest changing the limit of
oracle.update()
tofactory()
.Impact
OracleFactory.update()
unable to addIOracleProvider
Code Snippet
https://github.com/sherlock-audit/2023-07-perennial/blob/main/perennial-v2/packages/perennial-oracle/contracts/OracleFactory.sol#L81
Tool used
Manual Review
Recommendation
The text was updated successfully, but these errors were encountered: