Skip to content

Sherlock

NFTPort

Every publicly disclosed report for NFTPort and what kind of bugs they were.

disclosed reports
10
most reported class
Business logic
bug classes found
4
first disclosure
2022
Find NFTPort on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what NFTPort chose to make public.

Business logic

Missing check for equal length arrays in transferByOwnerBatch and mintByOwnerBatch

The batch transfer and batch mint functions in an ERC1155 contract iterate over the ids array without checking that the other arrays have the same length. If the ids array is shorter, the extra entries in the other arrays are silently ignored, so a caller could get a transfer or mint that does not match what they intended.

NFTPort

Medium
Crypto

`abi.encodePacked` Allows Hash Collision

The Factory contract hashed several user-supplied dynamic arguments together with abi.encodePacked before checking a signature, so different argument combinations could produce the same hash. An attacker could therefore pass values that were never signed and still satisfy the signedOnly modifier.

NFTPort

Medium
Access control

Freezing roles in ERC721NFTProduct and ERC1155NFTProduct is moot

The role-freezing feature in the NFT contracts is ineffective because the ADMIN_ROLE can bypass all role restrictions, including DEFAULT_ADMIN_ROLE, allowing the admin to still grant and revoke roles. An attacker with ADMIN_ROLE could modify roles despite the intended freeze.

NFTPort

Medium
Business logic

Template implementations doesn't validate configurations properly

The NFT template contracts fail to validate royalty configuration fields in their initialize and update functions, allowing an admin to set a royalty percentage above 100%. An attacker with admin access could set an excessive royalty, causing users to pay more than the sale price in royalties.

NFTPort

Medium
Business logic

registerTemplate() can't handle properly when ITemplate version is 0

The registerTemplate function fails to set the latest implementation when a template's version is 0, leaving latestImplementation as the zero address and causing duplicate entries in _templateNames. This can lead external contracts to believe no setup exists, resulting in repeated failed setup attempts.

NFTPort

Medium
Access control

Factory uses signature that do not have expiration

The Factory contract verifies signatures without any expiration time, so a signature remains valid indefinitely. An attacker who obtains a valid signature can reuse it forever, and the only way to revoke it is to change the trusted signer role.

NFTPort

Medium