The burn function in the BidBeasts NFT contract allows any address to burn any NFT, regardless of ownership. This function lacks proper access control, enabling malicious actors to permanently destroy any user's NFTs without permission.
Likelihood:
Any malicious actor can call this function at any time without restrictions
The function is publicly accessible and requires no special permissions
Attackers can systematically burn all NFTs in the collection
No gas cost barrier prevents mass destruction attacks
Impact:
Complete loss of user NFTs with no recovery mechanism
Destruction of marketplace listings and active auctions
Loss of user investment and collection value
Alternatively, consider inheriting from OpenZeppelin's ERC721Burnable which implements proper access control:
In the BidBeasts ERC721 implementation, the burn function is publicly accessible, allowing any external user to burn NFTs they do not own. This exposes all tokens to unauthorized destruction and results in permanent asset loss.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.