NFTBridge
60,000 USDC
View results
Submission Details
Severity: low
Invalid

No Check on ERC1155 Metadata in `depositTokens`

Summary

The depositTokens function calls TokenUtil.erc1155Metadata(collectionL1) without checking if the metadata is valid or if the ERC1155 token is properly configured. If the metadata retrieval fails or returns incorrect data, it could cause issues with the deposit process.

Recommendations

Implement a validation step to ensure the ERC1155 metadata is valid and the tokens are correctly configured before proceeding with the deposit.

Updates

Lead Judging Commences

n0kto Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Out of scope
Assigned finding tags:

invalid-ERC1155-not-in-scope

```compatibilities: Blockchains: - Ethereum/Starknet Tokens: - [ERC721](www.tokenstandard.com) ``` ``` function depositTokens( uint256 salt, address collectionL1, snaddress ownerL2, uint256[] calldata ids, bool useAutoBurn ) external payable { if (!Cairo.isFelt252(snaddress.unwrap(ownerL2))) { revert CairoWrapError(); } if (!_enabled) { revert BridgeNotEnabledError(); } CollectionType ctype = TokenUtil.detectInterface(collectionL1); if (ctype == CollectionType.ERC1155) { @> revert NotSupportedYetError(); } … } ```

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.