Hunt prep
Before you test Aave Lens contest
What 13 disclosed reports say about Aave Lens contest: 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 |
|---|---|---|---|---|---|
| Business logic lesson | 8 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| Race condition lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 1 | 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.
-
Profile creation can be frontrun
A commit/reveal scheme for the handle and the entire profile creation could mitigate this issue.
Disclosed
-
Collect modules can fail on zero amount transfers if treasury fee is set to zero
The code was fixed by only performing the treasury fee transfer when the amount is positive.
Disclosed
-
Cashback on referral
The recommended mitigation is to whitelist certain infrastructure providers as referrers and disallow arbitrary profiles.
Disclosed
-
Imprecise management of users’ allowance allows the admin of the upgradeable proxy contract to rug users
The report recommends that transferFrom should always use msg.sender as the from address and that contracts holding user allowances should be non-upgradeable, suggesting a separate non-upgradeable payment contract.
Disclosed
-
Reentrancy allows commenter to overwrite own comments
The new publication count should be stored in a variable before the comment is created and used during creation, rather than being chosen afterwards.
Disclosed
-
Zero collection module can be whitelisted and set to a post, which will then revert all collects and mirrors with `PublicationDoesNotExist
The report recommends prohibiting the zero address from being whitelisted as a collect module, or explicitly implementing the error path if rejecting collects/mirrors is desired; the project chose not to change anything.
Disclosed
-
It’s possible to follow deleted profiles
The check should compare the stored profile ID for the handle against the profile ID being followed, and the issue was resolved in a pull request.
Disclosed
-
Missing whenNotPaused
The issue was fixed by adding the whenNotPaused modifier to the _beforeTokenTransfer hook.
Disclosed
-
Approvals not cleared when transferring profile
The text recommends resetting all approvals upon transfer, but the project stated the module would not be deployed and would be revisited for future functionality.
Disclosed
-
Ineffective Whitelist
The report recommends limiting the number of profile creations per whitelisted user or severely limiting who is allowed to create profiles, making profile creation a centralized system.
Disclosed
-
Name squatting
The report recommends auctioning handles to the highest bidder or charging a fee so that name squatting is not free; the protocol team declined, stating this is by design and governance can manage minting.
Disclosed
-
Inappropriate handling of referralFee makes collecting Mirror fails without error when referrerProfileId is burned
The lookup should be wrapped in a try/catch so that a missing referrer is treated as non-existent and the collect still succeeds.
Disclosed