Security: Prevent inv
and AddressBook message denial of service
#3271
Labels
A-network
Area: Network protocol updates or fixes
C-security
Category: Security issues
I-hang
A Zebra component stops responding to requests
I-heavy
Problems with excessive memory, disk, or CPU usage
I-slow
Problems with performance or responsiveness
Motivation
If peers send a lot of messages, they can overload the
InventoryRegistry
orAddressBook
.This is a memory or CPU denial of service risk.
Scheduling
This risk is acceptable for the stable release, but it probably needs to be fixed to support lightwalletd users.
Suggested Solutions
AddressBook:
ping
andpong
messagesInventoryRegistry:
notfound
andinv
updates into separate channels:inv
are a low priority and can be dropped if there are excessnotfound
are a higher priority, but can still be faked by peers, so they should be dropped if there are a lotnotfound
should never be dropped, because they represent failed requests that Zebra does not want to retryRelated Work
The text was updated successfully, but these errors were encountered: