Hunt prep
Before you test TraitForge
What 25 disclosed reports say about TraitForge: 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 | 19 | 0 | – | – | $0 |
| Access control lesson | 4 | 0 | – | – | $0 |
| DoS lesson | 1 | 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.
-
Griefing attack on seller’s airdrop benefits
The burn function should skip reducing the user amount if the caller is the NukeFund contract or is not the initial owner.
Disclosed
-
Forger Entities can forge more times than intended
The check should use a strict less-than comparison instead of less-than-or-equal, so that the count cannot reach the potential before incrementing.
Disclosed
-
Wrong minting logic based on total token count across generations
The loop should check generationMintCounts[currentGeneration] instead of _tokenIds.
Disclosed
-
The maximum number of generations is infinite
Add a require statement in _incrementGeneration to ensure currentGeneration does not exceed maxGeneration.
Disclosed
-
Pause and unpause functions are inaccessible
Expose public pause and unpause functions restricted to the owner or an authorised role that call the internal Pausable methods.
Disclosed
-
NFTs mature too slowly under default settings.
The defaultNukeFactorIncrease variable should be set to a reasonable value, such as at least 33750, to reflect the intended maturation speed.
Disclosed
-
Duplicate NFT generation via repeated forging with the same parent
The contract should track which parent pairs have already been forged and reject repeated use of the same pair.
Disclosed
-
Incorrect isApprovedForAll check in the NukeFund.nuke() function
The check should use the token owner's address instead of msg.sender when calling isApprovedForAll.
Disclosed
-
Excess ETH from forgingFee can get stuck in EntityForging under certain situations
The contract should either require exact payment or refund any excess ETH to the sender.
Disclosed
-
Each generation should have 1 “Golden God” NFT, but there could be 0
The initializeAlphaIndices function should be modified to re-roll if the selected slot and index would place the Golden God in the last 10 entropies.
Disclosed
-
A dev will lose rewards if after claiming his rewards he mints an NFT
Follow the checks-effects-interactions pattern and transfer the developer's funds only after updating all state variables in DevFund::claim().
Disclosed
-
Funds can be locked indefinitely in NukeFund.sol
Add a function that allows the contract owner to withdraw funds in case of emergencies or when all NFTs are burned.
Disclosed
-
Incorrect percentage calculation in NukeFund and EntityForging when taxCut is changed from default value
The fix is to implement a basis point system where taxCut is expressed in basis points (e.g., 10_000 for 100%) and calculations use multiplication and division by 10_000, and to add a boundary check in setTaxCut.
Disclosed
-
Lack of slippage protection in dynamic pricing mint function
The mint function should be fixed by adding slippage protection, such as a caller-supplied maximum price or minimum number of NFTs.
Disclosed
-
Incorrect check against golden entropy value in the first two batches
The check should be updated to validate each of the 13 individual entropies within the packed slot value rather than the whole slot.
Disclosed