The createEstateNFT function does not check for address(0) when assigning values to the assetToPay state variable, which can lead to loss of funds or unintended behavior.
In the createEstateNFT function, _asset is assigned to assetToPay without verifying whether _asset is a valid address. If _asset is set to address(0), the contract might incorrectly store an invalid payment asset, leading to failed transactions or loss of assets when beneficiaries attempt to pay for the estate NFT.
The payments related to the NFT may fail or be sent to an unintended destination, leading to loss of funds.
Aderyn
Add a validation check to ensure _asset is a valid address before assigning it to assetToPay :
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.