code-423n4 / 2024-08-superposition-findings

3 stars 1 forks source link

OwnershipNFTs do not comply with ERC721, breaking composability #49

Open howlbot-integration[bot] opened 2 months ago

howlbot-integration[bot] commented 2 months ago

Lines of code

https://github.com/code-423n4/2024-08-superposition/blob/main/pkg/sol/OwnershipNFTs.sol#L13

Vulnerability details

OwnershipNFTs within the contract deviate from the ERC721 standard, leading to issues with composability and interoperability. Following are the missing things which are mandated by the ERC721 specification:

Impact

The non-compliance with ERC721 results in Breaking Composability and also

Proof of Concept

https://github.com/code-423n4/2024-08-superposition/blob/main/pkg/sol/OwnershipNFTs.sol#L13

Tools Used

Manual Review

Recommended Mitigation Steps

Align OwnershipNFT contract with the ERC721 standard.

Assessed type

ERC721

af-afk commented 2 months ago

I don't believe we made compatibility with ERC721 a goal of the contest, but we'll fix this anyway.

alex-ppg commented 2 months ago

The submission and its duplicates detail various deviancies from the EIP-721 standard that are not imperative to the functionality of the NFT itself.

The contract does not indicate that it must be strictly compliant with the standard, and the documentation of the project does not indicate so.

As such, I consider all submissions of this duplicate set to be QA recommendations as to how the contract can become compliant.

To note, submission #55 was considered a proper vulnerability due to how the presence of the code itself solely serves the purpose of satisfying the EIP-721 callback mechanism rather than being a generic NFT feature.

c4-judge commented 2 months ago

alex-ppg changed the severity to QA (Quality Assurance)

c4-judge commented 2 months ago

alex-ppg marked the issue as grade-c

c4-judge commented 1 month ago

This previously downgraded issue has been upgraded by alex-ppg

c4-judge commented 1 month ago

alex-ppg changed the severity to QA (Quality Assurance)

c4-judge commented 1 month ago

alex-ppg marked the issue as grade-b