In the initialize
function of PriceAdapter
contract, the __Ownable_init
is initialised with params.owner
. However there is no validation checks to ensure that params.owner
is not a zero address. The absence of such validation could potentially result in the contracts being initialized without a designated Admin or owner, compromising the permission management system within these contracts and leaving the contracts vulnerable to unauthorized access and manipulation.
Code sample
src/utils/PriceAdapter.sol
Add validation of non zero address for params.owner
in the PriceAdapter::initialize
function
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.