changeFeeAddress function does not validate the new fee address before updating it. This lack of validation allows the owner to inadvertently or maliciously set the fee address to the zero address (0x0), which could lead to loss of funds or disruption of the contract's fee distribution mechanism.
Relevant code snippet:
Loss of Funds: Any Ether sent to the zero address is irretrievably lost. If the fee address is set to 0x0, fees collected by the contract would be sent to an unrecoverable address.
Reduced Contract Credibility: Such a simple oversight might raise concerns about the overall security and reliability of the contract.
Implement Address Checks: Add a requirement in the changeFeeAddress function to ensure that the new fee address is not the zero address.
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.