Platform: Code4rena
Start Date: 17/03/2023
Pot Size: $36,500 USDC
Total HM: 10
Participants: 98
Period: 3 days
Judge: leastwood
Total Solo HM: 5
Id: 223
League: ETH
Rank: 74/98
Findings: 1
Award: $19.87
🌟 Selected for report: 0
🚀 Solo Findings: 0
19.8705 USDC - $19.87
Whilst it is quite understandable that Canto may wish to give its users a censorship free ability to set profile pictures, it is worth considering the worst case scenarios.
Some of the most damaging types of content might be:
ProfilePicture.sol
is created by Canto and will presumably be deployed by Canto. It could potentially damage the reputation of Canto or the future of the blockhain if such content remains locked in place on the Canto blockchain in a Canto deployed contract.
It is clear from the code that ownership is the only limitation on the information returned by ProfilePicture.tokenURI()
. This function simply returns whatever the image NFT returns when its own tokenURI()
function is called.
Manual inspection
Consider adding a basic ownership model to ProfilePicture
that would allow for the removal of the most extreme harmful content. Alternatively, if that approach is too restrictive, consider adding a blacklist functionality.
#0 - c4-judge
2023-03-29T05:09:12Z
0xleastwood marked the issue as duplicate of #212
#1 - c4-judge
2023-04-11T19:36:36Z
0xleastwood marked the issue as satisfactory