code-423n4 / 2023-01-drips-findings

0 stars 2 forks source link

BURN any ERC721 tokens in DRIFT NFT protocol by just sending the tokenID on the public burn function #179

Closed code423n4 closed 1 year ago

code423n4 commented 1 year ago

Lines of code

https://github.com/code-423n4/2023-01-drips/blob/main/src/NFTDriver.sol#L244

Vulnerability details

Impact

Proof of Concept

Call this public burn function by sending the tokenID as an input to the function

function burn(uint256 tokenId) public override whenNotPaused {
        super.burn(tokenId);
    }

Tools Used

Manual

Recommended Mitigation Steps

GalloDaSballo commented 1 year ago

Invalid https://github.com/OpenZeppelin/openzeppelin-contracts/blob/3b591a48acaab78008ed39d60fbcf429a83155ca/contracts/token/ERC721/extensions/ERC721Burnable.sol#L23

c4-judge commented 1 year ago

GalloDaSballo marked the issue as unsatisfactory: Invalid