Missing address(0)
checks in the initialize()
functions.
In the initialize()
functions the addresses are not checked if they are valid addresses. It’s a good practice to add require checks to ensure that addresses are not zero addresses (address(0)
).
Attackers or malicious actors could try to initialize the contract with zero addresses if such checks are not present, potentially leading to denial of service or contract misconfiguration.
Manual review
Add require statements for each of the addresses to ensure they are valid and not the zero address.
For example add address(0)
checks in PriorityPool::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.