Zebra should limit the number of addresses it sends to peers, to avoid address book discovery #1889
Closed
1 of 3 tasks
Labels
A-rust
Area: Updates to Rust code
C-bug
Category: This is a bug
C-security
Category: Security issues
I-invalid-data
Zebra relies on invalid or untrusted data, or sends invalid data
I-remote-node-overload
Zebra can overload other nodes on the network
Milestone
Motivation
Currently, Zebra sends up to 1000 addresses to any peer that asks for addresses. But there are only a few hundred active peers on mainnet.
This large list of peer addresses, combined with Zebra's connectivity to many nodes, makes it easier for malicious nodes to use a Zebra instance to pollute the peer addresses of other nodes.
Solution
Limit the number of peer addresses that Zebra sends to:
The relevant code is at:
zebra/zebrad/src/components/inbound.rs
Line 237 in cc7d5bd
This change has the following benefits:
Related Issues
#1867 Zebra should stop gossiping unreachable addresses to other nodes
Context
zcashd
and Zebra both resist address book pollution, so this issue is not critical.The text was updated successfully, but these errors were encountered: