CPP-Ethereum JSON-RPC miner_setGasPrice improper authorization Vulnerability
The miner_setGasPrice JSON-RPC method in cpp-ethereum lacked proper authorization checks, allowing an unauthenticated remote attacker to change the gas price setting. This could disrupt mining operations or enable other attacks.
Originally disclosed on Cisco Talos
An exploitable improper authorization vulnerability exists in minersetGasPrice 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_setGasPrice function in the admin interface did not perform any authorization check before applying the requested gas price.
Impact
An unauthenticated remote attacker could change the gas price setting, potentially disrupting mining operations; the report notes the admin interface is off by default but insecure when enabled.
What the attacker needed
Admin interface enabled via HTTP; network access to the JSON-RPC port
How it was found
- Start the cpp-ethereum client with the admin interface exposed over HTTP.
- Send a JSON-RPC request to the miner_setGasPrice method with a chosen gas price value.
- Observe that the request succeeds without any authentication.
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 report is about a cryptocurrency client program that runs a small web server so other software can control it. The server had a command to change a mining setting, but it did not check whether the person sending the command was allowed to do so. Anyone who could reach the server could change that setting without logging in.
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.