Hunt prep
Before you test Footium
What 9 disclosed reports say about Footium: 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 | 7 | 0 | – | – | $0 |
| Access control lesson | 1 | 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.
-
Escrow approvals are not cleared when club is transferred allowing for abuse after transfer
The club escrow system should be redesigned to clear approvals when the club is transferred.
Disclosed
-
Malicious users can honeypot other users by transferring out ERC20 and ERC721 tokens right before sale
The club/escrow system should be redesigned to prevent token transfers once a sale is pending, for example by locking the escrow during the sale.
Disclosed
-
Users might lose funds as `claimERC20Prize()` doesn't revert for no-revert-on-transfer tokens
Use SafeERC20's safeTransfer to transfer ERC20 tokens, and apply the same fix to transferERC20 in FootiumEscrow.sol.
Disclosed
-
Minting inconsistencies on FootiumPlayer and FootiumClub
The contract should use _safeMint() as FootiumPlayer does.
Disclosed
-
Clubs can mint +1 players more than maxGenerationId
The check should be changed to use a non-strict comparison (e.g., generationId >= maxGenerationId) or the zero index should not be counted.
Disclosed
-
Merkle leaf values for _clubDivsMerkleRoot are 64 bytes before hashing which can lead to merkle tree collisions
The recommendation is to use a combination of variables that doesn't sum to 64 bytes.
Disclosed
-
`changeMaxGenerationId` allows to mint tokens from older generations retroactively
The contract should enforce that minting is only allowed for the current season, or the validation should check the generation and season being minted.
Disclosed
-
Certain ERC20 token does not return bool from approve and transfer and transaction revert
Use OpenZeppelin's SafeTransfer and SafeApprove, which handle tokens that do not return a boolean.
Disclosed
-
Users can bypass Player royalties on EIP2981 compatible markets by selling clubs as a whole
Implement EIP2981 on the FootiumClub contract as well, so that royalties are paid on club sales.
Disclosed