Skip to content
DoS Audit finding Advanced

Evil-client P2P headers-traversal leads to D/DoS and total peer removal

A malicious peer client can connect to a Besu node and flood it with block header range protocol requests, driving CPU usage to near 100% and causing the node to lose all of its peers. The attacker can sustain this to effectively disconnect the victim node from the network.

\[redacted] Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

#38275 [BC-Low] Evil-client P2P headers-traversal leads to D/DoS and total peer removal

Submitted on Dec 29th 2024 at 22:38:42 UTC by [redacted] for Attackathon | Ethereum Protocol

  • Report ID: #38275
  • Report Type: Blockchain/DLT
  • Report severity: Low
  • Target: https://github.com/hyperledger/besu
  • Impacts:
    • Shutdown of greater than or equal to 10% or equal to but less than 33% of network processing nodes without brute force actions, but does not shut down the network
    • Unintended chain split affecting less than 25% of the network (Network partition)
    • Shutdown of less than 10% of network processing nodes without brute force actions, but does not shut down the network

Description

Intro

A remote P2P vulnerability has been identified in the Besu 24.12.2 (latest) with impact that is identical to that of a sustained D/DoS attack.

Vulnerability Details

Using a multithreaded golang based evil-client that spoofs itself as a valid client and peers into a Besu node and starts spamming it with block header range protocol message requests, the remote machine running Besu's CPU runs to 97% - 100% - and all of its peers are remotely disconnected; (attached PoC screenshot) for as long as the attack is sustained. Fortunately the node does recover - but a botnet doesn't care about that. As a former prolific spammer, it's a pinky-lift for a lot of people, chiefly in Russia, to weaponize xxx,xxx zombies to launch an attack like this; and so the real-world viability is markedly there.

Steps to reproduce (Ubuntu)

nano headers_traversal.go
change the existing enode//hash@ip:port to your own test machine
screen -S attack
ulimit -n 100000
snap install go --classic
go init 1
go mod tidy
go build headers-traversal.go
./headers-traversal
-- Experiment with thread counts, e.g. 15, 50, 100, 1000, 2500, etc.
Tap enter and wait..,

patiently - and watch it remotely disconnect the victim node from the (Sepolia) network by removing all of its peers. This is naturally a consequence of resource exhaustion and the node being rendered unable to process peer comms.

Impact Details

Island networks. 16% of the Ethereum network being simultaneously disabled by a botnet would have significant consequences. We'd see netsplits, slower finality, transactions flying into the void and high reputational/operational damage.

Proof of Concept

For Proof of Concepts we are linking to the relevant exploit code and providing 2 screenshots - of during and after the sustained attack.

Attack script (headers_traversal.go):
https://www.dropbox.com/scl/fi/mlis0t7cvl9m4weuwcqv8/headers\\_traversal.go?rlkey=5v5i2el1hzfc4tj26ibfwatb1\\&st=koknxe9h\\&dl=0

Dropbox Password: alienbrain

The original report as published on Immunefi, by \[redacted]. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the node does not rate-limit or bound the work it performs when handling block header range requests from a peer, so a single peer can exhaust its CPU and starve normal peer communication.

Impact

A sustained attack could disable a portion of the network, causing netsplits, slower finality and lost transactions, though the node does recover once the attack stops.

What the attacker needed

Ability to run a custom P2P client; network access to the victim node

How it was found

  1. Set up a Go environment and prepare the evil-client source, pointing it at a test node's enode address.
  2. Build and run the client, optionally adjusting the number of threads.
  3. Wait while the client floods the victim node with header range requests.
  4. Observe the victim node's CPU rising to near 100% and its peers being disconnected.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A peer-to-peer network lets computers talk to each other directly. Here, a fake participant joins the network and bombards one node with so many requests that the node becomes too busy to keep up with its normal conversations, so its other partners give up and disconnect. The result is that the victim node is pushed off the network while the attack continues.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by \[redacted]

View all

6 more disclosed reports, best first.

More from Ethereum Protocol

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.