#42764 [BC-Low] A BTC wallet on signer blocklists can cause network DoS
Description
Brief/Intro
Vulnerability Details
// This is a variant of the Best-Fit-Decreasing algorithm, so we sort
// by "weight" decreasing. We use the votes against as the weight, but
// vsize is a reasonable weight metric as well.
let mut item_vec: Vec<(u32, T)> = items
.into_iter()
.map(|item| (item.votes().count_ones(), item))
.collect();
item_vec.sort_by_key(|(vote_count, _)| std::cmp::Reverse(*vote_count));Impact Details
References
Link to Proof of Concept
Proof of Concept
Previous#42752 [BC-High] Signer can be DOSed through their libp2p componentNext#42773 [BC-Medium] Signers can be compromised by a libp2p DoS attack
Was this helpful?