Skip to content

discv5: topic index should check ENR endpoint is equal to source IP of reg traffic #279

Description

@fjl

In the base layer DHT, we allow nodes to add ENRs into the node table even when the IP on the ENR doesn't match the endpoint they are sending from. This is to make NAT discovery work through reflected packets.

This policy is not appropriate for the topic index, however, since it would open an attack vector where nodes can try to submit multiple ENRs with different IPs to work around the address restrictions in the ad cache. So it is better to strictly enforce the IP and UDP source port being equal to the ENR information in order to place an ad.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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