Hunt prep
Before you test AI Arena
What 17 disclosed reports say about AI Arena: 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 | 9 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Crypto 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.
-
FighterFarm::reRoll won’t work for nft id greater than 255 due to input limited to uint8
The issue was fixed by changing the tokenId parameter type to uint256.
Disclosed
-
Fighter created by mintFromMergingPool can have arbitrary weight and element
The customAttributes should be validated in mintFromMergingPool, restricting weight to a predefined range such as 65 to 95 and element to 0 to 2.
Disclosed
-
Can mint NFT with the desired attributes by reverting transaction
The attributes should not be determined in the same transaction as the mint; instead, mint first and set attributes later via an admin or a third party such as Chainlink VRF.
Disclosed
-
Fighters cannot be minted after the initial generation due to uninitialized numElements mapping
The mitigation added a setter so the admin can update the numElements mapping when a new generation is created.
Disclosed
-
DoS in MergingPool::claimRewards function and potential DoS in RankedBattle::claimNRN function if called after a significant amount of rounds passed
The functions should be changed to accept a parameter limiting the number of rounds to process per call.
Disclosed
-
NFTs can be transferred even if StakeAtRisk remains, so the user’s win cannot be recorded on the chain due to underflow, and can recover past losses that can’t be recovered (steal protocol’s token)
The unstake function should not unlock the NFT for transfer while it still has a non-zero StakeAtRisk amount.
Disclosed
-
Player can mint more fighter NFTs during claim of rewards by leveraging reentrancy on the claimRewards() function
The claimRewards function should be protected with a nonReentrant modifier.
Disclosed
-
Burner role cannot be revoked
The function should be changed to accept a boolean so the admin can both grant and revoke burning permission.
Disclosed
-
Almost all rarity rank combinations cannot be, and are not uniformly, generated
The code should be fixed by extracting multiple independent random numbers using repeated modulo and division, as suggested in the report.
Disclosed
-
Erroneous probability calculation in physical attributes can lead to significant issues
The comparison should be changed to a strict greater-than so each boundary value falls in the correct bucket.
Disclosed
-
Since you can reroll with a different fighterType than the NFT you own, you can reroll bypassing maxRerollsAllowed and reroll attributes based on a different fighterType
The reRoll function should require that the supplied fighterType matches the token's actual type, for example by checking the dendroid flag.
Disclosed
-
Malicious user can stake an amount which causes zero curStakeAtRisk on a loss but equal rewardPoints to a fair user on a win
The protocol should set a minimum stake amount (e.g., 4 NRN) and remove the rounding-up of the staking factor, instead requiring it to be greater than zero.
Disclosed
-
A locked fighter can be transferred; leads to game server unable to commit transactions, and unstoppable fighters
The project mitigated the issue by adding an override for the safeTransferFrom function with data, as confirmed in the mitigation report.
Disclosed
-
Players have complete freedom to customize the fighter NFT when calling redeemMintPass and can redeem fighters of types Dendroid and with rare attributes
The mint pass should be tied to the fighter properties, for example by using a signature mechanism that prevents the player from changing the fighter's properties, as done in claimFighters.
Disclosed
-
Non-transferable GameItems can be transferred with GameItems::safeBatchTransferFrom(...)
The contract was fixed by overriding safeBatchTransferFrom to include the transferability check.
Disclosed