The fuse function in the Namespace contract incorrectly passes a font class of 0 to the character-to-Unicode conversion, causing all font classes to produce the same name. As a result, users cannot mint names with different font classes because the name is already registered.
The ProfilePicture contract fixes its subprotocol name at construction time, so it must be registered in the SubprotocolRegistry under exactly that name to work. If someone else registers that name first, the contract cannot simply be re-registered under a different name and would have to be redeployed.
The Bio tokenURI function splits biography text into lines, but when the text contains repeated Unicode continuation characters, the line buffer overflows and the transaction reverts. An attacker could mint a bio with such text, causing tokenURI to revert and potentially making the token unusable.
The Bio contract's tokenURI function incorrectly splits bio text into lines when the text contains certain emoji sequences, such as the England flag, because it does not handle all Unicode cases. This leads to an incorrect display of the generated image, which cannot be modified afterwards, potentially causing integration problems.
The tokenURI function of the Bio NFT contract did not escape user-supplied bio text, allowing an attacker to inject JSON keys and alter the returned metadata. This could let an attacker spoof the NFT name, change the image, or potentially trigger cross-site scripting if the JSON is mishandled by a frontend.
The pseudo-random generator used to build Zalgo text distortions reduces its state modulo a small constant, so only a tiny fraction of the possible distortions can ever be produced. An attacker could not gain anything directly; the effect is that the visual variety of generated names is far smaller than intended.
The getPFP function in ProfilePicture.sol may return incorrect information if the underlying NFT is burned, because it compares the address registry's address with the NFT owner, and both can be zero. An attacker could exploit this to make getPFP return a non-zero contract address and ID for a burned NFT, potentially causing bugs in integrating projects.
The characterModifier field is a uint8, so only 256 Zalgo distortions are possible per letter, while the code's parameters imply 1.38e24 combinations. An attacker could not exploit this for gain, but users cannot obtain many desired distortions and duplicates occur.
The Bio NFT contract's tokenURI function incorrectly breaks lines when the biography contains multi-byte Unicode characters such as emojis, because it counts bytes rather than characters. This causes the generated SVG to display text incorrectly, and the text is also not centre-aligned as intended.
The buy function does not let users specify which tray they expect, so a frontrunner or a higher-gas transaction can change the hash and give the buyer a different tray than intended. The user pays for and receives an unwanted NFT instead of the transaction reverting.
The tokenURI function interpolated the raw 32-byte ABI-encoded integer ID into the URI instead of its decimal string form, so token URIs contained control characters or symbols rather than readable numbers. Offchain tools reading tokenURI could break or display malformed data.
The mint function allows an optional list of subprotocol NFTs to register, but the encoded CID NFT ID is not guaranteed to match the newly minted ID. An attacker can frontrun a mint transaction to cause the victim's transaction to revert, or this can happen randomly during busy periods.
The mint function allowed a user to attach subprotocol NFTs to any CidNFT they were approved for, not just the one they just minted. An attacker could frontrun a victim's mint and add transaction, mint the expected token ID, set the victim as approved, and then the victim's add call would attach their NFTs to the attacker's token, letting the attacker steal them.
When adding an NFT with AssociationType ORDERED or PRIMARY, the contract overwrites the previously stored NFT ID without checking, so the earlier NFT becomes permanently trapped in the contract and cannot be removed.
The AddressRegistry contract allowed multiple accounts to register the same CID NFT as their identity because it only checked current ownership at registration time and did not prevent an NFT from being registered by more than one address. An attacker could transfer their registered NFT to another account, which then registers it, causing both accounts to share the same identity and potentially gain traits or rewards without paying.
CI
Canto Identity Subprotocols contest
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.