Skip to content

DoS via getNthKey #346

@JeremyMoeglich

Description

@JeremyMoeglich

A payload can be constructed where getNthKey is called many times each time iterating through a full user provided collection.
By providing a large collection and a large referentialEqualities array you could cause quadratic compute.
For a 1mb payload (a common webserver limit) this can block the event loop for 20 - 40 seconds

Opened to further discuss a fix as #344 introduces quite a bit of complexity to solve this.

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