Skip to content
Business logic Audit finding Beginner

Name squatting

Creating profiles through the protocol's createProfile function costs nothing, so a whitelisted profile creator can register many desirable handles without needing them, intending to resell them later. This prevents legitimate high-profile users from obtaining their preferred handles.

cmichel Follow

Originally disclosed on Code4rena

Submitted by cmichel

LensHub.sol#L142

Creating profiles through LensHub/PublishingLogic.createProfile does not cost anything and will therefore result in “name squatting”. A whitelisted profile creator will create many handles that are in demand, even if they don’t need them, just to flip them for a profit later. This ruins the experience for many high-profile users that can’t get their desired handle.

Recommended Mitigation Steps

Consider auctioning off handles to the highest bidder or at least taking a fee such that the cost of name squatting is not zero.

donosonaumczuk (Aave Lens) disputed

oneski (Aave Lens) commented:

Declined. This is by design. Governance can allow contracts/addresses to mint. If governance allows a malicious actor that is the fault of governance. Governance can also allow contracts that implement auction or other functionality as well to manage the profile minting system.

The protocol should take no opinion on this by default.

0xleastwood (judge) decreased severity to Medium and commented:

I will mark this as medium risk for the same reasons outlined in M-03 (Issue #26).


The original report as published on Code4rena, by cmichel. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the profile creation function has no cost or restriction beyond being whitelisted, allowing a whitelisted creator to register unlimited handles for free.

Impact

A whitelisted profile creator could register many desirable handles for free, preventing legitimate users from obtaining them; the protocol team disputed this as by design, and the judge rated it medium risk.

What the attacker needed

Whitelisted profile creator; no cost to create profiles

The fix

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.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A handle is a unique username. Here, creating a profile costs nothing, so someone allowed to create profiles can take many good usernames and keep them, even if they do not use them, to sell later. This stops other people from getting the username they want.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by cmichel

View all

196 more disclosed reports, best first.

More from Aave Lens contest

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.