Canto Identity Subprotocols contest - Respx's results

Subprotocols for Canto Identity Protocol.

General Information

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

Canto Identity Subprotocols

Findings Distribution

Researcher Performance

Rank: 74/98

Findings: 1

Award: $19.87

🌟 Selected for report: 0

🚀 Solo Findings: 0

Findings Information

Awards

19.8705 USDC - $19.87

Labels

bug
2 (Med Risk)
satisfactory
duplicate-212

External Links

Lines of code

https://github.com/code-423n4/2023-03-canto-identity/blob/077372297fc419ea7688ab62cc3fd4e8f4e24e66/canto-pfp-protocol/src/ProfilePicture.sol#L73

Vulnerability details

Impact

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:

  • Malicious URLs leading to malware etc.
  • Illegal pornographic images.
  • Images of extreme violence.
  • "Dark web" content such as instructions on how to make or use weapons.
  • Incitements to serious crimes.

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.

Proof of Concept

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.

Tools Used

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

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter