Description: In BidBeasts_NFT_ERC721, the burn function lacks access control, allowing any user to burn tokens they do not own.
This can lead to unauthorized destruction of tokens, resulting in loss of assets for token holders.
If the token was burned when listed for sale, it could also disrupt marketplace operations.
Impact: Unauthorized users can destroy tokens they do not own,
leading to potential financial loss for token holders and disruption of marketplace activities.
Proof of Concept:
add a test file BidBeastTest.t.sol with the following content:
and run test testBurnByNonOwner
Recommended Mitigation:
add an ownership check in the BidBeasts_NFT_ERC721:burn function to ensure that only the token owner can burn the token.
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.