The SoulboundProfileNFT
doesn't follow the CEI pattern.
mintProfile
, burnProfile
and blockProfile
don't follow the CEI pattern. In this particular case, there is no re-entrancy vulnerability because _safeMint
and burn
don't make external calls. For clarity and to prevent future security risks, it is adviced to move the call to these functions after modifying states.
There is no impact with the current contract implementation, but not following the CEI pattern could cause future errors and makes it harder to maintain.
Manual Review
Implement the following changes:
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.