Owner of the nft is able to call the burn function on his owned nft by providing the tokenId as an argument to the burn function.
Problem is that owner of the token is not the only one that can burn his nft, in fact it is everyone who can supply his token id resulting in owners permanent loss of nft.
Likelihood:
This occurs when malicious actor calls the burn function which is callable by everyone and provides the id of the token he is not an owner of.
Impact:
Results in the permanent loss of the users NFTs.
Place this function inside of the BidBeastsMarketPlaceTest.t.sol inside of the contract BidBeastsNFTMarketTest
By simply adding a check whether the owner of the token is msg.sender it would be impossible for someone else to burn someone elses 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.