CPP-Ethereum JSON-RPC admin_nodeInfo improper authorization Vulnerability
The admin_nodeInfo JSON-RPC method in cpp-ethereum lacked the privilege check that similar admin methods enforce, so an unauthenticated remote attacker could call it and retrieve node information. The text claims this bypasses authorization and exposes restricted functionality.
Originally disclosed on Cisco Talos
An exploitable improper authorization vulnerability exists in adminnodeInfo 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 admin_nodeInfo handler omitted the RPC_ADMIN privilege check that the equivalent admin_net_nodeInfo handler performs.
Impact
An unauthenticated remote attacker could retrieve node information; 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 trigger it.
What the attacker needed
Admin-via-http option enabled; network access to the JSON-RPC port
The fix
The admin_nodeInfo handler should perform the same RPC_ADMIN privilege check as admin_net_nodeInfo; the text does not state that a fix was applied.
How it was found
- Start the cpp-ethereum client with the admin-via-http option enabled.
- Send a JSON-RPC request for the admin_nodeInfo method to the local JSON-RPC port.
- Observe that the node information is returned without any administrator session key.
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 is a program that runs an Ethereum node and offers a remote control interface. Some commands are meant only for administrators, but one command that returns information about the node was missing the check that asks whether the caller is an administrator. So anyone who could reach the interface could run that command 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.