Eggstravaganza

First Flight #37
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: high
Invalid

NFT Permission Control Failure

## Summary ### NFT Permission Control Failure ## Vulnerability Details `EggstravaganzaNFT.mintEgg()` is not bound to the game's active state1, allowing unlimited minting once the `gameContract` address is set. An attacker can call after the game ends: ```Solidity <SOLIDITY> ``` ```Solidity function mintEgg(address to, uint256 tokenId) external returns (bool) { require(msg.sender == gameContract, "Unauthorized minter"); // No state check _mint(to, tokenId);} ``` ## Impact Leads to unlimited NFT minting, disrupts the digital asset scarcity model, and causes economic system collapse. ## Tools Used Manual Review ## Recommendations ```Solidity <SOLIDITY> ``` ```Solidity require(EggHuntGame(gameContract).gameActive(), "Minting disabled"); ```

Updates

Lead Judging Commences

m3dython Lead Judge 2 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.