#42222 [BC-Insight] Garbage Collector can fail to run in a timely manner if building_time_ms is set to a low value
Description
Brief/Intro
Vulnerability Details
async fn gc(&self) -> Result<(), anyhow::Error> {
let gc_interval = self.building_time_ms * 2 / 1000 + 1;
let timestamp_threshold = SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap()
.as_secs()
.saturating_sub(gc_interval);
let gc_count = self.mempool.gc_mempool_transactions(timestamp_threshold).await?;
if gc_count != 0 {
info!("pruned {gc_count} transactions");
} else {
debug!("no transactions to prune")
}
tokio::time::sleep(Duration::from_secs(gc_interval)).await;
Ok(())
}Impact Details
References
Proof of Concept
Proof of Concept
Previous42153 [BC-Critical] attackers can exploit bug in blob verification to execute replay attack by re executing blobsNext42233 [BC-Critical] critical dos vulnerability in movement network s da layer due to zstd bomb blob exploit
Was this helpful?