Zebra's peer set should drop multiple outbound connections to the same IP and port, Credit: Ziggurat Team #6805
Labels
A-concurrency
Area: Async code, needs extra work to make it work properly.
A-network
Area: Network protocol updates or fixes
C-bug
Category: This is a bug
C-security
Category: Security issues
I-remote-node-overload
Zebra can overload other nodes on the network
S-needs-triage
Status: A bug report needs triage
Motivation
It looks like some Zebra instances are making multiple outbound connections to the same node:
https://forum.zcashcommunity.com/t/ziggurat-3-0/43350/40
This is a potential remote denial of service issue.
Complex Code or Requirements
This is concurrent code. The
PeerSet
should be dropping all but one outbound connection to the same IP address and port.We should check that behaviour is actually happening, and that the connections are closed when they are dropped.
Testing
We have similar
PeerSet
tests with different IPs and ports, we should copy them and test with identical IPs and ports instead.Related Work
zebra-network
: Fragile State Transition During Address Book Update #6672 in Zebra v1.0.0-rc.9The text was updated successfully, but these errors were encountered: