Skip to content

Code4rena

Lens Protocol V2

Every publicly disclosed report for Lens Protocol V2 and what kind of bugs they were.

disclosed reports
11
most reported class
Access control
bug classes found
3
first disclosure
2023
Find Lens Protocol V2 on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Lens Protocol V2 chose to make public.

Access control

Blocked follower can keep follow with batchMigrateFollows

The migration function for V1 followers does not check whether the follower profile has been blocked by the followed profile. A blocked follower can therefore migrate their follow and become a follower again.

Lens Protocol V2

Medium
Business logic

Users can self-follow via FollowNFT::tryMigrate() on Lens V2

The FollowNFT::tryMigrate() function lacks a check to prevent a user from following their own profile, allowing a user who owns a V1 follow NFT for their own profile to self-follow on V2. This bypasses the intended restriction that users cannot self-follow.

Lens Protocol V2

Medium
Access control

Token guardian protection doesn’t account for approved operators in approve()

The token guardian protection in the approve() function only checks the caller's guardian status, not the token owner's, so an approved operator can still set approvals for a guardian-enabled owner's tokens. An attacker with operator approval could set approvals on the victim's tokens, potentially leading to unauthorised transfers if the victim does not revoke them.

Lens Protocol V2

Medium
Business logic

tryMigrate() doesn’t ensure that followerProfileId isn’t already following

The tryMigrate() function in FollowNFT.sol does not check whether a follower profile is already following, allowing a user who followed before the V2 upgrade to call follow() again and then migrate the old follow, resulting in a doubled follower count and corrupted follow data. This lets the user unfollow twice and potentially call other functions when not permitted.

Lens Protocol V2

Medium