Closed code423n4 closed 1 year ago
141345 marked the issue as duplicate of #145
Picodes marked the issue as satisfactory
Picodes changed the severity to QA (Quality Assurance)
This previously downgraded issue has been upgraded by Picodes
Picodes marked the issue as not a duplicate
Picodes marked the issue as duplicate of #145
Lines of code
https://github.com/code-423n4/2023-07-lens/blob/cdef6ebc6266c44c7068bc1c4c04e12bf0d67ead/contracts/FollowNFT.sol#L115-L125
Vulnerability details
Impact
In scenarios where a user fails to unfollow a profile before selling his follow NFT, he could forever be unable to unfollow the profile.
Proof of Concept
A user could sell his follow NFT without unfollowing a profile. If the new owner of the follow NFT doesn't set the user as the operator or doesn't remove the current user from being a follower, the user will forever be unable to unfollow the profile.
An example scenario would be:
Tools Used
Manual Review
Recommended Mitigation Steps
Allow a profile to unfollow even if the user is not the owner of the NFT.
Assessed type
Other