Skip to content
Access control Advisory Intermediate CVE-2017-12114

CPP-Ethereum JSON-RPC admin_peers improper authorization Vulnerability

The admin_peers JSON-RPC method in cpp-ethereum lacked the administrator privilege check that other admin methods enforce, so any remote caller could invoke it without credentials. An attacker could send a JSON request to read peer session information that should have been restricted to administrators.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

Medium 4.0 View original

An exploitable improper authorization vulnerability exists in adminpeers API of cpp-ethereum’s JSON-RPC (commit 4e1015743b95821849d001618a7ce82c7c073768). A JSON request can cause an access to the restricted functionality resulting in authorization bypass.

Marcin 'Icewall' Noga, on Cisco Talos

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_peers handler omitted the RPC_ADMIN privilege check that the equivalent admin_net_peers handler performs before delegating to it.

Impact

An unauthenticated remote attacker could reach administrator-only functionality; the interface binds to all addresses by default and does not enforce the JSON content type, so requests could also be triggered via CSRF or SSRF, though the admin interface is off by default.

What the attacker needed

Admin interface enabled over HTTP; network access to the RPC port

How it was found

  1. Start the client with the admin interface exposed over HTTP.
  2. Send a JSON-RPC request naming the admin_peers method to the local RPC port.
  3. Observe that the request is answered without any administrator credentials.

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 JSON-RPC server lets programs talk to the Ethereum client over the network by sending structured requests. Some of its methods are meant only for administrators, and the code is supposed to check who is calling before running them. Here one method skipped that check, so anyone who could reach the port could ask for the list of connected peers.

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.

More by Marcin 'Icewall' Noga

View all

146 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.