Hunt prep
Before you test Lens Protocol V2
What 11 disclosed reports say about Lens Protocol V2: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Access control lesson | 5 | 0 | – | – | $0 |
| Business logic lesson | 4 | 0 | – | – | $0 |
| Crypto lesson | 2 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Blocked follower can keep follow with batchMigrateFollows
The migration function should check the block status and not migrate the follow if the follower is blocked.
Disclosed
-
Users can make any user follow them via FollowNFT::tryMigrate() without their consent
The migration should be reworked to prevent fake follows, for example by restricting it to whitelisted accounts or token owners, or by only migrating tokens that have not been transferred.
Disclosed
-
Users can self-follow via FollowNFT::tryMigrate() on Lens V2
Add a check in FollowNFT::tryMigrate() to return 0 if the follower profile ID equals the followed profile ID.
Disclosed
-
Token guardian protection doesn’t account for approved operators in approve()
The approve() function should also check whether the token's owner has token guardian enabled, not just the caller.
Disclosed
-
Whitelisted profile creators could accidentally break migration for V1 profiles
The project mitigated the issue by adding a function to check if a handle already exists in LensHub and validating against it in the ProfileCreationProxy before minting a new handle.
Disclosed
-
Identifying publications using its ID makes the protocol vulnerable to blockchain re-orgs
The report recommends identifying publications by a content-dependent method, such as requiring a keccak256 hash of the publication's contents alongside its ID.
Disclosed
-
tryMigrate() doesn’t ensure that followerProfileId isn’t already following
The tryMigrate() function should check if the follower profile is already following and return early if so.
Disclosed
-
Users cannot unfollow if they do not own the FollowNFT of the followTokenId used for their profile
The unfollow function should be changed to also allow the owner of the unfollower profile to unfollow.
Disclosed
-
Users can unfollow through FollowNFT contract when LensHub is paused by governance
Add a whenNotPaused modifier to the removeFollower and burn functions in FollowNFT that checks the LensHub contract's state.
Disclosed