low

doesn't follow the EIP standard

Contest
Reward

Total

136.49 USDC

Selected
25.82 USDC
18.44 USDC
18.44 USDC
18.44 USDC
18.44 USDC
18.44 USDC
18.44 USDC
Selected Submission

doesn't follow the EIP standard

Severity

Medium Risk

Relevant GitHub Links

https://github.com/Cyfrin/2023-12-the-standard/blob/main/contracts/SmartVaultManagerV5.sol#L94

Summary

doesn't follow the EIP standard

Vulnerability Details

The tokenURI method does not check if the NFT has been minted and returns data for the contract that may be a fake NFT

Impact

By invoking the SmartVaultManagerV5.tokenURI method for a maliciously provided NFT id, the returned data may deceive potential users, as the method will return data for a non-existent NFT id. This can lead to a poor user experience or financial loss for users. Violation of the ERC721-Metadata part standard similar finding: https://github.com/code-423n4/2023-04-caviar-findings/issues/44

Tools Used

Recommendations

Throw an error if the NFT id is invalid.