Only the current owner of the GDNFT should be able to burn their token.
Anyone can burn anyone else's GDNFT.
Likelihood:
Occurs if anyone calls the burn() function.
Impact:
Anyone can burn anyone else's GDNFT.
Add this to tests/BidBeastsMarketPlaceTest.t.sol.
Run with:
Sample output:
Add a check for the msg.sender to be the current owner of the GDNFT to burn().
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.