Submitted by klau5
Can move the newly created ShortRecord using the NFT that was minted in the past.
Even if the ShortRecord is closed, the previously minted NFT is not burnt. The s.nftMapping[tokenId].shortRecordId data is not deleted either. Therefore, when a ShortRecord is created by reusing the same ID, the existing NFT points to the new ShortRecord.
However, when transferring the NFT and the ShortRecord, it does not check whether this NFT is a newly minted NFT or a past NFT. Those who have been allowed to transfer the NFT in the past still can transfer the newly created ShortRecord.
This is PoC. Add it to ERC721Facet.t.sol and run it:
Invalid Validation
ditto-eth (DittoETH) confirmed, but disagreed with severity and commented:
klau5 (warden) commented:
hansfriese (judge) decreased severity to Medium and commented:
