Minting inconsistencies on FootiumPlayer and FootiumClub
The FootiumClub contract uses _mint() instead of _safeMint() when creating club NFTs, so it can mint a club to a contract that cannot handle NFTs. This could result in the NFT being stuck in a contract that cannot transfer or use it.
Source: https://github.com/sherlock-audit/2023-04-footium-judging/issues/342
Found by
0xAsen, 0xHati, 0xLook, 0xPkhatri, 0xRobocop, 0xStalin, 0xeix, 0xhacksmithh, BAHOZ, Bauchibred, Bauer, Dug, GalloDaSballo, Koolex, PTolev, Phantasmagoria, TheNaubit, Tricko, ali_shehab, cergyk, chaithanya_gali, ctf_sec, cuthalion0x, deadrxsezzz, descharre, indijanc, jasonxiale, kiki_dev, lewisbroadhurst, nzm_, oualidpro, sashik_eth, shame, shogoki, tsueti_, tsvetanovv, wzrdk3lly
Summary
The FootiumClub.sol contract when minting uses _mint() instead of _safeMint() which can cause to mint a club to a contract who does not support nfts. On the other hand FootiumPlayer.sol uses _safeMint().
Vulnerability Detail
See summary.
Impact
FootiumClub.sol might mint a club NFT to a contract that cannot handle nfts.
Code Snippet
Tool used
Manual Review
Recommendation
Use _safeMint() as in FootiumPlayer.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the FootiumClub contract calls _mint() instead of _safeMint(), omitting the receiver capability check.
Impact
FootiumClub might mint a club NFT to a contract that cannot handle NFTs, potentially locking the NFT.
What the attacker needed
Minting to a contract without NFT support
The fix
The contract should use _safeMint() as FootiumPlayer does.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a contract creates a new NFT, it can use a function that checks whether the receiver is able to handle NFTs. The FootiumClub contract skips that check, so it might send an NFT to a contract that cannot use it, leaving the NFT stuck. The FootiumPlayer contract does the check correctly.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.