Description: OpenZeppelin's ERC721 contract includes a public function name(), which returns the token collection's name. This function is accessible within SoulboundProfileNFT
unless a local variable or parameter with the same name is declared. The function parameter "name" shadows ERC721.name(), meaning that inside SoulboundProfileNFT::mintProfile
, "name" will always refer to the parameter. As a result, the use of "name" might be incorrect.
Recommended Mitigation: Change the "name" parameter to something else, like "profileName".
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.