The LiquidationKeeper::initialize function lacks a zero address check for the owner argument. While the function correctly checks that perpsEngine is not a zero address, it omits this critical validation for the owner argument. This oversight could lead to unintended behavior and potential security vulnerabilities within the system.
The initialize function is designed to set up the LiquidationKeeper contract with an owner and a perpsEngine. However, it does not verify that the owner address is not a zero address, which can lead to various issues if an invalid owner is set during initialization.
The function includes a zero address check for perpsEngine but lacks a similar check for owner
If the owner is set to a zero address, the contract may lose critical administrative functions, leading to potential security risks and loss of control over key operations.
Manual Review
To mitigate this vulnerability, a zero address check for the owner argument should be added to the initialize function. This ensures that the owner is always set to a valid address.
Here is the updated function with the necessary check:
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.