During the review of the blockProfile
function in the SoulboundProfileNFT
contract, it was observed that the contract owner could inadvertently pass their own address as the blockAddress
parameter. This would result in the unintended removal of their own profile NFT, potentially locking them out of profile-related functionalities.
No check for if the msg.sender passes its own address mistakenly.
Since there is no check preventing the contract owner from passing their own address, they could mistakenly delete their own profile.
If the owner accidentally burns their profile NFT, they may lose access to profile-based functionalities.
Manual Review
Add this check to the blockProfile
function:
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.