CPP-Ethereum JSON-RPC Denial Of Service Vulnerabilities
Multiple JSON-RPC APIs in cpp-ethereum fail to handle exceptions when converting large integer parameters, causing the node to abort. A remote attacker can send a crafted JSON request to crash the client, resulting in denial of service.
Originally disclosed on Cisco Talos
An exploitable unhandled exception vulnerability exists in multiple APIs of CPP-Ethereum’s JSON-RPC. Specially crafted JSON requests can cause a unhandled exception resulting in denial of service.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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
Impact
A remote attacker could crash the Ethereum node, causing denial of service; the report demonstrates this on the default APIs and those enabled with the admin switch.
What the attacker needed
JSON-RPC server reachable over network; For some APIs, --admin-via-http enabled
How it was found
- Start the cpp-ethereum node with the JSON-RPC server enabled.
- Send a JSON-RPC request to a vulnerable method with an integer parameter larger than the allowed range.
- Observe the node abort with an uncaught exception.
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.
The Ethereum client has a feature that lets other programs control it over the network using JSON messages. Some of these messages include numbers, and if a number is too large, the program does not handle the error properly and simply crashes. This means anyone who can reach that network port can stop the node from working.
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.