Hunt prep
Before you test NFTPort
What 10 disclosed reports say about NFTPort: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 5 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| Crypto lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Factory.sol : Issue with arbitrary data as signature in signature based call and deploy methods
The issue was fixed by following the EIP-712 standard for hashing and signing data, which includes a domain separator with contract address and chain ID.
Disclosed
-
Attackers can bypass `tokensPerMint` and mint lots of tokens in a transaction
The issue was fixed by adding a reentrancy guard to the mint and presale mint functions.
Disclosed
-
The supply of NFT for each tokenID in ERC1155NFTProduct cannot be modified after the first minting
The _exists check should be removed from the minting logic so that additional tokens can be minted for an existing tokenId.
Disclosed
-
Missing check for equal length arrays in transferByOwnerBatch and mintByOwnerBatch
The functions were fixed by adding checks that the to, ids, amounts and uris arrays are all equal in length.
Disclosed
-
`abi.encodePacked` Allows Hash Collision
It was fixed by switching to EIP-712 standard hashing and signing of the data.
Disclosed
-
Freezing roles in ERC721NFTProduct and ERC1155NFTProduct is moot
The issue was fixed by overriding grantRole and revokeRole in GranularRoles.sol to revert when called.
Disclosed
-
_validateDeploymentConfig function in NFTCollection.sol doesn't check all conditions
The issue was fixed by adding a check that tokensPerMint must be less than or equal to maxSupply.
Disclosed
-
Template implementations doesn't validate configurations properly
The contracts were fixed by adding checks for royaltiesBps in both initialize and update functions.
Disclosed
-
registerTemplate() can't handle properly when ITemplate version is 0
The issue was fixed by preventing the use of version 0, only allowing versions greater than 0.
Disclosed
-
Factory uses signature that do not have expiration
The issue was fixed by adding an expiration parameter to the signature and checking it, following the EIP-712 standard.
Disclosed