transferERC721 doesn’t clean timelockERC721s
Visor Finance
MediumCode4rena
Every publicly disclosed report for Visor Finance and what kind of bugs they were.
Newest first. Only what Visor Finance chose to make public.
Visor Finance
MediumThe vault contract fails to delete timelock data when an NFT is transferred out via transferERC721(), leaving stale recipient information. If the same NFT is later re-deposited without a timelock, the stale recipient check prevents the owner from withdrawing it, potentially locking the NFT permanently.
Visor Finance
HighThe timeLockERC20 function calls transferFrom without checking its return value, so a failed transfer can be ignored while the contract still records the tokens as locked. An attacker could exploit this to make a recipient believe funds are locked when they are not, leading to loss for the recipient.
Visor Finance
MediumThe vault's _removeNft function loops over a single shared array of NFTs until it finds the one to remove, and anyone can push NFTs into that array through the permission-less onERC721Received callback. A malicious NFT contract could flood the array and then revert on every transfer, so other users' unlock and transfer transactions consume huge amounts of gas or fail outright.
Visor Finance
HighThe Visor contract's transferERC721 function does not clear the approval for an NFT after transferring it. An approved delegatee can move the NFT out of the contract once, and if the NFT is later re-deposited, the same delegatee can steal it again.
Visor Finance
HighNFT transfer approvals set to true are never cleared and cannot be revoked, so a delegate can transfer the NFT again if it returns to the vault or after the delegate becomes compromised.
Visor Finance
HighThe function that loops over all timelocked ERC721 token IDs could exceed the block gas limit if the collection grows large, causing transactions to fail. An attacker could not directly exploit this, but a successful project with many NFTs might make the function unusable.
Visor Finance
Medium