Skip to content

Potential risk of unlimited UserOP gas fee #10

@Gooong

Description

@Gooong

Hi,

There is not limit on the gas fee of one UserOP. A malicious user can compose an UserOP with very high preVerificationGas or maxPriorityFeePerGas, making the gas fee high enough to drain all the eth of the Paymaster. Note in this case the malicious user can bundle this UserOP with his own bundler, so that the profit is returned to himself. This means malicious user only lose the actual gas fee (which is low) of executing the UserOP.

This can be expolited for below purpose:

  1. Attack Paymaster to make it unavailable: Drain all the eth from paymaster in a low cost.
  2. Swap ERC20 token to eth in a favorable price: The token price is read from Oracle and is updated in postOp. It's possible that the price deviates from the actual price in extreme cases. The malicious user can compose an UserOP with high gas fee, use TokenPaymaster and bundle it with his own bundler. In this case the malicious user pay ERC20 token and get eth in a favorable price.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions