Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.46 KB

Account creation spam.md

File metadata and controls

39 lines (29 loc) · 1.46 KB

Hermez has a limit of 2**MAX_NLEVELS accounts.

There is no fee on account creation, so an attacker can spam the network with account creation to fill the tree.

If MAX_NLEVELS is below 32, an attacker can quickly reach the account limit.

If MAX_NLEVELS is above or equal to 32, the time required to fill the tree will depend on the number of transactions accepted per second, but will take at least a couple of months.

Ethereum miners do not have to pay for account creation. Therefore, an Ethereum miner can spam the network with account creation by sending L1 user transactions.

Recommendation:

Short term, add a fee for account creation or ensure MAX_NLEVELS is at least 32.

Also, monitor account creation and alert the community if a malicious coordinator spams the system.

This will prevent an attacker from spamming the system to prevent new accounts from being created.

Long term, when designing spam mitigation, consider that L1 gas cost can be avoided by Ethereum miners.


Slide Screenshot

151.jpg


Slide Text

  • ToB Audit Hermez Network Finding 4
  • DoS
  • Account Creation
  • No Fee -> Max Accounts
  • Add Fee
  • Monitor Account Creation

References


Tags