Skip to content
Business logic Audit finding Beginner

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.

0xAsen Follow with 0xHati, 0xLook and 34 others

Originally disclosed on Sherlock

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

https://github.com/sherlock-audit/2023-04-footium/blob/main/footium-eth-shareable/contracts/FootiumClub.sol#L65

Tool used

Manual Review

Recommendation

Use _safeMint() as in FootiumPlayer.

The original report as published on Sherlock, by 0xAsen. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

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.

More by 0xAsen

View all

17 more disclosed reports, best first.

More from Footium

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.