The ZlpVault::initialize
function does not include a check to validate that the provided marketMakingEngine
, owner
, and asset_
addresses are not zero addresses (address(0))
. This could lead to unintended behavior, such as the contract approving transactions for an invalid address or assigning ownership to an invalid address, potentially causing a loss of control or malfunctioning of the contract.
A zero address could unintentionally be used as the marketMakingEngine
or owner, or as the asset_
token, leading to irreversible issues like loss of control or asset approval to an unintended address.
The lack of validation on these critical addresses can disrupt contract operations, potentially resulting in unexpected behavior when interacting with other contract functions.
Manual review
Add checks to validate that the marketMakingEngine
, owner
, and asset_
addresses are not zero addresses (address(0)). These checks should revert or fail the transaction if any of these addresses is invalid.
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.