The reRoll function in FighterFarm takes a token ID as an 8-bit unsigned integer, so any fighter with an ID above 255 cannot be passed to the function. An attacker could not exploit this, but legitimate owners of higher-numbered fighters are unable to use the re-roll feature.
The claimRewards function in MergingPool passes user-supplied customAttributes directly to mintFromMergingPool without validating weight or element, allowing a winner to create a fighter with arbitrary values such as zero or the maximum uint256. This could let a fighter have an extreme weight that prevents knockback or an element outside the allowed set, affecting battle outcomes.
The NFT's random attributes are generated in the same transaction that mints it, so a user with a contract wallet can revert the transaction if the attributes are not desired and retry until they get the ones they want. This lets an attacker mint an NFT with specific attributes instead of random ones.
The smart contract's role management is broken because the owner is never granted the default admin role, so minter, staker and spender roles can never be revoked. An attacker who gains one of these roles cannot be removed by the owner.
The numElements mapping, which stores the number of possible element types per fighter generation, is only initialised for generation 0. When the protocol moves to a new generation, the mapping remains zero, so any attempt to mint a fighter in that generation reverts due to a modulo-by-zero panic.
The claimRewards and claimNRN functions loop from the user's last claimed round to the current round, and claimRewards also loops over all winners per round. If many rounds pass, the gas cost can exceed the block gas limit, preventing users from claiming rewards.
A Fighter NFT can be unstaked and transferred while it still has tokens at risk, so the new owner's win cannot be recorded because the reclaim function underflows. This also lets a user recover past losses that should be unrecoverable, effectively stealing protocol tokens.
The claimRewards function in the MergingPool contract lacks reentrancy protection, allowing a malicious contract to reenter during NFT minting and mint more fighter NFTs than the rewards owed. An attacker could obtain extra NFTs beyond their legitimate winnings.
The admin function that grants permission to burn game items only sets the permission to true and cannot set it back to false. If an admin accidentally grants this permission to the wrong address, that address can burn any user's tokens and the permission cannot be revoked.
The code derives six rarity ranks from a single DNA value by dividing by fixed divisors and taking modulo 100, which makes only a tiny fraction of all possible rank combinations reachable and biases the distribution. An attacker could predict or exploit the non-uniform rarity of generated fighters, undermining the game's fairness and economy.
The attribute generation code used an inclusive comparison when walking cumulative probabilities, so the boundary value was counted in the wrong bucket. This skewed the odds of each trait by one percent, making rare traits more common or even impossible to obtain, which affects fighter valuations.
The reRoll function did not check that the supplied fighterType matched the NFT's actual type, so a user could pass a different type to bypass the per-type reroll limit and recalculate attributes using another type's generation and criteria.
The staking factor calculation rounds up to one when the square root of the staked amount is zero, and the stake-at-risk calculation rounds down, so a player staking a tiny amount (1 wei) gets the same reward points as a player staking just under 4 NRN on a win, but loses nothing on a loss. An attacker could stake a minimal amount to avoid any penalty while still earning full reward points.
The FighterFarm contract only restricted transfers in two of the three ERC721 transfer functions, leaving the safeTransferFrom variant with a data parameter unchecked. An attacker could use that function to transfer a locked fighter, making it unstoppable or turning it into a poison pill that prevents the game server from committing battle results.
The redeemMintPass function let players choose the fighter type and DNA when redeeming a mint pass, so they could mint Dendroid fighters and reuse DNA from previous transactions to obtain rare attributes. This broke the intended randomness and rarity of fighter attributes.
The GameItems contract overrides safeTransferFrom to block transfers of non-transferable items but fails to override safeBatchTransferFrom, so a user can move those items in a batch. An attacker could transfer items that were meant to be locked.
AA
AI Arena
High
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.