Validators can be crashed via GET
Calling the eth_getBlockByHash JSON-RPC endpoint without any parameters crashes a Shardeum validator node permanently. An attacker could repeat this against every node to halt the whole network and stop transactions being confirmed.
- Disclosed after under an hour
33277 - [BC - Critical] Validators can be crashed via GET
Submitted on Jul 17th 2024 at 03:26:00 UTC by @usmannk for Boost | Shardeum: Core
Report ID: #33277
Report type: Blockchain/DLT
Report severity: Critical
Target: https://github.com/shardeum/shardeum/tree/dev
Impacts:
- Network not being able to confirm new transactions (total network shutdown)
Description
Brief/Intro
Simply calling the default endpoint eth_getBlockByHash with no params causes a node to crash and die permanently.
By looping this over the network, an attacker can halt all transactions.
Proof of Concept
- Run a local cluster:
$ shardus start 10
- Pick a node, say, 9001.
- Crash the node by navigating to
http://localhost:9001/eth_getBlockByHashand not providing parameters - Go to
http://127.0.0.1:4000/nodelistand observe that the node is offline
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 JSON-RPC handler for eth_getBlockByHash does not check that the required parameters are present before using them, so a missing parameter causes an unhandled error that kills the process.
Impact
Repeating the request across the network could take every validator offline, so the network could no longer confirm new transactions.
What the attacker needed
Network access to a validator's RPC endpoint; no authentication required
How it was found
- Start a local cluster of ten nodes.
- Choose one node, for example the one on port 9001.
- Request the eth_getBlockByHash endpoint on that node without supplying any parameters.
- Check the node list page and see that the node is now offline.
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 validator is a computer that runs the blockchain and checks transactions. This report says that if you send one particular request to a validator without the extra details it normally expects, the program crashes and does not come back. Doing that to every validator would stop the network from processing anything.
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.