Likelihood:
Malicious users who just want to grief or troll others have easy access to this function
They can also use this to harm the Collection's reputation
They would only require gas fees for the attack and no pre-conditions
Impact:
Permanent loss of assets for honest users
Permanent destruction of valuable assets
Reputation damage
Place the following code in a new file next to BidBeastsMarketPlaceTest.t.sol
You can run this test by using forge test --mt testAnyoneCanBurnNFTin the terminal
Add proper access control so that only the owner and trusted parties can burn an NFT.
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.