56658 sc insight transmuter s tokenuri does not revert for nonexistent tokenids
Description
Brief/Intro
Vulnerability Details
// Transmuter.sol
function tokenURI(uint256 id) public view override returns (string memory) {
return NFTMetadataGenerator.generateTokenURI(id, "Transmuter V3 Position");
}
// NFTMetadataGenerator.sol
function generateTokenURI(uint256 tokenId, string memory title) internal pure returns (string memory) {
string memory svg = generateSVG(tokenId, title);
string memory json = generateJSONString(tokenId, svg);
return string(abi.encodePacked("data:application/json;base64,", json));
}
Impact Details
References
Proof of Concept
Proof of Concept
Previous56845 sc high the deposit will be reverted because mytsharesdeposited references an outdated valueNext56887 sc low incorrect balance tracking in morphoyearnogwethstrategy deallocate function leads to wrong loss event emission resend
Was this helpful?