CPP-Ethereum JSON-RPC miner_stop improper authorization Vulnerability
The miner_stop JSON-RPC method in cpp-ethereum lacked the administrator privilege check that similar methods enforced, so any remote caller could stop the node's mining. An unauthenticated attacker could send a JSON request to the exposed RPC interface and halt sealing without credentials.
Originally disclosed on Cisco Talos
An exploitable improper authorization vulnerability exists in minerstop API of cpp-ethereum’s JSON-RPC (commit 4e1015743b95821849d001618a7ce82c7c073768). A JSON request can cause an access to the restricted functionality resulting in authorization bypass.
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
Root cause
The miner_stop handler omitted the RPC_ADMIN privilege check that the equivalent admin_eth_setMining handler performs, so the authorisation gate was simply missing.
Impact
A remote unauthenticated attacker could stop mining on the node; the text notes the admin interface is off by default, but when enabled it binds to all interfaces and does not enforce the JSON content type, so CSRF or SSRF could also reach it.
What the attacker needed
Admin interface enabled over HTTP; network access to the RPC port
The fix
The handler should perform the same administrator privilege check as the other admin methods before stopping sealing.
How it was found
- Start the client with the admin interface exposed over HTTP.
- Send a JSON-RPC request calling miner_stop to the RPC port.
- The node stops sealing without any credential being checked.
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.
This Ethereum client runs a small web service (JSON-RPC) that lets programs ask it to do things. Some of those actions are meant only for an administrator, and the code is supposed to check who is asking before doing them. One action, stopping the mining process, forgot that check, so anyone who could reach the service could switch mining off.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.