Description: The LikeRegistry
constructor accepts an address parameter _profileNFT
but does not validate if it's a zero address. The address is used to initialize the critical profileNFT
variable which is essential for the contract's core functionality.
Impact:
If deployed with address(0), the contract would need to be redeployed
All functions that interact with profileNFT
would fail
Could lead to unnecessary gas costs from failed deployment
Proof of Concept:
Recommended Mitigation: Add a zero address check in the constructor:
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.