Skip to content

Possible DOS due to unbounded list in contract #67

Description

@ikwuoz

the isDelibraUser function in User.sol loops over an unbounded array to check for registered users.
The problem here is this array is unbounded, hence the gas consumed due to the computation of the loop for a really large array might exceed the blockGasLimit, and immediately potential drawback of this approach is that the cost of setUserInfo increases proportionally to this array.
More detailed description of the problem HERE

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